Message ID | 20221228144351.064545148@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 d3c757769b96..6bf8feedaf2c 100644 --- a/tools/perf/builtin-trace.c +++ b/tools/perf/builtin-trace.c @@ -1791,11 +1791,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;