Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tracing/syscalls: Fix perf syscall tracing when syscall_nr == -1
syscall_get_nr can return -1 in the case that the task is not executing a system call. This patch fixes perf_syscall_{enter,exit} to check that the syscall number is valid before using it as an index into a bitmap. Link: http://lkml.kernel.org/r/[email protected] Change-Id: Iedc719957e184c6572b3ad94e241ae2a97a0b533 Cc: Jason Baron <[email protected]> Cc: Wade Farnsworth <[email protected]> Cc: Frederic Weisbecker <[email protected]> Signed-off-by: Will Deacon <[email protected]> Signed-off-by: Steven Rostedt <[email protected]>
- Loading branch information