tools/perf: remove duplicate includes
Subsystems (2)
PATCH 31/45 tools/perf: remove duplicate includes
These duplicate includes have been found with scripts/checkincludes.pl but they have been removed manually to avoid removing false positives.
Signed-off-by Pravin Shedge <[email protected]>
--- tools/perf/bench/futex-hash.c | 1 - tools/perf/builtin-c2c.c | 3 --- tools/perf/builtin-record.c | 1 - tools/perf/builtin-stat.c | 1 - tools/perf/tests/parse-events.c | 1 - tools/perf/util/auxtrace.c | 3 --- tools/perf/util/header.c | 2 -- tools/perf/util/metricgroup.c | 2 -- tools/perf/util/scripting-engines/trace-event-python.c | 1 - 9 files changed, 15 deletions(-)
tools/perf/bench/futex-hash.c +0 -1
@@ -26,7 +26,6 @@#include "futex.h" #include <err.h> -#include <sys/time.h> static unsigned int nthreads =0 ;static unsigned int nsecs =10 ;
tools/perf/builtin-c2c.c +0 -3
@@ -27,13 +27,10 @@#include "sort.h" #include "tool.h" #include "data.h" -#include "sort.h" #include "event.h" #include "evlist.h" #include "evsel.h" -#include <asm/bug.h> #include "ui/browsers/hists.h" -#include "evlist.h" #include "thread.h" struct c2c_hists {
tools/perf/builtin-record.c +0 -1
@@ -51,7 +51,6 @@#include <signal.h> #include <sys/mman.h> #include <sys/wait.h> -#include <asm/bug.h> #include <linux/time64.h> struct switch_output {
tools/perf/builtin-stat.c +0 -1
@@ -63,7 +63,6 @@#include "util/group.h" #include "util/session.h" #include "util/tool.h" -#include "util/group.h" #include "util/string2.h" #include "util/metricgroup.h" #include "asm/bug.h"
tools/perf/tests/parse-events.c +0 -1
@@ -13,7 +13,6 @@#include <unistd.h> #include <linux/kernel.h> #include <linux/hw_breakpoint.h> -#include <api/fs/fs.h> #include <api/fs/tracing_path.h> #define PERF_TP_SAMPLE_TYPE (PERF_SAMPLE_RAW | PERF_SAMPLE_TIME | \
tools/perf/util/auxtrace.c +0 -3
@@ -31,9 +31,6 @@#include <sys/param.h> #include <stdlib.h> #include <stdio.h> -#include <string.h> -#include <limits.h> -#include <errno.h> #include <linux/list.h> #include "../perf.h"
tools/perf/util/header.c +0 -2
@@ -15,9 +15,7 @@#include <linux/bitops.h> #include <linux/stringify.h> #include <sys/stat.h> -#include <sys/types.h> #include <sys/utsname.h> -#include <unistd.h> #include "evlist.h" #include "evsel.h"
tools/perf/util/metricgroup.c +0 -2
@@ -20,12 +20,10 @@#include "pmu.h" #include "expr.h" #include "rblist.h" -#include "pmu.h" #include <string.h> #include <stdbool.h> #include <errno.h> #include "pmu-events/pmu-events.h" -#include "strbuf.h" #include "strlist.h" #include <assert.h> #include <ctype.h>
tools/perf/util/scripting-engines/trace-event-python.c +0 -1
@@ -43,7 +43,6 @@#include "../db-export.h" #include "../thread-stack.h" #include "../trace-event.h" -#include "../machine.h" #include "../call-path.h" #include "thread_map.h" #include "cpumap.h"
Signature · 1 line
2.7.4
Arnaldo Carvalho de Melo
maintainerEm Wed, Dec 06, 2017 at 11:13:24PM +0530, Pravin Shedge escreveu:
Quoted 2 lines
These duplicate includes have been found with
scripts/checkincludes.plbut they have been removed manually to avoid removing false positives.
Thanks, checked the dups manually too and applied,
- Arnaldo
Quoted 138 lines
Signed-off-by Pravin Shedge <[email protected]>--- tools/perf/bench/futex-hash.c | 1 - tools/perf/builtin-c2c.c | 3 --- tools/perf/builtin-record.c | 1 - tools/perf/builtin-stat.c | 1 - tools/perf/tests/parse-events.c | 1 - tools/perf/util/auxtrace.c | 3 --- tools/perf/util/header.c | 2 -- tools/perf/util/metricgroup.c | 2 -- tools/perf/util/scripting-engines/trace-event-python.c | 1 - 9 files changed, 15 deletions(-)tools/perf/bench/futex-hash.c +0
-1@@ -26,7 +26,6 @@#include "futex.h" #include <err.h> -#include <sys/time.h> static unsigned int nthreads =0 ;static unsigned int nsecs =10 ;tools/perf/builtin-c2c.c +0
-3@@ -27,13 +27,10 @@#include "sort.h" #include "tool.h" #include "data.h" -#include "sort.h" #include "event.h" #include "evlist.h" #include "evsel.h" -#include <asm/bug.h> #include "ui/browsers/hists.h" -#include "evlist.h" #include "thread.h" struct c2c_hists {tools/perf/builtin-record.c +0
-1@@ -51,7 +51,6 @@#include <signal.h> #include <sys/mman.h> #include <sys/wait.h> -#include <asm/bug.h> #include <linux/time64.h> struct switch_output {tools/perf/builtin-stat.c +0
-1@@ -63,7 +63,6 @@#include "util/group.h" #include "util/session.h" #include "util/tool.h" -#include "util/group.h" #include "util/string2.h" #include "util/metricgroup.h" #include "asm/bug.h" tools/perf/tests/parse-events.c +0
-1@@ -13,7 +13,6 @@#include <unistd.h> #include <linux/kernel.h> #include <linux/hw_breakpoint.h> -#include <api/fs/fs.h> #include <api/fs/tracing_path.h> #define PERF_TP_SAMPLE_TYPE (PERF_SAMPLE_RAW | PERF_SAMPLE_TIME | \tools/perf/util/auxtrace.c +0
-3@@ -31,9 +31,6 @@#include <sys/param.h> #include <stdlib.h> #include <stdio.h> -#include <string.h> -#include <limits.h> -#include <errno.h> #include <linux/list.h> #include "../perf.h" tools/perf/util/header.c +0
-2@@ -15,9 +15,7 @@#include <linux/bitops.h> #include <linux/stringify.h> #include <sys/stat.h> -#include <sys/types.h> #include <sys/utsname.h> -#include <unistd.h> #include "evlist.h" #include "evsel.h" tools/perf/util/metricgroup.c +0
-2@@ -20,12 +20,10 @@#include "pmu.h" #include "expr.h" #include "rblist.h" -#include "pmu.h" #include <string.h> #include <stdbool.h> #include <errno.h> #include "pmu-events/pmu-events.h" -#include "strbuf.h" #include "strlist.h" #include <assert.h> #include <ctype.h> tools/perf/util/scripting-engines/trace-event-python.c +0
-1@@ -43,7 +43,6 @@#include "../db-export.h" #include "../thread-stack.h" #include "../trace-event.h" -#include "../machine.h" #include "../call-path.h" #include "thread_map.h" #include "cpumap.h" Signature · 1 line
2.7.4
tip-bot for Pravin Shedge
merge bot[tip:perf/core] perf perf: Remove duplicate includes
In reply to Pravin Shedgeperf perf: Remove duplicate includes
Commit-ID: 3315d14f8eea27a845bd2e3a88341a35f4025866 Gitweb: https://git.kernel.org/tip/3315d14f8eea27a845bd2e3a88341a35f4025866 Author: Pravin Shedge <[email protected]> AuthorDate: Wed, 6 Dec 2017 23:13:24 +0530 Committer: Arnaldo Carvalho de Melo <[email protected]> CommitDate: Wed, 27 Dec 2017 12:15:49 -0300
perf perf: Remove duplicate includes
These duplicate includes have been found with scripts/checkincludes.pl but they have been removed manually to avoid removing false positives.
Signed-off-by Pravin Shedge <[email protected]>
Cc David S. Miller <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
Cc Jiri Olsa <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Thomas Gleixner <[email protected]>
Signed-off-by Arnaldo Carvalho de Melo <[email protected]>
--- tools/perf/bench/futex-hash.c | 1 - tools/perf/builtin-c2c.c | 3 --- tools/perf/builtin-record.c | 1 - tools/perf/builtin-stat.c | 1 - tools/perf/tests/parse-events.c | 1 - tools/perf/util/auxtrace.c | 3 --- tools/perf/util/header.c | 2 -- tools/perf/util/metricgroup.c | 2 -- tools/perf/util/scripting-engines/trace-event-python.c | 1 - 9 files changed, 15 deletions(-)
tools/perf/bench/futex-hash.c +0 -1
@@ -27,7 +27,6 @@#include "cpumap.h" #include <err.h> -#include <sys/time.h> static unsigned int nthreads =0 ;static unsigned int nsecs =10 ;
tools/perf/builtin-c2c.c +0 -3
@@ -27,13 +27,10 @@#include "sort.h" #include "tool.h" #include "data.h" -#include "sort.h" #include "event.h" #include "evlist.h" #include "evsel.h" -#include <asm/bug.h> #include "ui/browsers/hists.h" -#include "evlist.h" #include "thread.h" struct c2c_hists {
tools/perf/builtin-record.c +0 -1
@@ -51,7 +51,6 @@#include <signal.h> #include <sys/mman.h> #include <sys/wait.h> -#include <asm/bug.h> #include <linux/time64.h> struct switch_output {
tools/perf/builtin-stat.c +0 -1
@@ -63,7 +63,6 @@#include "util/group.h" #include "util/session.h" #include "util/tool.h" -#include "util/group.h" #include "util/string2.h" #include "util/metricgroup.h" #include "asm/bug.h"
tools/perf/tests/parse-events.c +0 -1
@@ -13,7 +13,6 @@#include <unistd.h> #include <linux/kernel.h> #include <linux/hw_breakpoint.h> -#include <api/fs/fs.h> #include <api/fs/tracing_path.h> #define PERF_TP_SAMPLE_TYPE (PERF_SAMPLE_RAW | PERF_SAMPLE_TIME | \
tools/perf/util/auxtrace.c +0 -3
@@ -31,9 +31,6 @@#include <sys/param.h> #include <stdlib.h> #include <stdio.h> -#include <string.h> -#include <limits.h> -#include <errno.h> #include <linux/list.h> #include "../perf.h"
tools/perf/util/header.c +0 -2
@@ -15,9 +15,7 @@#include <linux/bitops.h> #include <linux/stringify.h> #include <sys/stat.h> -#include <sys/types.h> #include <sys/utsname.h> -#include <unistd.h> #include "evlist.h" #include "evsel.h"
tools/perf/util/metricgroup.c +0 -2
@@ -20,12 +20,10 @@#include "pmu.h" #include "expr.h" #include "rblist.h" -#include "pmu.h" #include <string.h> #include <stdbool.h> #include <errno.h> #include "pmu-events/pmu-events.h" -#include "strbuf.h" #include "strlist.h" #include <assert.h> #include <ctype.h>
tools/perf/util/scripting-engines/trace-event-python.c +0 -1
@@ -43,7 +43,6 @@#include "../db-export.h" #include "../thread-stack.h" #include "../trace-event.h" -#include "../machine.h" #include "../call-path.h" #include "thread_map.h" #include "cpumap.h"