Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 147575
b: refs/heads/master
c: efb3d17
h: refs/heads/master
i:
  147573: c41045e
  147571: 1e1a156
  147567: 6f34086
v: v3
  • Loading branch information
Peter Zijlstra authored and Ingo Molnar committed May 29, 2009
1 parent 5814e6b commit ad6eb60
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 012b84dae17126d8b5d159173091eb3db5a2bc43
refs/heads/master: efb3d17240d80e27508d238809168120fe4b93a4
12 changes: 4 additions & 8 deletions trunk/kernel/perf_counter.c
Original file line number Diff line number Diff line change
Expand Up @@ -2443,9 +2443,9 @@ static void perf_counter_comm_event(struct perf_comm_event *comm_event)

cpuctx = &get_cpu_var(perf_cpu_context);
perf_counter_comm_ctx(&cpuctx->ctx, comm_event);
if (cpuctx->task_ctx)
perf_counter_comm_ctx(cpuctx->task_ctx, comm_event);
put_cpu_var(perf_cpu_context);

perf_counter_comm_ctx(current->perf_counter_ctxp, comm_event);
}

void perf_counter_comm(struct task_struct *task)
Expand All @@ -2454,8 +2454,6 @@ void perf_counter_comm(struct task_struct *task)

if (!atomic_read(&nr_comm_tracking))
return;
if (!current->perf_counter_ctxp)
return;

comm_event = (struct perf_comm_event){
.task = task,
Expand Down Expand Up @@ -2570,10 +2568,10 @@ static void perf_counter_mmap_event(struct perf_mmap_event *mmap_event)

cpuctx = &get_cpu_var(perf_cpu_context);
perf_counter_mmap_ctx(&cpuctx->ctx, mmap_event);
if (cpuctx->task_ctx)
perf_counter_mmap_ctx(cpuctx->task_ctx, mmap_event);
put_cpu_var(perf_cpu_context);

perf_counter_mmap_ctx(current->perf_counter_ctxp, mmap_event);

kfree(buf);
}

Expand All @@ -2584,8 +2582,6 @@ void perf_counter_mmap(unsigned long addr, unsigned long len,

if (!atomic_read(&nr_mmap_tracking))
return;
if (!current->perf_counter_ctxp)
return;

mmap_event = (struct perf_mmap_event){
.file = file,
Expand Down

0 comments on commit ad6eb60

Please sign in to comment.