Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
python.c File Reference
#include <Python.h>
#include <structmember.h>
#include <inttypes.h>
#include <poll.h>
#include "evlist.h"
#include "evsel.h"
#include "event.h"
#include "cpumap.h"
#include "thread_map.h"

Go to the source code of this file.

Data Structures

struct  throttle_event
 
struct  pyrf_event
 
struct  pyrf_cpu_map
 
struct  pyrf_thread_map
 
struct  pyrf_evsel
 
struct  pyrf_evlist
 

Macros

#define PyVarObject_HEAD_INIT(type, size)   PyObject_HEAD_INIT(type) size,
 
#define member_def(type, member, ptype, help)
 
#define sample_member_def(name, member, ptype, help)
 
#define sample_members
 

Functions

PyMODINIT_FUNC initperf (void)
 

Macro Definition Documentation

#define member_def (   type,
  member,
  ptype,
  help 
)
Value:
{ #member, ptype, \
offsetof(struct pyrf_event, event) + offsetof(struct type, member), \
0, help }

Definition at line 25 of file python.c.

#define PyVarObject_HEAD_INIT (   type,
  size 
)    PyObject_HEAD_INIT(type) size,

Definition at line 13 of file python.c.

#define sample_member_def (   name,
  member,
  ptype,
  help 
)
Value:
{ #name, ptype, \
offsetof(struct pyrf_event, sample) + offsetof(struct perf_sample, member), \
0, help }

Definition at line 30 of file python.c.

#define sample_members
Value:
sample_member_def(sample_ip, ip, T_ULONGLONG, "event type"), \
sample_member_def(sample_pid, pid, T_INT, "event pid"), \
sample_member_def(sample_tid, tid, T_INT, "event tid"), \
sample_member_def(sample_time, time, T_ULONGLONG, "event timestamp"), \
sample_member_def(sample_addr, addr, T_ULONGLONG, "event addr"), \
sample_member_def(sample_id, id, T_ULONGLONG, "event id"), \
sample_member_def(sample_stream_id, stream_id, T_ULONGLONG, "event stream id"), \
sample_member_def(sample_period, period, T_ULONGLONG, "event period"), \
sample_member_def(sample_cpu, cpu, T_UINT, "event cpu"),

Definition at line 41 of file python.c.

Function Documentation

PyMODINIT_FUNC initperf ( void  )

Definition at line 1004 of file python.c.

Variable Documentation

const char* name

Definition at line 929 of file python.c.

int value

Definition at line 930 of file python.c.