diff options
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2009-06-02 14:13:15 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-06-02 16:16:25 +0200 |
commit | 709e50cf870e61745b39552044aa6c7c38e4f9e0 (patch) | |
tree | b02ec75a1d67a904effedd39208ecbbcf46b9345 /include | |
parent | bf4e0ed3d027ce581be18496036862131b5f32aa (diff) | |
download | op-kernel-dev-709e50cf870e61745b39552044aa6c7c38e4f9e0.zip op-kernel-dev-709e50cf870e61745b39552044aa6c7c38e4f9e0.tar.gz |
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')
-rw-r--r-- | include/linux/perf_counter.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/perf_counter.h b/include/linux/perf_counter.h index d970fbc..9ec20fc6 100644 --- a/include/linux/perf_counter.h +++ b/include/linux/perf_counter.h @@ -317,6 +317,7 @@ enum perf_event_type { #include <linux/spinlock.h> #include <linux/hrtimer.h> #include <linux/fs.h> +#include <linux/pid_namespace.h> #include <asm/atomic.h> struct task_struct; @@ -500,6 +501,8 @@ struct perf_counter { void (*destroy)(struct perf_counter *); struct rcu_head rcu_head; + + struct pid_namespace *ns; #endif }; |