Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 121189
b: refs/heads/master
c: cffa10a
h: refs/heads/master
i:
  121187: ab52367
v: v3
  • Loading branch information
Török Edwin authored and Ingo Molnar committed Nov 23, 2008
1 parent 4f7ca8a commit 591a18d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 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: 8d7c6a96164651dbbab449ef0b5c20ae1f76a3a1
refs/heads/master: cffa10aecb6891f090a4d53a075bc40c082c45fc
9 changes: 6 additions & 3 deletions trunk/kernel/trace/trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -1462,11 +1462,15 @@ static inline int seq_print_user_ip(struct trace_seq *s, struct mm_struct *mm,
int ret = 1;

if (mm) {
const struct vm_area_struct *vma = find_vma(mm, ip);
const struct vm_area_struct *vma;

down_read(&mm->mmap_sem);
vma = find_vma(mm, ip);
if (vma) {
file = vma->vm_file;
vmstart = vma->vm_start;
}
up_read(&mm->mmap_sem);
}
if (file) {
ret = trace_seq_path(s, &file->f_path);
Expand Down Expand Up @@ -1494,10 +1498,9 @@ seq_print_userip_objs(const struct userstack_entry *entry, struct trace_seq *s,
*/
rcu_read_lock();
task = find_task_by_vpid(entry->ent.tgid);
rcu_read_unlock();

if (task)
mm = get_task_mm(task);
rcu_read_unlock();
}

for (i = 0; i < FTRACE_STACK_ENTRIES; i++) {
Expand Down

0 comments on commit 591a18d

Please sign in to comment.