Linux Perf
Context.c File Reference
#include <Python.h>
#include "../../../perf.h"
#include "../../../util/trace-event.h"
Include dependency graph for Context.c:

Go to the source code of this file.

Macros

#define _PyCapsule_GetPointer(arg1, arg2)   PyCObject_AsVoidPtr(arg1)
 

Functions

PyMODINIT_FUNC initperf_trace_context (void)
 
static PyObject * perf_trace_context_common_pc (PyObject *obj, PyObject *args)
 
static PyObject * perf_trace_context_common_flags (PyObject *obj, PyObject *args)
 
static PyObject * perf_trace_context_common_lock_depth (PyObject *obj, PyObject *args)
 

Variables

static PyMethodDef ContextMethods []
 

Macro Definition Documentation

◆ _PyCapsule_GetPointer

#define _PyCapsule_GetPointer (   arg1,
  arg2 
)    PyCObject_AsVoidPtr(arg1)

Definition at line 27 of file Context.c.

Function Documentation

◆ initperf_trace_context()

PyMODINIT_FUNC initperf_trace_context ( void  )

Definition at line 96 of file Context.c.

◆ perf_trace_context_common_flags()

static PyObject* perf_trace_context_common_flags ( PyObject *  obj,
PyObject *  args 
)
static

Definition at line 53 of file Context.c.

Here is the call graph for this function:

◆ perf_trace_context_common_lock_depth()

static PyObject* perf_trace_context_common_lock_depth ( PyObject *  obj,
PyObject *  args 
)
static

Definition at line 69 of file Context.c.

Here is the call graph for this function:

◆ perf_trace_context_common_pc()

static PyObject* perf_trace_context_common_pc ( PyObject *  obj,
PyObject *  args 
)
static

Definition at line 38 of file Context.c.

Here is the call graph for this function:

Variable Documentation

◆ ContextMethods

PyMethodDef ContextMethods[]
static
Initial value:
= {
{ "common_pc", perf_trace_context_common_pc, METH_VARARGS,
"Get the common preempt count event field value."},
{ "common_flags", perf_trace_context_common_flags, METH_VARARGS,
"Get the common flags event field value."},
{ "common_lock_depth", perf_trace_context_common_lock_depth,
METH_VARARGS, "Get the common lock depth event field value."},
{ NULL, NULL, 0, NULL}
}
static PyObject * perf_trace_context_common_flags(PyObject *obj, PyObject *args)
Definition: Context.c:53
static PyObject * perf_trace_context_common_pc(PyObject *obj, PyObject *args)
Definition: Context.c:38
static PyObject * perf_trace_context_common_lock_depth(PyObject *obj, PyObject *args)
Definition: Context.c:69

Definition at line 85 of file Context.c.