aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/perf_counter.h
diff options
context:
space:
mode:
authorPeter Zijlstra <a.p.zijlstra@chello.nl>2009-06-02 08:13:15 -0400
committerIngo Molnar <mingo@elte.hu>2009-06-02 10:16:25 -0400
commit709e50cf870e61745b39552044aa6c7c38e4f9e0 (patch)
treeb02ec75a1d67a904effedd39208ecbbcf46b9345 /include/linux/perf_counter.h
parentbf4e0ed3d027ce581be18496036862131b5f32aa (diff)
perf_counter: Use PID namespaces properly
Stop using task_struct::pid and start using PID namespaces. PIDs will be reported in the PID namespace of the monitoring task at the moment of counter creation. Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Eric W. Biederman <ebiederm@xmission.com> Cc: Oleg Nesterov <oleg@tv-sign.ru> 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> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/perf_counter.h')
-rw-r--r--include/linux/perf_counter.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/perf_counter.h b/include/linux/perf_counter.h
index d970fbc16af..9ec20fc6bd3 100644
--- a/include/linux/perf_counter.h
+++ b/include/linux/perf_counter.h
@@ -317,6 +317,7 @@ enum perf_event_type {
317#include <linux/spinlock.h> 317#include <linux/spinlock.h>
318#include <linux/hrtimer.h> 318#include <linux/hrtimer.h>
319#include <linux/fs.h> 319#include <linux/fs.h>
320#include <linux/pid_namespace.h>
320#include <asm/atomic.h> 321#include <asm/atomic.h>
321 322
322struct task_struct; 323struct task_struct;
@@ -500,6 +501,8 @@ struct perf_counter {
500 501
501 void (*destroy)(struct perf_counter *); 502 void (*destroy)(struct perf_counter *);
502 struct rcu_head rcu_head; 503 struct rcu_head rcu_head;
504
505 struct pid_namespace *ns;
503#endif 506#endif
504}; 507};
505 508