diff options
| author | Fushuai Wang <wangfushuai@baidu.com> | 2025-09-17 17:54:22 +0800 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2025-09-19 12:42:07 -0300 |
| commit | b0f4ade163e551d0c470ead7ac57eaf373eec71a (patch) | |
| tree | f2b0bf1c808e012bcc55b5dce0f765181c7028ab /tools/perf/scripts/python/parallel-perf.py | |
| parent | perf test attr: Add missing int_mist.uop_dropping event to test-stat files (diff) | |
| download | linux-b0f4ade163e551d0c470ead7ac57eaf373eec71a.tar.gz linux-b0f4ade163e551d0c470ead7ac57eaf373eec71a.zip | |
perf trace: Fix IS_ERR() vs NULL check bug
The alloc_syscall_stats() function always returns an error pointer
(ERR_PTR) on failure.
So replace NULL check with IS_ERR() check after calling
alloc_syscall_stats() function.
Fixes: fc00897c8a3f7f57 ("perf trace: Add --summary-mode option")
Reviewed-by: Ian Rogers <irogers@google.com>
Signed-off-by: Fushuai Wang <wangfushuai@baidu.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/parallel-perf.py')
0 files changed, 0 insertions, 0 deletions
