WSL2-Linux-Kernel/kernel/trace
Will Deacon 60916a9382 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/1345137254-7377-1-git-send-email-will.deacon@arm.com

Cc: Jason Baron <jbaron@redhat.com>
Cc: Wade Farnsworth <wade_farnsworth@mentor.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
2012-08-17 15:19:46 -04:00
..
Kconfig
Makefile
blktrace.c
ftrace.c ftrace: Remove a superfluous check 2012-06-14 15:22:12 -04:00
power-traces.c
ring_buffer.c Merge branch 'linus' into perf/core 2012-07-18 11:17:17 +02:00
ring_buffer_benchmark.c
rpm-traces.c
trace.c Staging tree patches for 3.6-rc1 2012-07-26 11:14:49 -07:00
trace.h tracing: Remove NR_CPUS array from trace_iterator 2012-06-28 13:52:15 -04:00
trace_branch.c
trace_clock.c
trace_entries.h
trace_event_perf.c perf/trace: Add ability to set a target task for events 2012-07-31 17:02:05 +02:00
trace_events.c
trace_events_filter.c
trace_events_filter_test.h
trace_export.c
trace_functions.c tracing/function: Convert func_set_flag() to a switch statement 2012-07-17 10:15:04 -07:00
trace_functions_graph.c tracing: Remove NR_CPUS array from trace_iterator 2012-06-28 13:52:15 -04:00
trace_irqsoff.c
trace_kdb.c
trace_kprobe.c perf/trace: Add ability to set a target task for events 2012-07-31 17:02:05 +02:00
trace_mmiotrace.c
trace_nop.c
trace_output.c tracing: Register the ftrace internal events during early boot 2012-06-14 15:22:14 -04:00
trace_output.h
trace_printk.c
trace_probe.c
trace_probe.h
trace_sched_switch.c
trace_sched_wakeup.c
trace_selftest.c
trace_selftest_dynamic.c
trace_stack.c
trace_stat.c
trace_stat.h
trace_syscalls.c tracing/syscalls: Fix perf syscall tracing when syscall_nr == -1 2012-08-17 15:19:46 -04:00
trace_uprobe.c perf/trace: Add ability to set a target task for events 2012-07-31 17:02:05 +02:00