diff options
author | Ingo Molnar <mingo@kernel.org> | 2019-08-27 04:22:25 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2019-08-27 04:22:25 -0400 |
commit | 794b8bedca9341569e1081bc880e7ea209dbca5c (patch) | |
tree | accdfe136daf45dea3ee62567a53ae2bfb0f7fd8 /tools/perf/builtin-script.c | |
parent | 39152ee51b77851689f9b23fde6f610d13566c39 (diff) | |
parent | 74a1e863eb73dcc9f069b671dfb40650f3832116 (diff) |
Merge tag 'perf-core-for-mingo-5.4-20190826' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/core
Pull perf/core improvements and fixes from Arnaldo Carvalho de Melo:
perf report:
Andi Kleen:
- Make --ns time sort key output column wide enough for nanoseconds.
perf script:
Gustavo A. R. Silva:
- Fix memory leaks in list_scripts()
perf tests:
James Clark:
- Fixes hang in zstd compression test by changing the source of random data.
perf trace:
Arnaldo Carvalho de Melo:
- augmented_raw_syscalls.c BPF helper improvements.
Benjamin Peterson:
- Fix off-by-one error in ioctl cmd->string table.
libperf:
Jiri Olsa:
- Move most PERF_RECORD_ structs to perf/event.h.
headers:
Arnaldo Carvalho de Melo:
- Move cacheline related routines to separate source files.
- Move record_opts and other record declarations to separate files.
- Explicitly add some more needed headers here and there.
Souptick Joarder:
- Remove some duplicate include directives.
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'tools/perf/builtin-script.c')
-rw-r--r-- | tools/perf/builtin-script.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c index 9b93ddeaeafa..51e7e6d0eee6 100644 --- a/tools/perf/builtin-script.c +++ b/tools/perf/builtin-script.c | |||
@@ -1,7 +1,6 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0 | 1 | // SPDX-License-Identifier: GPL-2.0 |
2 | #include "builtin.h" | 2 | #include "builtin.h" |
3 | 3 | ||
4 | #include "perf.h" | ||
5 | #include "util/cache.h" | 4 | #include "util/cache.h" |
6 | #include "util/counts.h" | 5 | #include "util/counts.h" |
7 | #include "util/debug.h" | 6 | #include "util/debug.h" |
@@ -12,6 +11,7 @@ | |||
12 | #include "util/session.h" | 11 | #include "util/session.h" |
13 | #include "util/tool.h" | 12 | #include "util/tool.h" |
14 | #include "util/map.h" | 13 | #include "util/map.h" |
14 | #include "util/srcline.h" | ||
15 | #include "util/symbol.h" | 15 | #include "util/symbol.h" |
16 | #include "util/thread.h" | 16 | #include "util/thread.h" |
17 | #include "util/trace-event.h" | 17 | #include "util/trace-event.h" |
@@ -51,6 +51,7 @@ | |||
51 | #include <unistd.h> | 51 | #include <unistd.h> |
52 | #include <subcmd/pager.h> | 52 | #include <subcmd/pager.h> |
53 | #include <perf/evlist.h> | 53 | #include <perf/evlist.h> |
54 | #include "util/record.h" | ||
54 | 55 | ||
55 | #include <linux/ctype.h> | 56 | #include <linux/ctype.h> |
56 | 57 | ||
@@ -2491,8 +2492,8 @@ static int __cmd_script(struct perf_script *script) | |||
2491 | script->tool.finished_round = process_finished_round_event; | 2492 | script->tool.finished_round = process_finished_round_event; |
2492 | } | 2493 | } |
2493 | if (script->show_bpf_events) { | 2494 | if (script->show_bpf_events) { |
2494 | script->tool.ksymbol = process_bpf_events; | 2495 | script->tool.ksymbol = process_bpf_events; |
2495 | script->tool.bpf_event = process_bpf_events; | 2496 | script->tool.bpf = process_bpf_events; |
2496 | } | 2497 | } |
2497 | 2498 | ||
2498 | if (perf_script__setup_per_event_dump(script)) { | 2499 | if (perf_script__setup_per_event_dump(script)) { |