Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
ring_buffer.c File Reference
#include <linux/perf_event.h>
#include <linux/vmalloc.h>
#include <linux/slab.h>
#include "internal.h"

Go to the source code of this file.


int perf_output_begin (struct perf_output_handle *handle, struct perf_event *event, unsigned int size)
unsigned int perf_output_copy (struct perf_output_handle *handle, const void *buf, unsigned int len)
unsigned int perf_output_skip (struct perf_output_handle *handle, unsigned int len)
void perf_output_end (struct perf_output_handle *handle)
struct pageperf_mmap_to_page (struct ring_buffer *rb, unsigned long pgoff)
struct ring_bufferrb_alloc (int nr_pages, long watermark, int cpu, int flags)
void rb_free (struct ring_buffer *rb)

Function Documentation

struct page* perf_mmap_to_page ( struct ring_buffer rb,
unsigned long  pgoff 

Definition at line 230 of file ring_buffer.c.

int perf_output_begin ( struct perf_output_handle handle,
struct perf_event event,
unsigned int  size 

Definition at line 100 of file ring_buffer.c.

unsigned int perf_output_copy ( struct perf_output_handle handle,
const void buf,
unsigned int  len 

Definition at line 185 of file ring_buffer.c.

void perf_output_end ( struct perf_output_handle handle)

Definition at line 197 of file ring_buffer.c.

unsigned int perf_output_skip ( struct perf_output_handle handle,
unsigned int  len 

Definition at line 191 of file ring_buffer.c.

struct ring_buffer* rb_alloc ( int  nr_pages,
long  watermark,
int  cpu,
int  flags 

Definition at line 254 of file ring_buffer.c.

void rb_free ( struct ring_buffer rb)

Definition at line 304 of file ring_buffer.c.