Searched refs:scripting_context (Results 1 – 10 of 10) sorted by relevance
/openbmc/linux/tools/perf/util/ |
H A D | trace-event-scripting.c | 22 struct scripting_context *scripting_context; variable 24 void scripting_context__update(struct scripting_context *c, in scripting_context__update() 103 if (scripting_context == NULL) in register_python_scripting() 104 scripting_context = malloc(sizeof(*scripting_context)); in register_python_scripting() 106 if (scripting_context == NULL || in register_python_scripting() 110 zfree(&scripting_context); in register_python_scripting() 169 if (scripting_context == NULL) in register_perl_scripting() 170 scripting_context = malloc(sizeof(*scripting_context)); in register_perl_scripting() 172 if (scripting_context == NULL || in register_perl_scripting() 176 zfree(&scripting_context); in register_perl_scripting()
|
H A D | trace-event.h | 124 struct scripting_context { struct 135 void scripting_context__update(struct scripting_context *scripting_context, argument 142 int common_pc(struct scripting_context *context); 143 int common_flags(struct scripting_context *context); 144 int common_lock_depth(struct scripting_context *context);
|
H A D | trace-event-parse.c | 17 static int get_common_field(struct scripting_context *context, in get_common_field() 40 int common_lock_depth(struct scripting_context *context) in common_lock_depth() 54 int common_flags(struct scripting_context *context) in common_flags() 68 int common_pc(struct scripting_context *context) in common_pc()
|
/openbmc/linux/tools/perf/scripts/perl/Perf-Trace-Util/ |
H A D | Context.c | 42 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()
|
H A D | Context.xs | 33 struct scripting_context * context 37 struct scripting_context * context 41 struct scripting_context * context
|
H A D | typemap | 1 struct scripting_context * T_PTR
|
H A D | README | 16 scripting_context is a pointer to the perf data in the perf executable
|
/openbmc/linux/tools/perf/scripts/python/Perf-Trace-Util/ |
H A D | Context.c | 46 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() 65 struct scripting_context *c = get_scripting_context(args); in perf_trace_context_common_pc() 76 struct scripting_context *c = get_scripting_context(args); in perf_trace_context_common_flags() 87 struct scripting_context *c = get_scripting_context(args); in perf_trace_context_common_lock_depth() 98 struct scripting_context *c = get_scripting_context(args); in perf_sample_insn() 116 struct scripting_context *c; in perf_set_itrace_options() 142 struct scripting_context *c = get_scripting_context(args); in perf_sample_src()
|
/openbmc/linux/tools/perf/util/scripting-engines/ |
H A D | trace-event-perl.c | 70 extern struct scripting_context *scripting_context; 385 XPUSHs(sv_2mortal(newSViv(PTR2IV(scripting_context)))); in perl_process_tracepoint() 423 XPUSHs(sv_2mortal(newSViv(PTR2IV(scripting_context)))); in perl_process_tracepoint() 467 scripting_context__update(scripting_context, event, sample, evsel, al, addr_al); in perl_process_event() 490 scripting_context->session = session; in perl_start_script()
|
H A D | trace-event-python.c | 104 extern struct scripting_context *scripting_context; 982 context = _PyCapsule_New(scripting_context, NULL, NULL); in python_process_tracepoint() 1015 val = tep_read_number(scripting_context->pevent, in python_process_tracepoint() 1498 scripting_context__update(scripting_context, event, sample, evsel, al, addr_al); in python_process_event() 1740 perf_script_context = _PyCapsule_New(scripting_context, NULL, NULL); in perf_script_context_init() 1918 scripting_context->session = session; in python_start_script()
|