summaryrefslogtreecommitdiff
path: root/Documentation/perf_counter/builtin-record.c
diff options
context:
space:
mode:
authorPeter Zijlstra <a.p.zijlstra@chello.nl>2009-06-03 14:01:36 +0200
committerIngo Molnar <mingo@elte.hu>2009-06-03 14:57:03 +0200
commita96bbc16418bc691317f265d6bf98ba941ca9c1a (patch)
tree136e40a12a94653e8224d6c09d5384b4140e0532 /Documentation/perf_counter/builtin-record.c
parent8229289b607682f90b946ad2c319526303c17700 (diff)
downloadlwn-a96bbc16418bc691317f265d6bf98ba941ca9c1a.tar.gz
lwn-a96bbc16418bc691317f265d6bf98ba941ca9c1a.zip
perf_counter: Fix race in counter initialization
We need the PID namespace and counter ID available when the counter overflows and we need to generate a sample event. [ Impact: fix kernel crash with high-frequency sampling ] Reported-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Mike Galbraith <efault@gmx.de> Cc: Paul Mackerras <paulus@samba.org> Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com> Cc: Marcelo Tosatti <mtosatti@redhat.com> Cc: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: John Kacur <jkacur@redhat.com> LKML-Reference: <new-submission> [ fixed a further crash and cleaned up the initialization a bit ] Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'Documentation/perf_counter/builtin-record.c')
0 files changed, 0 insertions, 0 deletions