Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 146186
b: refs/heads/master
c: 5b6045a
h: refs/heads/master
v: v3
  • Loading branch information
Heiko Carstens authored and Frederic Weisbecker committed May 27, 2009
1 parent b21fbdf commit a79b231
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c2adae0970ca1db8adb92fb56ae3bcabd916e8bd
refs/heads/master: 5b6045a906f48d37591365c5dcdd6d1d146bfd4a
2 changes: 2 additions & 0 deletions trunk/kernel/trace/trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -808,6 +808,7 @@ void trace_find_cmdline(int pid, char comm[])
return;
}

preempt_disable();
__raw_spin_lock(&trace_cmdline_lock);
map = map_pid_to_cmdline[pid];
if (map != NO_CMDLINE_MAP)
Expand All @@ -816,6 +817,7 @@ void trace_find_cmdline(int pid, char comm[])
strcpy(comm, "<...>");

__raw_spin_unlock(&trace_cmdline_lock);
preempt_enable();
}

void tracing_record_cmdline(struct task_struct *tsk)
Expand Down

0 comments on commit a79b231

Please sign in to comment.