diff options
| author | Peter Zijlstra <[email protected]> | 2016-01-11 14:00:50 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2016-01-21 17:54:24 +0000 |
| commit | fae3fde65138b6071b1b0e0b567d4058a8b6a88c (patch) | |
| tree | a99a98df4999f5a07dae0333c5c0545dd980d0a0 /tools/perf/ui/browsers/annotate.c | |
| parent | perf: Specialize perf_event_exit_task() (diff) | |
| download | kernel-fae3fde65138b6071b1b0e0b567d4058a8b6a88c.tar.gz kernel-fae3fde65138b6071b1b0e0b567d4058a8b6a88c.zip | |
perf: Collapse and fix event_function_call() users
There is one common bug left in all the event_function_call() users,
between loading ctx->task and getting to the remote_function(),
ctx->task can already have been changed.
Therefore we need to double check and retry if ctx->task != current.
Insert another trampoline specific to event_function_call() that
checks for this and further validates state. This also allows getting
rid of the active/inactive functions.
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Stephane Eranian <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Vince Weaver <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/ui/browsers/annotate.c')
0 files changed, 0 insertions, 0 deletions
