Skip to content

Commit

Permalink
ring-buffer: export symbols
Browse files Browse the repository at this point in the history
I'm adding a module to do a series of tests on the ring buffer as well
as benchmarks. This module needs to have more of the ring buffer API
exported. There's nothing wrong with reading the ring buffer from a
module.

[ Impact: allow modules to read pages from the ring buffer ]

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
  • Loading branch information
Steven Rostedt authored and Steven Rostedt committed May 5, 2009
1 parent 9ee1983 commit d6ce96d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions kernel/trace/ring_buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -2802,6 +2802,7 @@ void *ring_buffer_alloc_read_page(struct ring_buffer *buffer)

return bpage;
}
EXPORT_SYMBOL_GPL(ring_buffer_alloc_read_page);

/**
* ring_buffer_free_read_page - free an allocated read page
Expand All @@ -2814,6 +2815,7 @@ void ring_buffer_free_read_page(struct ring_buffer *buffer, void *data)
{
free_page((unsigned long)data);
}
EXPORT_SYMBOL_GPL(ring_buffer_free_read_page);

/**
* ring_buffer_read_page - extract a page from the ring buffer
Expand Down Expand Up @@ -2959,6 +2961,7 @@ int ring_buffer_read_page(struct ring_buffer *buffer,
out:
return ret;
}
EXPORT_SYMBOL_GPL(ring_buffer_read_page);

static ssize_t
rb_simple_read(struct file *filp, char __user *ubuf,
Expand Down

0 comments on commit d6ce96d

Please sign in to comment.