Home
last modified time | relevance | path

Searched refs:rctx (Results 1 – 8 of 8) sorted by relevance

/kernel/events/
Dcallchain.c152 struct perf_callchain_entry *get_callchain_entry(int *rctx) in get_callchain_entry() argument
157 *rctx = get_recursion_context(this_cpu_ptr(callchain_recursion)); in get_callchain_entry()
158 if (*rctx == -1) in get_callchain_entry()
163 put_recursion_context(this_cpu_ptr(callchain_recursion), *rctx); in get_callchain_entry()
170 (*rctx * perf_callchain_entry__sizeof())); in get_callchain_entry()
174 put_callchain_entry(int rctx) in put_callchain_entry() argument
176 put_recursion_context(this_cpu_ptr(callchain_recursion), rctx); in put_callchain_entry()
185 int rctx; in get_perf_callchain() local
187 entry = get_callchain_entry(&rctx); in get_perf_callchain()
223 put_callchain_entry(rctx); in get_perf_callchain()
Dinternal.h213 unsigned char rctx = interrupt_context_level(); in DEFINE_OUTPUT_COPY() local
215 if (recursion[rctx]) in DEFINE_OUTPUT_COPY()
218 recursion[rctx]++; in DEFINE_OUTPUT_COPY()
221 return rctx; in DEFINE_OUTPUT_COPY()
224 static inline void put_recursion_context(int *recursion, int rctx) in put_recursion_context() argument
227 recursion[rctx]--; in put_recursion_context()
Dcore.c6600 int rctx; in perf_pending_irq() local
6606 rctx = perf_swevent_get_recursion_context(); in perf_pending_irq()
6619 if (rctx >= 0) in perf_pending_irq()
6620 perf_swevent_put_recursion_context(rctx); in perf_pending_irq()
6626 int rctx; in perf_pending_task() local
6633 rctx = perf_swevent_get_recursion_context(); in perf_pending_task()
6641 if (rctx >= 0) in perf_pending_task()
6642 perf_swevent_put_recursion_context(rctx); in perf_pending_task()
9642 void perf_swevent_put_recursion_context(int rctx) in perf_swevent_put_recursion_context() argument
9646 put_recursion_context(swhash->recursion, rctx); in perf_swevent_put_recursion_context()
[all …]
/kernel/trace/
Dtrace_event_perf.c399 int rctx; in perf_trace_buf_alloc() local
408 *rctxp = rctx = perf_swevent_get_recursion_context(); in perf_trace_buf_alloc()
409 if (rctx < 0) in perf_trace_buf_alloc()
413 *regs = this_cpu_ptr(&__perf_regs[rctx]); in perf_trace_buf_alloc()
414 raw_data = this_cpu_ptr(perf_trace_buf[rctx]); in perf_trace_buf_alloc()
440 int rctx; in perf_ftrace_function_call() local
471 entry = perf_trace_buf_alloc(ENTRY_SIZE, NULL, &rctx); in perf_ftrace_function_call()
477 perf_trace_buf_submit(entry, ENTRY_SIZE, rctx, TRACE_FN, in perf_ftrace_function_call()
Dtrace_syscalls.c579 int rctx; in perf_syscall_enter() local
602 rec = perf_trace_buf_alloc(size, NULL, &rctx); in perf_syscall_enter()
613 perf_swevent_put_recursion_context(rctx); in perf_syscall_enter()
617 perf_trace_buf_submit(rec, size, rctx, in perf_syscall_enter()
678 int rctx; in perf_syscall_exit() local
700 rec = perf_trace_buf_alloc(size, NULL, &rctx); in perf_syscall_exit()
710 perf_swevent_put_recursion_context(rctx); in perf_syscall_exit()
714 perf_trace_buf_submit(rec, size, rctx, sys_data->exit_event->event.type, in perf_syscall_exit()
Dtrace_kprobe.c1577 int rctx; in kprobe_perf_func() local
1605 entry = perf_trace_buf_alloc(size, NULL, &rctx); in kprobe_perf_func()
1612 perf_trace_buf_submit(entry, size, rctx, call->event.type, 1, regs, in kprobe_perf_func()
1627 int rctx; in kretprobe_perf_func() local
1641 entry = perf_trace_buf_alloc(size, NULL, &rctx); in kretprobe_perf_func()
1648 perf_trace_buf_submit(entry, size, rctx, call->event.type, 1, regs, in kretprobe_perf_func()
Dtrace_uprobe.c1349 int rctx; in __uprobe_perf_func() local
1373 entry = perf_trace_buf_alloc(size, NULL, &rctx); in __uprobe_perf_func()
1394 perf_trace_buf_submit(entry, size, rctx, call->event.type, 1, regs, in __uprobe_perf_func()
/kernel/bpf/
Dstackmap.c181 int rctx; in get_callchain_entry_for_task() local
183 entry = get_callchain_entry(&rctx); in get_callchain_entry_for_task()
205 put_callchain_entry(rctx); in get_callchain_entry_for_task()