diff options
| author | James Clark <[email protected]> | 2022-10-12 15:38:57 +0100 | 
|---|---|---|
| committer | Peter Zijlstra <[email protected]> | 2022-10-27 10:27:30 +0200 | 
| commit | 4b66ff46f2e18b1d32e18c881799ef911606f3be (patch) | |
| tree | f8ccbd24c3b47c40140e21dfeb9d38f62c46db32 /tools/perf/scripts/python/bin/syscall-counts-by-pid-record | |
| parent | 247f34f7b80357943234f93f247a1ae6b6c3a740 (diff) | |
perf: Fix missing raw data on tracepoint events
Since commit 838d9bb62d13 ("perf: Use sample_flags for raw_data")
raw data is not being output on tracepoints due to the PERF_SAMPLE_RAW
field not being set. Fix this by setting it for tracepoint events.
This fixes the following test failure:
  perf test "sched_switch" -vvv
   35: Track with sched_switch
  --- start ---
  test child forked, pid 1828
  ...
  Using CPUID 0x00000000410fd400
  sched_switch: cpu: 2 prev_tid -14687 next_tid 0
  sched_switch: cpu: 2 prev_tid -14687 next_tid 0
  Missing sched_switch events
  4613 events recorded
  test child finished with -1
  ---- end ----
  Track with sched_switch: FAILED!
Fixes: 838d9bb62d13 ("perf: Use sample_flags for raw_data")
Signed-off-by: James Clark <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Acked-by: Namhyung Kim <[email protected]>
Tested-by: SeongJae Park <[email protected]>
Tested-by: Athira Rajeev <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/bin/syscall-counts-by-pid-record')
0 files changed, 0 insertions, 0 deletions