Home
last modified time | relevance | path

Searched refs:context_switch (Results 1 – 25 of 34) sorted by relevance

12

/linux/tools/testing/selftests/powerpc/benchmarks/
H A DMakefile2 TEST_GEN_PROGS := gettimeofday context_switch fork mmap_bench futex_bench null_syscall
15 $(OUTPUT)/context_switch: ../utils.c
16 $(OUTPUT)/context_switch: CFLAGS += -maltivec -mvsx -mabi=altivec
17 $(OUTPUT)/context_switch: LDLIBS += -lpthread
H A D.gitignore3 context_switch
/linux/tools/perf/python/
H A Dtwatch.py11 def main(context_switch = 0, thread = -1): argument
18 sample_id_all = 1, context_switch = context_switch,
/linux/tools/perf/util/
H A Dtool.h60 context_switch,
61 context_switch, global() member
H A Dtool.c350 tool->context_switch = perf_event__process_switch;
448 CREATE_DELEGATE_OP(context_switch);
540 tool->tool.context_switch = delegate_context_switch;
H A Dperf_api_probe.c109 evsel->core.attr.context_switch = 1; in perf_probe_text_poke()
H A Ddb-export.c580 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 Dpython.c1281 static const char pyrf_context_switch_event__doc[] = PyDoc_STR("perf context_switch event object."); in pyrf_evlist__init()
1296 if (asprintf(&s, "{ type: context_switch, next_prev_pid: %u, next_prev_tid: %u, switch_out: %u }",
1297 pevent->event.context_switch.next_prev_pid, in pyrf_evlist__all_cpus()
1298 pevent->event.context_switch.next_prev_tid, in pyrf_evlist__all_cpus()
2009 "context_switch", in pyrf_evlist__from_evlist()
2036 context_switch = 0, in pyrf_evlist__from_evlist()
2055 &mmap, &context_switch, &comm, &freq, &inherit_stat, in pyrf_evlist__from_evlist()
2079 attr.context_switch = context_switch; in pyrf__parse_events()
998 context_switch = 0, pyrf_evsel__init() local
H A Dsession.c442 event->context_switch.next_prev_pid = in perf_event__namespaces_swap()
443 bswap_32(event->context_switch.next_prev_pid); in perf_event__namespaces_swap()
444 event->context_switch.next_prev_tid =
445 bswap_32(event->context_switch.next_prev_tid); in perf_event__cgroup_swap()
457 swap_sample_id_all(event, &event->context_switch + 1); in revbyte()
2094 return tool->context_switch(tool, event, sample, machine); in __perf_session__process_pipe_events()
3782 if (evsel->core.attr.context_switch)
H A Devent.c492 event->context_switch.next_prev_pid, in perf_event__fprintf_switch()
493 event->context_switch.next_prev_tid); in perf_event__fprintf_switch()
H A Dperf_event_attr_fprintf.c373 PRINT_ATTRf_bf(context_switch, p_unsigned);
H A Darm-spe.c1431 pid = event->context_switch.next_prev_pid; in arm_spe_process_event()
1432 tid = event->context_switch.next_prev_tid; in arm_spe_process_event()
1436 pr_warning("context_switch event has no tid\n"); in arm_spe_process_auxtrace_event()
H A Dcs-etm.c2953 event->context_switch.next_prev_pid, in cs_etm__create_meta_blk()
2954 event->context_switch.next_prev_tid); in cs_etm__create_meta_blk()
H A Dintel-pt.c3551 pid = event->context_switch.next_prev_pid; in intel_pt_process_itrace_start()
3552 tid = event->context_switch.next_prev_tid; in intel_pt_process_itrace_start()
3561 intel_pt_log("context_switch event has no tid\n"); in intel_pt_process_itrace_start()
4223 if (evsel->core.attr.context_switch) in intel_pt_tsc_start()
4624 pr_err("%s: missing context_switch attribute flag\n", __func__); in intel_pt_process_auxtrace_info()
/linux/tools/testing/selftests/perf_events/
H A Dwatermark_signal.c61 attr.context_switch = 1; in TEST()
/linux/tools/perf/
H A Dbuiltin-inject.c1657 gs->tool.context_switch = guest_session__repipe; in guest_session__fetch()
2114 u32 pid = event->context_switch.next_prev_pid; in keep_feat()
2115 u32 tid = event->context_switch.next_prev_tid; in keep_feat()
2173 inject->tool.context_switch = perf_event__drop; in feat_copy()
2504 inject->tool.context_switch = host__repipe; in cmd_inject()
2516 inject->tool.context_switch = host__context_switch; in cmd_inject()
2836 inject.tool.context_switch = perf_event__repipe;
/linux/kernel/trace/
H A Dtrace_entries.h179 FTRACE_ENTRY(context_switch, ctx_switch_entry,
/linux/tools/perf/Documentation/
H A Dperf-inject.txt103 Currently only mmap, mmap2, comm, task, context_switch, ksymbol,
/linux/tools/include/uapi/linux/
H A Dperf_event.h455 context_switch : 1, /* context switch data */ member
/linux/include/uapi/linux/
H A Dperf_event.h455 context_switch : 1, /* context switch data */ member
/linux/tools/lib/perf/include/perf/
H A Devent.h628 struct perf_record_switch context_switch;
621 struct perf_record_switch context_switch; global() member
/linux/tools/perf/arch/arm64/util/
H A Darm-spe.c386 tracking_evsel->core.attr.context_switch = 1; in arm_spe_setup_tracking_event()
/linux/tools/perf/scripts/python/
H A Dintel-pt-events.py466 def context_switch(ts, cpu, pid, tid, np_pid, np_tid, machine_pid, out, out_preempt, *x): function
/linux/tools/perf/util/scripting-engines/
H A Dtrace-event-python.c1447 call_object(tables->context_switch_handler, t, "context_switch"); in python_export_context_switch()
1554 const char *handler_name = "context_switch"; in python_process_throttle()
1565 np_pid = event->context_switch.next_prev_pid; in python_do_process_switch()
1566 np_tid = event->context_switch.next_prev_tid; in python_do_process_switch()
1901 SET_TABLE_HANDLER(context_switch); in _free_command_line()
/linux/tools/perf/arch/x86/util/
H A Dintel-pt.c809 switch_evsel->core.attr.context_switch = 1; in intel_pt_recording_options()

12