diff options
author | Ingo Molnar <mingo@kernel.org> | 2016-03-30 10:31:03 (GMT) |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2016-03-30 10:31:03 (GMT) |
commit | f6343be96ebbae38a07e0878810f5bbc0c38cade (patch) | |
tree | 78fd5d65461b5c18a153edaefa91ee06e55d9afe /tools/perf/util/jitdump.c | |
parent | 5dc1037305140d8a7e580e916ac17df5d0124add (diff) | |
parent | 3ea223adcb0c5893a6dc8ed3a84dce264cbb61d6 (diff) | |
download | linux-f6343be96ebbae38a07e0878810f5bbc0c38cade.tar.xz |
Merge tag 'perf-urgent-for-mingo-20160329' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/urgent
Pull perf/urgent fix from Arnaldo Carvalho de Melo:
- Add missing initialization of perf_sample.cpumode in synthesized samples,
affects jitdump, records for pre-existing threads and records synthesized
from processor trace data, noticed while testing intel_pt events with
'perf script' (Arnaldo Carvalho de Melo)
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'tools/perf/util/jitdump.c')
-rw-r--r-- | tools/perf/util/jitdump.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/util/jitdump.c b/tools/perf/util/jitdump.c index cd272cc..ad0c0bb 100644 --- a/tools/perf/util/jitdump.c +++ b/tools/perf/util/jitdump.c @@ -417,6 +417,7 @@ static int jit_repipe_code_load(struct jit_buf_desc *jd, union jr_entry *jr) * use first address as sample address */ memset(&sample, 0, sizeof(sample)); + sample.cpumode = PERF_RECORD_MISC_USER; sample.pid = pid; sample.tid = tid; sample.time = id->time; @@ -505,6 +506,7 @@ static int jit_repipe_code_move(struct jit_buf_desc *jd, union jr_entry *jr) * use first address as sample address */ memset(&sample, 0, sizeof(sample)); + sample.cpumode = PERF_RECORD_MISC_USER; sample.pid = pid; sample.tid = tid; sample.time = id->time; |