summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorIan Rogers <irogers@google.com>2026-03-02 15:45:15 -0800
committerNamhyung Kim <namhyung@kernel.org>2026-03-02 17:13:19 -0800
commitd05073adda0f047e9b2115a2932bcb2797eab238 (patch)
tree124d44ec5615a6859b2d138443ed7a44640b909d /tools/perf/scripts/python/task-analyzer.py
parent06ec44c2aa2ef15fd56f9808b6cf7495e1fbd8ec (diff)
perf trace: Avoid an ERR_PTR in syscall_stats
hashmap__new may return an ERR_PTR and previously this would be assigned to syscall_stats meaning all use of syscall_stats needs to test for NULL (uninitialized) or an ERR_PTR. Given the only reason hashmap__new can fail is ENOMEM, just use NULL to indicate the allocation failure and avoid the code having to test for NULL and IS_ERR. Fixes: 96f202eab813 (perf trace: Fix IS_ERR() vs NULL check bug) Signed-off-by: Ian Rogers <irogers@google.com> Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions