Message ID | 20221228144348.177160426@linuxfoundation.org (mailing list archive) |
---|---|
State | Accepted |
Commit | d4223e1776c30b2ce8d0e6eaadcbf696e60fca3c |
Headers | show |
Series | None | expand |
diff --git a/tools/perf/builtin-trace.c b/tools/perf/builtin-trace.c index 0bd9d01c0df9..cf3b6ca4af96 100644 --- a/tools/perf/builtin-trace.c +++ b/tools/perf/builtin-trace.c @@ -1794,11 +1794,11 @@ static int trace__read_syscall_info(struct trace *trace, int id) #endif sc = trace->syscalls.table + id; if (sc->nonexistent) - return 0; + return -EEXIST; if (name == NULL) { sc->nonexistent = true; - return 0; + return -EEXIST; } sc->name = name;