diff options
| author | Hongling Zeng <zenghongling@kylinos.cn> | 2026-07-10 16:01:40 +0800 |
|---|---|---|
| committer | Namhyung Kim <namhyung@kernel.org> | 2026-07-15 11:16:41 -0700 |
| commit | 4968708beaad53940b67e4952e34a97d8768091d (patch) | |
| tree | 47b91b79d8bb5fcb018b538da1ecd33b48fa7a45 /tools/perf/scripts/python/stackcollapse.py | |
| parent | d30f2d869b6a2e985351867424037eb7bcb57386 (diff) | |
perf: evsel: Fix error handling in tp_format lookup
In evsel__tp_format(), when trace_event__tp_format*() returns an error,
IS_ERR() checks the local variable 'tp_format', but PTR_ERR() incorrectly
uses 'evsel->tp_format' which hasn't been assigned yet.
Fix this by using PTR_ERR(tp_format) to extract the error code from the
correct variable.
Fixes: 6c8310e8380d ("perf evsel: Allow evsel__newtp without libtraceevent")
Signed-off-by: Hongling Zeng <zenghongling@kylinos.cn>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
