diff options
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2009-04-08 15:01:30 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-04-08 19:05:47 +0200 |
commit | 8d1b2d9361b494bfc761700c348c65ebbe3deb5b (patch) | |
tree | 284706b328133063bf530cb47c52a827b523b65a /fs/exec.c | |
parent | 8740f9418c78dcad694b46ab25d1645d5aef1f5e (diff) | |
download | kernel_samsung_smdk4412-8d1b2d9361b494bfc761700c348c65ebbe3deb5b.zip kernel_samsung_smdk4412-8d1b2d9361b494bfc761700c348c65ebbe3deb5b.tar.gz kernel_samsung_smdk4412-8d1b2d9361b494bfc761700c348c65ebbe3deb5b.tar.bz2 |
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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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) |