aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorPeter Zijlstra <a.p.zijlstra@chello.nl>2009-04-08 09:01:30 -0400
committerIngo Molnar <mingo@elte.hu>2009-04-08 13:05:47 -0400
commit8d1b2d9361b494bfc761700c348c65ebbe3deb5b (patch)
tree284706b328133063bf530cb47c52a827b523b65a /fs
parent8740f9418c78dcad694b46ab25d1645d5aef1f5e (diff)
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')
-rw-r--r--fs/exec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/exec.c b/fs/exec.c
index e015c0b5a082..bf47ed0278ff 100644
--- a/fs/exec.c
+++ b/fs/exec.c
@@ -951,6 +951,7 @@ void set_task_comm(struct task_struct *tsk, char *buf)
951 task_lock(tsk); 951 task_lock(tsk);
952 strlcpy(tsk->comm, buf, sizeof(tsk->comm)); 952 strlcpy(tsk->comm, buf, sizeof(tsk->comm));
953 task_unlock(tsk); 953 task_unlock(tsk);
954 perf_counter_comm(tsk);
954} 955}
955 956
956int flush_old_exec(struct linux_binprm * bprm) 957int flush_old_exec(struct linux_binprm * bprm)