mirror of https://gitee.com/openkylin/linux.git
perf tools: Don't include terminal handling headers in util.h
Continuing the disentanglement, mostly the TUI needs CTRL(c), that is in sys/ttydefaults.h and term.c needs the termios headers. And term.h needs to be added to a few places too. Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: David Ahern <dsahern@gmail.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Wang Nan <wangnan0@huawei.com> Link: http://lkml.kernel.org/n/tip-il19zna7qj9ytavdbwlipc7t@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
8ec20b176c
commit
b0742e90f5
|
@ -3,6 +3,7 @@
|
|||
|
||||
#include "util/evsel.h"
|
||||
#include "util/evlist.h"
|
||||
#include "util/term.h"
|
||||
#include "util/util.h"
|
||||
#include "util/cache.h"
|
||||
#include "util/symbol.h"
|
||||
|
|
|
@ -40,6 +40,7 @@
|
|||
#include "util/cpumap.h"
|
||||
#include "util/xyarray.h"
|
||||
#include "util/sort.h"
|
||||
#include "util/term.h"
|
||||
#include "util/intlist.h"
|
||||
#include "util/parse-branch-options.h"
|
||||
#include "arch/common.h"
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
#include <inttypes.h>
|
||||
#include <pthread.h>
|
||||
#include <linux/kernel.h>
|
||||
#include <sys/ttydefaults.h>
|
||||
|
||||
struct disasm_line_samples {
|
||||
double percent;
|
||||
|
|
|
@ -8,6 +8,8 @@
|
|||
#include "util/header.h"
|
||||
#include "util/session.h"
|
||||
|
||||
#include <sys/ttydefaults.h>
|
||||
|
||||
static void ui_browser__argv_write(struct ui_browser *browser,
|
||||
void *entry, int row)
|
||||
{
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <linux/rbtree.h>
|
||||
#include <sys/ttydefaults.h>
|
||||
|
||||
#include "../../util/evsel.h"
|
||||
#include "../../util/evlist.h"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#include <linux/hw_breakpoint.h>
|
||||
#include <linux/err.h>
|
||||
#include <errno.h>
|
||||
#include "util.h"
|
||||
#include "term.h"
|
||||
#include "../perf.h"
|
||||
#include "evlist.h"
|
||||
#include "evsel.h"
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
#include "util.h"
|
||||
#include "term.h"
|
||||
#include <stdlib.h>
|
||||
#include <termios.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/ioctl.h>
|
||||
|
||||
void get_term_dimensions(struct winsize *ws)
|
||||
{
|
||||
|
|
|
@ -17,7 +17,6 @@
|
|||
#include <stdlib.h>
|
||||
#include <stdarg.h>
|
||||
#include <string.h>
|
||||
#include <term.h>
|
||||
#include <limits.h>
|
||||
#include <sys/param.h>
|
||||
#include <sys/types.h>
|
||||
|
@ -35,11 +34,8 @@
|
|||
#include <sys/ioctl.h>
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/types.h>
|
||||
#include <sys/ttydefaults.h>
|
||||
#include <api/fs/tracing_path.h>
|
||||
#include <termios.h>
|
||||
#include <linux/bitops.h>
|
||||
#include <termios.h>
|
||||
|
||||
extern char buildid_dir[];
|
||||
|
||||
|
|
Loading…
Reference in New Issue