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.c31 struct scripting_context *scripting_context; variable
98 if (scripting_context == NULL) in register_python_scripting()
99 scripting_context = malloc(sizeof(*scripting_context)); in register_python_scripting()
163 if (scripting_context == NULL) in register_perl_scripting()
164 scripting_context = malloc(sizeof(*scripting_context)); in register_perl_scripting()
Dtrace-event.h94 struct scripting_context { struct
99 int common_pc(struct scripting_context *context); argument
100 int common_flags(struct scripting_context *context);
101 int common_lock_depth(struct scripting_context *context);
Dtrace-event-parse.c31 static int get_common_field(struct scripting_context *context, in get_common_field()
53 int common_lock_depth(struct scripting_context *context) in common_lock_depth()
67 int common_flags(struct scripting_context *context) in common_flags()
81 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.c66 extern struct scripting_context *scripting_context;
366 scripting_context->event_data = data; in perl_process_tracepoint()
367 scripting_context->pevent = evsel->tp_format->pevent; in perl_process_tracepoint()
374 XPUSHs(sv_2mortal(newSViv(PTR2IV(scripting_context)))); in perl_process_tracepoint()
410 XPUSHs(sv_2mortal(newSViv(PTR2IV(scripting_context)))); in perl_process_tracepoint()
Dtrace-event-python.c60 extern struct scripting_context *scripting_context;
433 scripting_context->event_data = data; in python_process_tracepoint()
434 scripting_context->pevent = evsel->tp_format->pevent; in python_process_tracepoint()
436 context = PyCObject_FromVoidPtr(scripting_context, NULL); in python_process_tracepoint()
467 val = pevent_read_number(scripting_context->pevent, in python_process_tracepoint()