Home
last modified time | relevance | path

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

/linux-6.1.9/tools/perf/util/
Dtrace-event-scripting.c19 struct scripting_context *scripting_context; variable
21 void scripting_context__update(struct scripting_context *c, in scripting_context__update()
99 if (scripting_context == NULL) in register_python_scripting()
100 scripting_context = malloc(sizeof(*scripting_context)); in register_python_scripting()
102 if (scripting_context == NULL || in register_python_scripting()
106 zfree(&scripting_context); in register_python_scripting()
164 if (scripting_context == NULL) in register_perl_scripting()
165 scripting_context = malloc(sizeof(*scripting_context)); in register_perl_scripting()
167 if (scripting_context == NULL || in register_perl_scripting()
171 zfree(&scripting_context); in register_perl_scripting()
Dtrace-event.h109 struct scripting_context { struct
120 void scripting_context__update(struct scripting_context *scripting_context, argument
127 int common_pc(struct scripting_context *context);
128 int common_flags(struct scripting_context *context);
129 int common_lock_depth(struct scripting_context *context);
Dtrace-event-parse.c15 static int get_common_field(struct scripting_context *context, in get_common_field()
38 int common_lock_depth(struct scripting_context *context) in common_lock_depth()
52 int common_flags(struct scripting_context *context) in common_flags()
66 int common_pc(struct scripting_context *context) in common_pc()
/linux-6.1.9/tools/perf/scripts/perl/Perf-Trace-Util/
DContext.c42 struct scripting_context * context = INT2PTR(struct scripting_context *,SvIV(ST(0))); in XS()
65 struct scripting_context * context = INT2PTR(struct scripting_context *,SvIV(ST(0))); in XS()
88 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
/linux-6.1.9/tools/perf/scripts/python/Perf-Trace-Util/
DContext.c46 static struct scripting_context *get_args(PyObject *args, const char *name, PyObject **arg2) in get_args()
57 static struct scripting_context *get_scripting_context(PyObject *args) in get_scripting_context()
64 struct scripting_context *c = get_scripting_context(args); in perf_trace_context_common_pc()
75 struct scripting_context *c = get_scripting_context(args); in perf_trace_context_common_flags()
86 struct scripting_context *c = get_scripting_context(args); in perf_trace_context_common_lock_depth()
96 struct scripting_context *c = get_scripting_context(args); in perf_sample_insn()
113 struct scripting_context *c; in perf_set_itrace_options()
139 struct scripting_context *c = get_scripting_context(args); in perf_sample_src()
/linux-6.1.9/tools/perf/util/scripting-engines/
Dtrace-event-perl.c71 extern struct scripting_context *scripting_context;
379 XPUSHs(sv_2mortal(newSViv(PTR2IV(scripting_context)))); in perl_process_tracepoint()
417 XPUSHs(sv_2mortal(newSViv(PTR2IV(scripting_context)))); in perl_process_tracepoint()
461 scripting_context__update(scripting_context, event, sample, evsel, al, addr_al); in perl_process_event()
484 scripting_context->session = session; in perl_start_script()
Dtrace-event-python.c96 extern struct scripting_context *scripting_context;
957 context = _PyCapsule_New(scripting_context, NULL, NULL); in python_process_tracepoint()
990 val = tep_read_number(scripting_context->pevent, in python_process_tracepoint()
1463 scripting_context__update(scripting_context, event, sample, evsel, al, addr_al); in python_process_event()
1711 perf_script_context = _PyCapsule_New(scripting_context, NULL, NULL); in perf_script_context_init()
1889 scripting_context->session = session; in python_start_script()