diff options
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2009-04-08 09:01:30 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-04-08 13:05:47 -0400 |
commit | 8d1b2d9361b494bfc761700c348c65ebbe3deb5b (patch) | |
tree | 284706b328133063bf530cb47c52a827b523b65a /fs | |
parent | 8740f9418c78dcad694b46ab25d1645d5aef1f5e (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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 | ||
956 | int flush_old_exec(struct linux_binprm * bprm) | 957 | int flush_old_exec(struct linux_binprm * bprm) |