diff options
author | Ingo Molnar <mingo@kernel.org> | 2016-06-22 03:34:19 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2016-06-22 03:34:19 -0400 |
commit | 4330b439bbe16b48dd2fe9a379bd58a07b97aab8 (patch) | |
tree | 375958f5410db5095d172b21f02e5bb737fb97c6 /tools/perf/builtin-diff.c | |
parent | 02469a95096a549508c5adf61d84a1d72851c85b (diff) | |
parent | 6745d8ea825966b0956c691cf7fccc13debedc39 (diff) |
Merge tag 'perf-core-for-mingo-20160621' 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:
New features:
- Add --dry-run option to 'perf record' to check if command line options can be
parsed, but not doing any recording (Wang Nan)
- Allow dumping the object files generated by llvm when processing eBPF
scriptlet events (Wang Nan)
- Add stackcollapse.py script to help generating flame graphs (Paolo Bonzini)
Documentation changes:
- Fix 'perf script' documentation of '-f' when it should be '-F' (Adrian Hunter)
Infrastructure changes:
- Fix write_backwards fallback when using a new tool on older kernels
without support for this feature (Arnaldo Carvalho de Melo)
- Remove some leftovers from the initial codebase copying from git
(Arnaldo Carvalho de Melo)
- List libelf-devel as an alternative, as this is how the libelf
development package is called on OpenSuSE (Jean Delvare)
- Rename __hists__add_entry to hists__add_entry (Jiri Olsa)
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'tools/perf/builtin-diff.c')
-rw-r--r-- | tools/perf/builtin-diff.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/tools/perf/builtin-diff.c b/tools/perf/builtin-diff.c index 7f628f9c2fb4..8b6735f35179 100644 --- a/tools/perf/builtin-diff.c +++ b/tools/perf/builtin-diff.c | |||
@@ -310,16 +310,6 @@ static int formula_fprintf(struct hist_entry *he, struct hist_entry *pair, | |||
310 | return -1; | 310 | return -1; |
311 | } | 311 | } |
312 | 312 | ||
313 | static int hists__add_entry(struct hists *hists, | ||
314 | struct addr_location *al, | ||
315 | struct perf_sample *sample) | ||
316 | { | ||
317 | if (__hists__add_entry(hists, al, NULL, NULL, NULL, | ||
318 | sample, true) != NULL) | ||
319 | return 0; | ||
320 | return -ENOMEM; | ||
321 | } | ||
322 | |||
323 | static int diff__process_sample_event(struct perf_tool *tool __maybe_unused, | 313 | static int diff__process_sample_event(struct perf_tool *tool __maybe_unused, |
324 | union perf_event *event, | 314 | union perf_event *event, |
325 | struct perf_sample *sample, | 315 | struct perf_sample *sample, |
@@ -336,7 +326,7 @@ static int diff__process_sample_event(struct perf_tool *tool __maybe_unused, | |||
336 | return -1; | 326 | return -1; |
337 | } | 327 | } |
338 | 328 | ||
339 | if (hists__add_entry(hists, &al, sample)) { | 329 | if (!hists__add_entry(hists, &al, NULL, NULL, NULL, sample, true)) { |
340 | pr_warning("problem incrementing symbol period, skipping event\n"); | 330 | pr_warning("problem incrementing symbol period, skipping event\n"); |
341 | goto out_put; | 331 | goto out_put; |
342 | } | 332 | } |