summaryrefslogtreecommitdiff
path: root/arch/unicore32/Kconfig.debug
diff options
context:
space:
mode:
authorLeo Yan <leo.yan@linaro.org>2022-11-21 10:52:34 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-01-18 13:41:27 +0300
commit6086919d8c2ad279a526706756d35a38c7667477 (patch)
tree928a4e8e94e35f6e742031cc0787c458ee47daae /arch/unicore32/Kconfig.debug
parentf84fff700deaeb07c8438ae6c959ea85e7f8df36 (diff)
downloadlinux-6086919d8c2ad279a526706756d35a38c7667477.tar.xz
perf trace: Return error if a system call doesn't exist
[ Upstream commit d4223e1776c30b2ce8d0e6eaadcbf696e60fca3c ] When a system call is not detected, the reason is either because the system call ID is out of scope or failure to find the corresponding path in the sysfs, trace__read_syscall_info() returns zero. Finally, without returning an error value it introduces confusion for the caller. This patch lets the function trace__read_syscall_info() to return -EEXIST when a system call doesn't exist. Fixes: b8b1033fcaa091d8 ("perf trace: Mark syscall ids that are not allocated to avoid unnecessary error messages") Signed-off-by: Leo Yan <leo.yan@linaro.org> Acked-by: Ian Rogers <irogers@google.com> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: bpf@vger.kernel.org Cc: Ingo Molnar <mingo@redhat.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Link: https://lore.kernel.org/r/20221121075237.127706-3-leo.yan@linaro.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'arch/unicore32/Kconfig.debug')
0 files changed, 0 insertions, 0 deletions