mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
perf_counter: Plug more stack leaks
Per example of Arjan's patch, I went through and found a few more. Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
This commit is contained in:
parent
c9f73a3dd2
commit
573402db02
1 changed files with 21 additions and 2 deletions
|
@ -2897,8 +2897,11 @@ void perf_counter_fork(struct task_struct *task)
|
||||||
.event = {
|
.event = {
|
||||||
.header = {
|
.header = {
|
||||||
.type = PERF_EVENT_FORK,
|
.type = PERF_EVENT_FORK,
|
||||||
|
.misc = 0,
|
||||||
.size = sizeof(fork_event.event),
|
.size = sizeof(fork_event.event),
|
||||||
},
|
},
|
||||||
|
/* .pid */
|
||||||
|
/* .ppid */
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -3008,8 +3011,16 @@ void perf_counter_comm(struct task_struct *task)
|
||||||
|
|
||||||
comm_event = (struct perf_comm_event){
|
comm_event = (struct perf_comm_event){
|
||||||
.task = task,
|
.task = task,
|
||||||
|
/* .comm */
|
||||||
|
/* .comm_size */
|
||||||
.event = {
|
.event = {
|
||||||
.header = { .type = PERF_EVENT_COMM, },
|
.header = {
|
||||||
|
.type = PERF_EVENT_COMM,
|
||||||
|
.misc = 0,
|
||||||
|
/* .size */
|
||||||
|
},
|
||||||
|
/* .pid */
|
||||||
|
/* .tid */
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -3160,8 +3171,16 @@ void __perf_counter_mmap(struct vm_area_struct *vma)
|
||||||
|
|
||||||
mmap_event = (struct perf_mmap_event){
|
mmap_event = (struct perf_mmap_event){
|
||||||
.vma = vma,
|
.vma = vma,
|
||||||
|
/* .file_name */
|
||||||
|
/* .file_size */
|
||||||
.event = {
|
.event = {
|
||||||
.header = { .type = PERF_EVENT_MMAP, },
|
.header = {
|
||||||
|
.type = PERF_EVENT_MMAP,
|
||||||
|
.misc = 0,
|
||||||
|
/* .size */
|
||||||
|
},
|
||||||
|
/* .pid */
|
||||||
|
/* .tid */
|
||||||
.start = vma->vm_start,
|
.start = vma->vm_start,
|
||||||
.len = vma->vm_end - vma->vm_start,
|
.len = vma->vm_end - vma->vm_start,
|
||||||
.pgoff = vma->vm_pgoff,
|
.pgoff = vma->vm_pgoff,
|
||||||
|
|
Loading…
Reference in a new issue