Home
last modified time | relevance | path

Searched refs:scripting_context (Results 1 – 10 of 10) sorted by relevance

/tools/perf/scripts/python/Perf-Trace-Util/
DContext.c30 static struct scripting_context *scripting_context; in perf_trace_context_common_pc() local
37 scripting_context = PyCObject_AsVoidPtr(context); in perf_trace_context_common_pc()
38 retval = common_pc(scripting_context); in perf_trace_context_common_pc()
46 static struct scripting_context *scripting_context; in perf_trace_context_common_flags() local
53 scripting_context = PyCObject_AsVoidPtr(context); in perf_trace_context_common_flags()
54 retval = common_flags(scripting_context); in perf_trace_context_common_flags()
62 static struct scripting_context *scripting_context; in perf_trace_context_common_lock_depth() local
69 scripting_context = PyCObject_AsVoidPtr(context); in perf_trace_context_common_lock_depth()
70 retval = common_lock_depth(scripting_context); in perf_trace_context_common_lock_depth()
/tools/perf/util/
Dtrace-event-scripting.c32 struct scripting_context *scripting_context; variable
90 if (scripting_context == NULL) in register_python_scripting()
91 scripting_context = malloc(sizeof(*scripting_context)); in register_python_scripting()
93 if (scripting_context == NULL || in register_python_scripting()
97 zfree(&scripting_context); in register_python_scripting()
153 if (scripting_context == NULL) in register_perl_scripting()
154 scripting_context = malloc(sizeof(*scripting_context)); in register_perl_scripting()
156 if (scripting_context == NULL || in register_perl_scripting()
160 zfree(&scripting_context); in register_perl_scripting()
Dtrace-event.h96 struct scripting_context { struct
101 int common_pc(struct scripting_context *context); argument
102 int common_flags(struct scripting_context *context);
103 int common_lock_depth(struct scripting_context *context);
Dtrace-event-parse.c32 static int get_common_field(struct scripting_context *context, in get_common_field()
54 int common_lock_depth(struct scripting_context *context) in common_lock_depth()
68 int common_flags(struct scripting_context *context) in common_flags()
82 int common_pc(struct scripting_context *context) in common_pc()
/tools/perf/scripts/perl/Perf-Trace-Util/
DContext.c58 struct scripting_context * context = INT2PTR(struct scripting_context *,SvIV(ST(0))); in XS()
81 struct scripting_context * context = INT2PTR(struct scripting_context *,SvIV(ST(0))); in XS()
104 struct scripting_context * context = INT2PTR(struct scripting_context *,SvIV(ST(0))); in XS()
DContext.xs33 struct scripting_context * context
37 struct scripting_context * context
41 struct scripting_context * context
Dtypemap1 struct scripting_context * T_PTR
DREADME16 scripting_context is a pointer to the perf data in the perf executable
/tools/perf/util/scripting-engines/
Dtrace-event-perl.c69 extern struct scripting_context *scripting_context;
372 scripting_context->event_data = data; in perl_process_tracepoint()
373 scripting_context->pevent = evsel->tp_format->pevent; in perl_process_tracepoint()
380 XPUSHs(sv_2mortal(newSViv(PTR2IV(scripting_context)))); in perl_process_tracepoint()
416 XPUSHs(sv_2mortal(newSViv(PTR2IV(scripting_context)))); in perl_process_tracepoint()
Dtrace-event-python.c63 extern struct scripting_context *scripting_context;
573 scripting_context->event_data = data; in python_process_tracepoint()
574 scripting_context->pevent = evsel->tp_format->pevent; in python_process_tracepoint()
576 context = PyCObject_FromVoidPtr(scripting_context, NULL); in python_process_tracepoint()
609 val = pevent_read_number(scripting_context->pevent, in python_process_tracepoint()