Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 117113
b: refs/heads/master
c: 9b1f261
h: refs/heads/master
i:
  117111: fdbabe7
v: v3
  • Loading branch information
Barry Kasindorf authored and Robert Richter committed Oct 20, 2008
1 parent 72dc3d5 commit ce1fa02
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 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: 4bd9b9dc97e344670e9e5762399a07dcd5f15311
refs/heads/master: 9b1f261166f56d4b2c33fdf5aad64edd5e30b46f
8 changes: 7 additions & 1 deletion trunk/drivers/oprofile/buffer_sync.c
Original file line number Diff line number Diff line change
Expand Up @@ -564,19 +564,25 @@ void sync_buffer(int cpu)
struct task_struct *new;
unsigned long cookie = 0;
int in_kernel = 1;
unsigned int i;
sync_buffer_state state = sb_buffer_start;
#ifndef CONFIG_OPROFILE_IBS
unsigned int i;
unsigned long available;
#endif

mutex_lock(&buffer_mutex);

add_cpu_switch(cpu);

/* Remember, only we can modify tail_pos */

#ifndef CONFIG_OPROFILE_IBS
available = get_slots(cpu_buf);

for (i = 0; i < available; ++i) {
#else
while (get_slots(cpu_buf)) {
#endif
struct op_sample *s = &cpu_buf->buffer[cpu_buf->tail_pos];

if (is_code(s->eip)) {
Expand Down

0 comments on commit ce1fa02

Please sign in to comment.