Searched refs:scripting_context (Results 1 – 10 of 10) sorted by relevance
/Linux-v5.10/tools/perf/scripts/python/Perf-Trace-Util/ |
D | Context.c | 25 static struct scripting_context *scripting_context; in perf_trace_context_common_pc() local 32 scripting_context = _PyCapsule_GetPointer(context, NULL); in perf_trace_context_common_pc() 33 retval = common_pc(scripting_context); in perf_trace_context_common_pc() 41 static struct scripting_context *scripting_context; in perf_trace_context_common_flags() local 48 scripting_context = _PyCapsule_GetPointer(context, NULL); in perf_trace_context_common_flags() 49 retval = common_flags(scripting_context); in perf_trace_context_common_flags() 57 static struct scripting_context *scripting_context; in perf_trace_context_common_lock_depth() local 64 scripting_context = _PyCapsule_GetPointer(context, NULL); in perf_trace_context_common_lock_depth() 65 retval = common_lock_depth(scripting_context); in perf_trace_context_common_lock_depth()
|
/Linux-v5.10/tools/perf/util/ |
D | trace-event-scripting.c | 17 struct scripting_context *scripting_context; variable 75 if (scripting_context == NULL) in register_python_scripting() 76 scripting_context = malloc(sizeof(*scripting_context)); in register_python_scripting() 78 if (scripting_context == NULL || in register_python_scripting() 82 zfree(&scripting_context); in register_python_scripting() 138 if (scripting_context == NULL) in register_perl_scripting() 139 scripting_context = malloc(sizeof(*scripting_context)); in register_perl_scripting() 141 if (scripting_context == NULL || in register_perl_scripting() 145 zfree(&scripting_context); in register_perl_scripting()
|
D | trace-event.h | 97 struct scripting_context { struct 102 int common_pc(struct scripting_context *context); argument 103 int common_flags(struct scripting_context *context); 104 int common_lock_depth(struct scripting_context *context);
|
D | trace-event-parse.c | 15 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-v5.10/tools/perf/scripts/perl/Perf-Trace-Util/ |
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()
|
D | Context.xs | 33 struct scripting_context * context 37 struct scripting_context * context 41 struct scripting_context * context
|
D | typemap | 1 struct scripting_context * T_PTR
|
D | README | 16 scripting_context is a pointer to the perf data in the perf executable
|
/Linux-v5.10/tools/perf/util/scripting-engines/ |
D | trace-event-perl.c | 71 extern struct scripting_context *scripting_context; 374 scripting_context->event_data = data; in perl_process_tracepoint() 375 scripting_context->pevent = evsel->tp_format->tep; in perl_process_tracepoint() 382 XPUSHs(sv_2mortal(newSViv(PTR2IV(scripting_context)))); in perl_process_tracepoint() 418 XPUSHs(sv_2mortal(newSViv(PTR2IV(scripting_context)))); in perl_process_tracepoint()
|
D | trace-event-python.c | 95 extern struct scripting_context *scripting_context; 846 scripting_context->event_data = data; in python_process_tracepoint() 847 scripting_context->pevent = evsel->tp_format->tep; in python_process_tracepoint() 849 context = _PyCapsule_New(scripting_context, NULL, NULL); in python_process_tracepoint() 882 val = tep_read_number(scripting_context->pevent, in python_process_tracepoint()
|