diff options
| author | Pengpeng Hou <pengpeng@iscas.ac.cn> | 2026-06-11 13:59:44 +0800 |
|---|---|---|
| committer | Steven Rostedt <rostedt@goodmis.org> | 2026-07-28 07:18:49 -0400 |
| commit | a5ca27e8ff1c10e949af7cfe474d6d1a08fb5601 (patch) | |
| tree | 6278a2750f954f543cb48efce3dc08919f12b1a4 /tools/perf/scripts/python | |
| parent | 988995c0552b6213b6bf16cea57258d4842c1488 (diff) | |
tracing: Return ERR_PTR() from expr_str()
expr_str() currently reports all failure cases as NULL, so callers cannot
distinguish invalid recursion depth from allocation failure or later
string construction errors.
Return ERR_PTR()-encoded errors from expr_str() and make parse_unary()
and parse_expr() propagate them. Clear expr->name before destroying the
hist field so the error pointer is not freed as a string.
Link: https://patch.msgid.link/20260611055945.22348-3-pengpeng@iscas.ac.cn
Signed-off-by: Pengpeng Hou <pengpeng@iscas.ac.cn>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
