Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
event_buffer.h File Reference
#include <linux/types.h>
#include <linux/mutex.h>

Go to the source code of this file.

Macros

#define INVALID_COOKIE   ~0UL
 
#define NO_COOKIE   0UL
 

Functions

int alloc_event_buffer (void)
 
void free_event_buffer (void)
 
void add_event_entry (unsigned long data)
 
void wake_up_buffer_waiter (void)
 

Variables

struct file_operations event_buffer_fops
 
struct mutex buffer_mutex
 

Detailed Description

Remarks
Copyright 2002 OProfile authors
Read the file COPYING
Author
John Levon levon.nosp@m.@mov.nosp@m.ement.nosp@m.aria.nosp@m.n.org

Definition in file event_buffer.h.

Macro Definition Documentation

#define INVALID_COOKIE   ~0UL

Definition at line 30 of file event_buffer.h.

#define NO_COOKIE   0UL

Definition at line 31 of file event_buffer.h.

Function Documentation

void add_event_entry ( unsigned long  data)

Add data to the event buffer. The data passed is free-form, but typically consists of file offsets, dcookies, context information, and ESCAPE codes.

Definition at line 44 of file event_buffer.c.

int alloc_event_buffer ( void  )

Definition at line 81 of file event_buffer.c.

void free_event_buffer ( void  )

Definition at line 102 of file event_buffer.c.

void wake_up_buffer_waiter ( void  )

Definition at line 72 of file event_buffer.c.

Variable Documentation

struct mutex buffer_mutex
struct file_operations event_buffer_fops

Definition at line 204 of file event_buffer.c.