perf tools: Do not zero sample_id_all for group members
Jiri Olsa
reviewerPATCH 1/1 perf tools: Do not zero sample_id_all for group members
Andi reported following malfunction:
# perf record -e '{ref-cycles,cycles}:S' -a sleep 1
# perf script
non matching sample_id_allThat's because we disable sample_id_all bit for non-sampling group members. We can't do that, because it needs to be the same over the whole event list. This patch keeps it untouched again.
--- tools/perf/tests/attr/test-record-group-sampling | 1 - tools/perf/util/evsel.c | 1 - 2 files changed, 2 deletions(-)
tools/perf/tests/attr/test-record-group-sampling +0 -1
@@ -37,4 +37,3 @@ sample_freq=0 sample_period=0 freq=0 write_backward=0 -sample_id_all=0
tools/perf/util/evsel.c +0 -1
@@ -952,7 +952,6 @@ void perf_evsel__config(struct perf_evsel *evsel, struct record_opts *opts, attr->sample_freq =0 ; attr->sample_period =0 ; attr->write_backward =0 ; - attr->sample_id_all =0 ; }if (opts->no_samples)
Signature · 1 line
2.17.1
Quoted 11 lines · Jiri Olsa
Andi reported following malfunction:
# perf record -e '{ref-cycles,cycles}:S' -a sleep 1 # perf script non matching sample_id_allThat's because we disable
sample_id_allbit for non-sampling group members. We can't do that, because it needs to be the same over the whole event list. This patch keeps it untouched again.
Quoted 4 lines
Fixes e9add8bac6c6 ("perf evsel: Disable write_backward for leader sampling group events")Reported-by Andi Kleen <[email protected]>Signed-off-by Jiri Olsa <[email protected]>
Should be also cc stable please
-Andi
tip-bot for Jiri Olsa
merge botperf tools: Do not zero sample_id_all for group members
Commit-ID: 8e88c29b351ed4e09dd63f825f1c8260b0cb0ab3 Gitweb: https://git.kernel.org/tip/8e88c29b351ed4e09dd63f825f1c8260b0cb0ab3 Author: Jiri Olsa <[email protected]> AuthorDate: Sun, 23 Sep 2018 17:04:20 +0200 Committer: Arnaldo Carvalho de Melo <[email protected]> CommitDate: Tue, 6 Nov 2018 08:29:56 -0300
perf tools: Do not zero sample_id_all for group members
Andi reported following malfunction:
# perf record -e '{ref-cycles,cycles}:S' -a sleep 1
# perf script
non matching sample_id_allThat's because we disable sample_id_all bit for non-sampling group members. We can't do that, because it needs to be the same over the whole event list. This patch keeps it untouched again.
--- tools/perf/tests/attr/test-record-group-sampling | 1 - tools/perf/util/evsel.c | 1 - 2 files changed, 2 deletions(-)
tools/perf/tests/attr/test-record-group-sampling +0 -1
@@ -37,4 +37,3 @@ sample_freq=0 sample_period=0 freq=0 write_backward=0 -sample_id_all=0
tools/perf/util/evsel.c +0 -1
@@ -956,7 +956,6 @@ void perf_evsel__config(struct perf_evsel *evsel, struct record_opts *opts, attr->sample_freq =0 ; attr->sample_period =0 ; attr->write_backward =0 ; - attr->sample_id_all =0 ; }if (opts->no_samples)