summaryrefslogtreecommitdiff
path: root/fs/exec.c
diff options
context:
space:
mode:
authorPeter Zijlstra <a.p.zijlstra@chello.nl>2009-04-08 15:01:30 +0200
committerIngo Molnar <mingo@elte.hu>2009-04-08 19:05:47 +0200
commit8d1b2d9361b494bfc761700c348c65ebbe3deb5b (patch)
tree284706b328133063bf530cb47c52a827b523b65a /fs/exec.c
parent8740f9418c78dcad694b46ab25d1645d5aef1f5e (diff)
downloadlinux-3.10-8d1b2d9361b494bfc761700c348c65ebbe3deb5b.tar.gz
linux-3.10-8d1b2d9361b494bfc761700c348c65ebbe3deb5b.tar.bz2
linux-3.10-8d1b2d9361b494bfc761700c348c65ebbe3deb5b.zip
perf_counter: track task-comm data
Similar to the mmap data stream, add one that tracks the task COMM field, so that the userspace reporting knows what to call a task. Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Paul Mackerras <paulus@samba.org> Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com> LKML-Reference: <20090408130409.127422406@chello.nl> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'fs/exec.c')
-rw-r--r--fs/exec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/exec.c b/fs/exec.c
index e015c0b5a08..bf47ed0278f 100644
--- a/fs/exec.c
+++ b/fs/exec.c
@@ -951,6 +951,7 @@ void set_task_comm(struct task_struct *tsk, char *buf)
task_lock(tsk);
strlcpy(tsk->comm, buf, sizeof(tsk->comm));
task_unlock(tsk);
+ perf_counter_comm(tsk);
}
int flush_old_exec(struct linux_binprm * bprm)