Message ID | 20221228144311.443765467@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 2bf21194c7b3..aaa465d7f011 100644 --- a/tools/perf/builtin-trace.c +++ b/tools/perf/builtin-trace.c @@ -1782,11 +1782,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;