/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/benchmarks/ |
H A D | Makefile | 2 TEST_GEN_PROGS := gettimeofday context_switch fork mmap_bench futex_bench null_syscall 14 $(OUTPUT)/context_switch: ../utils.c 15 $(OUTPUT)/context_switch: CFLAGS += -maltivec -mvsx -mabi=altivec 16 $(OUTPUT)/context_switch: LDLIBS += -lpthread
|
/kernel/linux/linux-6.6/tools/testing/selftests/powerpc/benchmarks/ |
H A D | Makefile | 2 TEST_GEN_PROGS := gettimeofday context_switch fork mmap_bench futex_bench null_syscall 14 $(OUTPUT)/context_switch: ../utils.c 15 $(OUTPUT)/context_switch: CFLAGS += -maltivec -mvsx -mabi=altivec 16 $(OUTPUT)/context_switch: LDLIBS += -lpthread
|
/kernel/linux/linux-5.10/tools/perf/python/ |
H A D | twatch.py | 11 def main(context_switch = 0, thread = -1): 18 sample_id_all = 1, context_switch = context_switch, 50 cpu: 3, pid: 31463, tid: 31593 { type: context_switch, next_prev_pid: 31463, next_prev_tid: 31593, switch_out: 1 } 51 cpu: 1, pid: 31463, tid: 31489 { type: context_switch, next_prev_pid: 31463, next_prev_tid: 31489, switch_out: 1 } 52 cpu: 2, pid: 31463, tid: 31496 { type: context_switch, next_prev_pid: 31463, next_prev_tid: 31496, switch_out: 1 } 53 cpu: 3, pid: 31463, tid: 31491 { type: context_switch, next_prev_pid: 31463, next_prev_tid: 31491, switch_out: 0 } 60 # main(context_switch = 1, thread = 31463)
|
/kernel/linux/linux-6.6/tools/perf/python/ |
H A D | twatch.py | 11 def main(context_switch = 0, thread = -1): 18 sample_id_all = 1, context_switch = context_switch, 50 cpu: 3, pid: 31463, tid: 31593 { type: context_switch, next_prev_pid: 31463, next_prev_tid: 31593, switch_out: 1 } 51 cpu: 1, pid: 31463, tid: 31489 { type: context_switch, next_prev_pid: 31463, next_prev_tid: 31489, switch_out: 1 } 52 cpu: 2, pid: 31463, tid: 31496 { type: context_switch, next_prev_pid: 31463, next_prev_tid: 31496, switch_out: 1 } 53 cpu: 3, pid: 31463, tid: 31491 { type: context_switch, next_prev_pid: 31463, next_prev_tid: 31491, switch_out: 0 } 60 # main(context_switch = 1, thread = 31463)
|
/kernel/linux/linux-5.10/tools/perf/util/ |
H A D | tool.h | 56 context_switch, member
|
H A D | python.c | 460 static char pyrf_context_switch_event__doc[] = PyDoc_STR("perf context_switch event object."); 475 if (asprintf(&s, "{ type: context_switch, next_prev_pid: %u, next_prev_tid: %u, switch_out: %u }", in pyrf_context_switch_event__repr() 476 pevent->event.context_switch.next_prev_pid, in pyrf_context_switch_event__repr() 477 pevent->event.context_switch.next_prev_tid, in pyrf_context_switch_event__repr() 736 "context_switch", in pyrf_evsel__init() 762 context_switch = 0, in pyrf_evsel__init() local 781 &mmap, &context_switch, &comm, &freq, &inherit_stat, in pyrf_evsel__init() 805 attr.context_switch = context_switch; in pyrf_evsel__init()
|
H A D | perf_api_probe.c | 93 evsel->core.attr.context_switch = 1; in perf_probe_context_switch()
|
H A D | db-export.c | 576 pid_t pid = event->context_switch.next_prev_pid; in db_export__switch() 577 pid_t tid = event->context_switch.next_prev_tid; in db_export__switch()
|
H A D | session.c | 487 if (tool->context_switch == NULL) in perf_tool__fill_defaults() 488 tool->context_switch = perf_event__process_switch; in perf_tool__fill_defaults() 655 event->context_switch.next_prev_pid = in perf_event__switch_swap() 656 bswap_32(event->context_switch.next_prev_pid); in perf_event__switch_swap() 657 event->context_switch.next_prev_tid = in perf_event__switch_swap() 658 bswap_32(event->context_switch.next_prev_tid); in perf_event__switch_swap() 662 swap_sample_id_all(event, &event->context_switch + 1); in perf_event__switch_swap() 1520 return tool->context_switch(tool, event, sample, machine); in machines__deliver_event()
|
H A D | perf_event_attr_fprintf.c | 130 PRINT_ATTRf(context_switch, p_unsigned); in perf_event_attr__fprintf()
|
H A D | event.c | 403 event->context_switch.next_prev_pid, in perf_event__fprintf_switch() 404 event->context_switch.next_prev_tid); in perf_event__fprintf_switch()
|
/kernel/linux/linux-6.6/tools/perf/util/ |
H A D | tool.h | 58 context_switch, member
|
H A D | python.c | 563 static char pyrf_context_switch_event__doc[] = PyDoc_STR("perf context_switch event object."); 578 if (asprintf(&s, "{ type: context_switch, next_prev_pid: %u, next_prev_tid: %u, switch_out: %u }", in pyrf_context_switch_event__repr() 579 pevent->event.context_switch.next_prev_pid, in pyrf_context_switch_event__repr() 580 pevent->event.context_switch.next_prev_tid, in pyrf_context_switch_event__repr() 839 "context_switch", in pyrf_evsel__init() 865 context_switch = 0, in pyrf_evsel__init() local 884 &mmap, &context_switch, &comm, &freq, &inherit_stat, in pyrf_evsel__init() 908 attr.context_switch = context_switch; in pyrf_evsel__init()
|
H A D | perf_api_probe.c | 94 evsel->core.attr.context_switch = 1; in perf_probe_context_switch()
|
H A D | db-export.c | 580 pid_t pid = event->context_switch.next_prev_pid; in db_export__switch() 581 pid_t tid = event->context_switch.next_prev_tid; in db_export__switch()
|
H A D | session.c | 504 if (tool->context_switch == NULL) in perf_tool__fill_defaults() 505 tool->context_switch = perf_event__process_switch; in perf_tool__fill_defaults() 679 event->context_switch.next_prev_pid = in perf_event__switch_swap() 680 bswap_32(event->context_switch.next_prev_pid); in perf_event__switch_swap() 681 event->context_switch.next_prev_tid = in perf_event__switch_swap() 682 bswap_32(event->context_switch.next_prev_tid); in perf_event__switch_swap() 686 swap_sample_id_all(event, &event->context_switch + 1); in perf_event__switch_swap() 1604 return tool->context_switch(tool, event, sample, machine); in machines__deliver_event()
|
/kernel/linux/linux-5.10/tools/perf/tests/ |
H A D | attr.c | 130 WRITE_ASS(context_switch, "d"); in store_event()
|
/kernel/linux/linux-6.6/tools/perf/tests/ |
H A D | attr.c | 131 WRITE_ASS(context_switch, "d"); in store_event()
|
/kernel/linux/linux-5.10/kernel/trace/ |
H A D | trace_entries.h | 123 FTRACE_ENTRY(context_switch, ctx_switch_entry,
|
/kernel/linux/linux-6.6/tools/perf/ |
H A D | builtin-inject.c | 1236 gs->tool.context_switch = guest_session__repipe; in guest_session__start() 1672 u32 pid = event->context_switch.next_prev_pid; in host__context_switch() 1673 u32 tid = event->context_switch.next_prev_tid; in host__context_switch() 1732 inject->tool.context_switch = perf_event__drop; in strip_init() 2058 inject->tool.context_switch = host__repipe; in __cmd_inject() 2070 inject->tool.context_switch = host__context_switch; in __cmd_inject() 2179 .context_switch = perf_event__repipe, in cmd_inject()
|
/kernel/linux/linux-5.10/tools/lib/perf/include/perf/ |
H A D | event.h | 407 struct perf_record_switch context_switch; member
|
/kernel/linux/linux-6.6/tools/lib/perf/include/perf/ |
H A D | event.h | 506 struct perf_record_switch context_switch; member
|
/kernel/linux/linux-6.6/kernel/trace/ |
H A D | trace_entries.h | 149 FTRACE_ENTRY(context_switch, ctx_switch_entry,
|
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/ |
H A D | perf_event.h | 224 context_switch : 1, member
|
/kernel/linux/linux-5.10/tools/perf/ |
H A D | builtin-inject.c | 694 inject->tool.context_switch = perf_event__drop; in strip_init() 818 .context_switch = perf_event__repipe, in cmd_inject()
|