Skip to contentSkip to conversation

perf tools: Add signal.h to places using its definitions

tip:perf/core tip-bot for Arnaldo Carvalho de Melo 1 participant 1 message Apr 24, 2017 perf events

lore
Share & tools
lore
#0 lore raw
Commit-ID:  9607ad3a63871b074a57ce1facd04a230c38725c
Gitweb:     http://git.kernel.org/tip/9607ad3a63871b074a57ce1facd04a230c38725c
Author:     Arnaldo Carvalho de Melo <[email protected]>
AuthorDate: Wed, 19 Apr 2017 15:49:18 -0300
Committer:  Arnaldo Carvalho de Melo <[email protected]>
CommitDate: Thu, 20 Apr 2017 13:22:43 -0300

perf tools: Add signal.h to places using its definitions

And remove it from util.h, disentangling it a bit more.

---
 tools/perf/arch/x86/tests/intel-cqm.c | 1 +
 tools/perf/builtin-inject.c           | 1 +
 tools/perf/builtin-kvm.c              | 1 +
 tools/perf/builtin-record.c           | 1 +
 tools/perf/builtin-report.c           | 1 +
 tools/perf/builtin-script.c           | 1 +
 tools/perf/builtin-stat.c             | 1 +
 tools/perf/builtin-top.c              | 1 +
 tools/perf/builtin-trace.c            | 1 +
 tools/perf/perf.c                     | 1 +
 tools/perf/trace/beauty/signum.c      | 1 +
 tools/perf/ui/gtk/annotate.c          | 1 +
 tools/perf/ui/gtk/hists.c             | 1 +
 tools/perf/util/evlist.c              | 1 +
 tools/perf/util/evlist.h              | 1 +
 tools/perf/util/util.c                | 1 +
 tools/perf/util/util.h                | 1 -
 17 files changed, 16 insertions(+), 1 deletion(-)
tools/perf/arch/x86/tests/intel-cqm.c +1 -0
index 03c62eb..befde67 100644
@@ -6,6 +6,7 @@
 #include "evsel.h"
 #include "arch-tests.h"
 
+#include <signal.h>
 #include <sys/mman.h>
 #include <errno.h>
 #include <string.h>
tools/perf/builtin-inject.c +1 -0
index b102ee7..8bd791c 100644
@@ -23,6 +23,7 @@
 
 #include <linux/list.h>
 #include <errno.h>
+#include <signal.h>
 
 struct perf_inject {
 	struct perf_tool	tool;
tools/perf/builtin-kvm.c +1 -0
index 4002277..2b1732c 100644
@@ -31,6 +31,7 @@
 #include <inttypes.h>
 #include <termios.h>
 #include <semaphore.h>
+#include <signal.h>
 #include <pthread.h>
 #include <math.h>
 
tools/perf/builtin-record.c +1 -0
index 70340ff..e1b937f 100644
@@ -44,6 +44,7 @@
 #include <inttypes.h>
 #include <unistd.h>
 #include <sched.h>
+#include <signal.h>
 #include <sys/mman.h>
 #include <asm/bug.h>
 #include <linux/time64.h>
tools/perf/builtin-report.c +1 -0
index 5bbd4b2..b8f2dd3 100644
@@ -42,6 +42,7 @@
 #include <errno.h>
 #include <inttypes.h>
 #include <regex.h>
+#include <signal.h>
 #include <linux/bitmap.h>
 #include <linux/stringify.h>
 
tools/perf/builtin-script.c +1 -0
index fe1dcd4..76a88bd 100644
@@ -35,6 +35,7 @@
 #include <dirent.h>
 #include <errno.h>
 #include <inttypes.h>
+#include <signal.h>
 
 #include "sane_ctype.h"
 
tools/perf/builtin-stat.c +1 -0
index be2cd53..e3837fe 100644
@@ -70,6 +70,7 @@
 #include <linux/time64.h>
 #include <api/fs/fs.h>
 #include <errno.h>
+#include <signal.h>
 #include <stdlib.h>
 #include <sys/prctl.h>
 #include <inttypes.h>
tools/perf/builtin-top.c +1 -0
index 47984a8..7ab42b8 100644
@@ -59,6 +59,7 @@
 #include <errno.h>
 #include <time.h>
 #include <sched.h>
+#include <signal.h>
 
 #include <sys/syscall.h>
 #include <sys/ioctl.h>
tools/perf/builtin-trace.c +1 -0
index d1c8cdc..ef3613f 100644
@@ -45,6 +45,7 @@
 #include <errno.h>
 #include <inttypes.h>
 #include <libaudit.h> /* FIXME: Still needed for audit_errno_to_name */
+#include <signal.h>
 #include <stdlib.h>
 #include <string.h>
 #include <linux/err.h>
tools/perf/perf.c +1 -0
index 9ccccb0..3565889 100644
@@ -21,6 +21,7 @@
 #include <api/fs/tracing_path.h>
 #include <errno.h>
 #include <pthread.h>
+#include <signal.h>
 #include <stdlib.h>
 #include <time.h>
 #include <linux/kernel.h>
tools/perf/trace/beauty/signum.c +1 -0
index d3b0b1f..fde8f2f 100644
@@ -1,3 +1,4 @@
+#include <signal.h>
 
 static size_t syscall_arg__scnprintf_signum(char *bf, size_t size, struct syscall_arg *arg)
 {
tools/perf/ui/gtk/annotate.c +1 -0
index 71359b8..e99ba86 100644
@@ -4,6 +4,7 @@
 #include "util/evsel.h"
 #include "ui/helpline.h"
 #include <inttypes.h>
+#include <signal.h>
 
 enum {
 	ANN_COL__PERCENT,
tools/perf/ui/gtk/hists.c +1 -0
index c42de4d..e24f839 100644
@@ -6,6 +6,7 @@
 #include "../helpline.h"
 #include "../string2.h"
 #include "gtk.h"
+#include <signal.h>
 
 #define MAX_COLUMNS			32
 
tools/perf/util/evlist.c +1 -0
index f74ea2e..8d36cf3 100644
@@ -18,6 +18,7 @@
 #include "evsel.h"
 #include "debug.h"
 #include "asm/bug.h"
+#include <signal.h>
 #include <unistd.h>
 
 #include "parse-events.h"
tools/perf/util/evlist.h +1 -0
index 3fed4fb..94cea43 100644
@@ -11,6 +11,7 @@
 #include "evsel.h"
 #include "util.h"
 #include "auxtrace.h"
+#include <signal.h>
 #include <unistd.h>
 
 struct pollfd;
tools/perf/util/util.c +1 -0
index b9716bc..bc42c45 100644
@@ -9,6 +9,7 @@
 #endif
 #include <dirent.h>
 #include <inttypes.h>
+#include <signal.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
tools/perf/util/util.h +0 -1
index 2a1166f..6bf1416 100644
@@ -22,7 +22,6 @@
 #include <sys/types.h>
 #include <sys/time.h>
 #include <time.h>
-#include <signal.h>
 #include <assert.h>
 #include <utime.h>
 #include <sys/wait.h>