Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 128203
b: refs/heads/master
c: 317f33b
h: refs/heads/master
i:
  128201: 9369f62
  128199: 4bf0c1e
v: v3
  • Loading branch information
Robert Richter committed Dec 29, 2008
1 parent 99a775f commit a6d87b6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 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: 9741b309bb4493eedd3cdb5c97b566338a0da2cc
refs/heads/master: 317f33bce6d43367a2fd170bc87ba18a88d2621d
20 changes: 14 additions & 6 deletions trunk/drivers/oprofile/buffer_sync.c
Original file line number Diff line number Diff line change
Expand Up @@ -579,12 +579,20 @@ void sync_buffer(int cpu)
add_user_ctx_switch(new, cookie);
break;
}
} else if (state >= sb_bt_start &&
!add_sample(mm, s, in_kernel)) {
if (state == sb_bt_start) {
state = sb_bt_ignore;
atomic_inc(&oprofile_stats.bt_lost_no_mapping);
}
continue;
}

if (state < sb_bt_start)
/* ignore sample */
continue;

if (add_sample(mm, s, in_kernel))
continue;

/* ignore backtraces if failed to add a sample */
if (state == sb_bt_start) {
state = sb_bt_ignore;
atomic_inc(&oprofile_stats.bt_lost_no_mapping);
}
}
release_mm(mm);
Expand Down

0 comments on commit a6d87b6

Please sign in to comment.