Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 338821
b: refs/heads/master
c: 374b928
h: refs/heads/master
i:
  338819: 4c98c1c
v: v3
  • Loading branch information
Michael Wang authored and Paul E. McKenney committed Nov 8, 2012
1 parent 922f6d2 commit 5126f49
Show file tree
Hide file tree
Showing 2 changed files with 31 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: 573bcd40d221bd6d7cebf27dee120bd242f5feb5
refs/heads/master: 374b928ee8061fdbb0b527fb3924080ba2437767
30 changes: 30 additions & 0 deletions trunk/kernel/rcutree_trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,36 @@
#define RCU_TREE_NONCORE
#include "rcutree.h"

static int r_open(struct inode *inode, struct file *file,
const struct seq_operations *op)
{
int ret = seq_open(file, op);
if (!ret) {
struct seq_file *m = (struct seq_file *)file->private_data;
m->private = inode->i_private;
}
return ret;
}

static void *r_start(struct seq_file *m, loff_t *pos)
{
struct rcu_state *rsp = (struct rcu_state *)m->private;
*pos = cpumask_next(*pos - 1, cpu_possible_mask);
if ((*pos) < nr_cpu_ids)
return per_cpu_ptr(rsp->rda, *pos);
return NULL;
}

static void *r_next(struct seq_file *m, void *v, loff_t *pos)
{
(*pos)++;
return r_start(m, pos);
}

static void r_stop(struct seq_file *m, void *v)
{
}

static int show_rcubarrier(struct seq_file *m, void *unused)
{
struct rcu_state *rsp;
Expand Down

0 comments on commit 5126f49

Please sign in to comment.