diff options
| author | Arnaldo Carvalho de Melo <[email protected]> | 2019-06-13 20:35:09 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2019-06-17 18:57:19 +0000 |
| commit | a4066d64d9391a734ee0e49c8d2757f5685013b4 (patch) | |
| tree | 8c98ad0c2e6980decb889bd04447e0206cc65c77 /tools/perf/tests/bpf-script-example.c | |
| parent | tools build: Check if gettid() is available before providing helper (diff) | |
| download | kernel-a4066d64d9391a734ee0e49c8d2757f5685013b4.tar.gz kernel-a4066d64d9391a734ee0e49c8d2757f5685013b4.zip | |
perf trace: Fix exclusion of not available syscall names from selector list
We were just skipping the syscalls not available in a particular
architecture without reflecting this in the number of entries in the
ev_qualifier_ids.nr variable, fix it.
This was done with the most minimalistic way, reusing the index variable
'i', a followup patch will further clean this by making 'i' renamed to
'nr_used' and using 'nr_allocated' in a few more places.
Reported-by: Leo Yan <[email protected]>
Tested-by: Leo Yan <[email protected]>
Cc: Adrian Hunter <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Mathieu Poirier <[email protected]>
Cc: Mike Leach <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Suzuki K Poulose <[email protected]>
Fixes: 04c41bcb862b ("perf trace: Skip unknown syscalls when expanding strace like syscall groups")
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/tests/bpf-script-example.c')
0 files changed, 0 insertions, 0 deletions
