Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
fork

Configure Feed

Select the types of activity you want to include in your feed.

perf auxtrace: Prevent decoding when --no-itrace

Prevent auxtrace_queues__process_index() from queuing AUX area data for
decoding when the --no-itrace option has been used.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Link: http://lkml.kernel.org/r/1520327598-1317-3-git-send-email-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

authored by

Adrian Hunter and committed by
Arnaldo Carvalho de Melo
2e2967f4 40c21898

+9 -6
+9 -6
tools/perf/util/auxtrace.c
··· 60 60 #include "sane_ctype.h" 61 61 #include "symbol/kallsyms.h" 62 62 63 + static bool auxtrace__dont_decode(struct perf_session *session) 64 + { 65 + return !session->itrace_synth_opts || 66 + session->itrace_synth_opts->dont_decode; 67 + } 68 + 63 69 int auxtrace_mmap__mmap(struct auxtrace_mmap *mm, 64 70 struct auxtrace_mmap_params *mp, 65 71 void *userpg, int fd) ··· 768 762 size_t i; 769 763 int err; 770 764 765 + if (auxtrace__dont_decode(session)) 766 + return 0; 767 + 771 768 list_for_each_entry(auxtrace_index, &session->auxtrace_index, list) { 772 769 for (i = 0; i < auxtrace_index->nr; i++) { 773 770 ent = &auxtrace_index->entries[i]; ··· 899 890 out_free: 900 891 free(ev); 901 892 return err; 902 - } 903 - 904 - static bool auxtrace__dont_decode(struct perf_session *session) 905 - { 906 - return !session->itrace_synth_opts || 907 - session->itrace_synth_opts->dont_decode; 908 893 } 909 894 910 895 int perf_event__process_auxtrace_info(struct perf_tool *tool __maybe_unused,