Home
last modified time | relevance | path

Searched +full:sample +full:- +full:time (Results 1 – 25 of 674) sorted by relevance

12345678910>>...27

/linux/tools/perf/
H A Dbuiltin-timechart.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * builtin-timechart.c - make an svg timechart of system activity
29 #include <subcmd/parse-options.h>
30 #include "util/parse-events.h"
41 #include <event-parse.h>
48 #define PWR_EVENT_EXIT -
189 u64 time; global() member
286 struct cpu_sample *sample; pid_put_sample() local
493 cat_backtrace(union perf_event * event,struct perf_sample * sample,struct machine * machine) cat_backtrace() argument
576 process_sample_event(const struct perf_tool * tool,union perf_event * event,struct perf_sample * sample,struct evsel * evsel,struct machine * machine) process_sample_event() argument
601 process_sample_cpu_idle(struct timechart * tchart __maybe_unused,struct evsel * evsel,struct perf_sample * sample,const char * backtrace __maybe_unused) process_sample_cpu_idle() argument
617 process_sample_cpu_frequency(struct timechart * tchart,struct evsel * evsel,struct perf_sample * sample,const char * backtrace __maybe_unused) process_sample_cpu_frequency() argument
630 process_sample_sched_wakeup(struct timechart * tchart,struct evsel * evsel,struct perf_sample * sample,const char * backtrace) process_sample_sched_wakeup() argument
644 process_sample_sched_switch(struct timechart * tchart,struct evsel * evsel,struct perf_sample * sample,const char * backtrace) process_sample_sched_switch() argument
660 process_sample_power_start(struct timechart * tchart __maybe_unused,struct evsel * evsel,struct perf_sample * sample,const char * backtrace __maybe_unused) process_sample_power_start() argument
673 process_sample_power_end(struct timechart * tchart,struct evsel * evsel __maybe_unused,struct perf_sample * sample,const char * backtrace __maybe_unused) process_sample_power_end() argument
683 process_sample_power_frequency(struct timechart * tchart,struct evsel * evsel,struct perf_sample * sample,const char * backtrace __maybe_unused) process_sample_power_frequency() argument
735 struct io_sample *sample; pid_begin_io_sample() local
777 struct io_sample *sample, *prev; pid_end_io_sample() local
853 process_enter_read(struct timechart * tchart,struct evsel * evsel,struct perf_sample * sample) process_enter_read() argument
863 process_exit_read(struct timechart * tchart,struct evsel * evsel,struct perf_sample * sample) process_exit_read() argument
873 process_enter_write(struct timechart * tchart,struct evsel * evsel,struct perf_sample * sample) process_enter_write() argument
883 process_exit_write(struct timechart * tchart,struct evsel * evsel,struct perf_sample * sample) process_exit_write() argument
893 process_enter_sync(struct timechart * tchart,struct evsel * evsel,struct perf_sample * sample) process_enter_sync() argument
903 process_exit_sync(struct timechart * tchart,struct evsel * evsel,struct perf_sample * sample) process_exit_sync() argument
913 process_enter_tx(struct timechart * tchart,struct evsel * evsel,struct perf_sample * sample) process_enter_tx() argument
923 process_exit_tx(struct timechart * tchart,struct evsel * evsel,struct perf_sample * sample) process_exit_tx() argument
933 process_enter_rx(struct timechart * tchart,struct evsel * evsel,struct perf_sample * sample) process_enter_rx() argument
943 process_exit_rx(struct timechart * tchart,struct evsel * evsel,struct perf_sample * sample) process_exit_rx() argument
953 process_enter_poll(struct timechart * tchart,struct evsel * evsel,struct perf_sample * sample) process_enter_poll() argument
963 process_exit_poll(struct timechart * tchart,struct evsel * evsel,struct perf_sample * sample) process_exit_poll() argument
1116 struct cpu_sample *sample; draw_cpu_usage() local
1147 struct io_sample *sample; draw_io_bars() local
1258 struct cpu_sample *sample; draw_process_bars() local
[all...]
H A Dbuiltin-kwork.c1 // SPDX-License-Identifier: GPL-2.0
3 * builtin-kwork.c
27 #include <subcmd/parse-options.h>
28 #include <event-parse.h>
68 if (l->cpu > r->cpu) in id_cmp()
70 if (l->cpu < r->cp in id_cmp()
241 atom_new(struct perf_kwork * kwork,struct perf_sample * sample) atom_new() argument
396 profile_update_timespan(struct perf_kwork * kwork,struct perf_sample * sample) profile_update_timespan() argument
421 profile_event_match(struct perf_kwork * kwork,struct kwork_work * work,struct perf_sample * sample) profile_event_match() argument
424 u64 time = sample->time; profile_event_match() local
452 work_push_atom(struct perf_kwork * kwork,struct kwork_class * class,enum kwork_trace_type src_type,enum kwork_trace_type dst_type,struct evsel * evsel,struct perf_sample * sample,struct machine * machine,struct kwork_work ** ret_work,bool overwrite) work_push_atom() argument
511 work_pop_atom(struct perf_kwork * kwork,struct kwork_class * class,enum kwork_trace_type src_type,enum kwork_trace_type dst_type,struct evsel * evsel,struct perf_sample * sample,struct machine * machine,struct kwork_work ** ret_work) work_pop_atom() argument
581 report_update_exit_event(struct kwork_work * work,struct kwork_atom * atom,struct perf_sample * sample) report_update_exit_event() argument
603 report_entry_event(struct perf_kwork * kwork,struct kwork_class * class,struct evsel * evsel,struct perf_sample * sample,struct machine * machine) report_entry_event() argument
614 report_exit_event(struct perf_kwork * kwork,struct kwork_class * class,struct evsel * evsel,struct perf_sample * sample,struct machine * machine) report_exit_event() argument
636 latency_update_entry_event(struct kwork_work * work,struct kwork_atom * atom,struct perf_sample * sample) latency_update_entry_event() argument
658 latency_raise_event(struct perf_kwork * kwork,struct kwork_class * class,struct evsel * evsel,struct perf_sample * sample,struct machine * machine) latency_raise_event() argument
669 latency_entry_event(struct perf_kwork * kwork,struct kwork_class * class,struct evsel * evsel,struct perf_sample * sample,struct machine * machine) latency_entry_event() argument
690 timehist_save_callchain(struct perf_kwork * kwork,struct perf_sample * sample,struct evsel * evsel,struct machine * machine) timehist_save_callchain() argument
741 timehist_print_event(struct perf_kwork * kwork,struct kwork_work * work,struct kwork_atom * atom,struct perf_sample * sample,struct addr_location * al) timehist_print_event() argument
817 timehist_raise_event(struct perf_kwork * kwork,struct kwork_class * class,struct evsel * evsel,struct perf_sample * sample,struct machine * machine) timehist_raise_event() argument
828 timehist_entry_event(struct perf_kwork * kwork,struct kwork_class * class,struct evsel * evsel,struct perf_sample * sample,struct machine * machine) timehist_entry_event() argument
849 timehist_exit_event(struct perf_kwork * kwork,struct kwork_class * class,struct evsel * evsel,struct perf_sample * sample,struct machine * machine) timehist_exit_event() argument
885 top_update_runtime(struct kwork_work * work,struct kwork_atom * atom,struct perf_sample * sample) top_update_runtime() argument
900 top_entry_event(struct perf_kwork * kwork,struct kwork_class * class,struct evsel * evsel,struct perf_sample * sample,struct machine * machine) top_entry_event() argument
911 top_exit_event(struct perf_kwork * kwork,struct kwork_class * class,struct evsel * evsel,struct perf_sample * sample,struct machine * machine) top_exit_event() argument
941 top_sched_switch_event(struct perf_kwork * kwork,struct kwork_class * class,struct evsel * evsel,struct perf_sample * sample,struct machine * machine) top_sched_switch_event() argument
964 process_irq_handler_entry_event(const struct perf_tool * tool,struct evsel * evsel,struct perf_sample * sample,struct machine * machine) process_irq_handler_entry_event() argument
977 process_irq_handler_exit_event(const struct perf_tool * tool,struct evsel * evsel,struct perf_sample * sample,struct machine * machine) process_irq_handler_exit_event() argument
1010 irq_work_init(struct perf_kwork * kwork,struct kwork_class * class,struct kwork_work * work,enum kwork_trace_type src_type __maybe_unused,struct evsel * evsel,struct perf_sample * sample,struct machine * machine __maybe_unused) irq_work_init() argument
1043 process_softirq_raise_event(const struct perf_tool * tool,struct evsel * evsel,struct perf_sample * sample,struct machine * machine) process_softirq_raise_event() argument
1057 process_softirq_entry_event(const struct perf_tool * tool,struct evsel * evsel,struct perf_sample * sample,struct machine * machine) process_softirq_entry_event() argument
1071 process_softirq_exit_event(const struct perf_tool * tool,struct evsel * evsel,struct perf_sample * sample,struct machine * machine) process_softirq_exit_event() argument
1138 softirq_work_init(struct perf_kwork * kwork,struct kwork_class * class,struct kwork_work * work,enum kwork_trace_type src_type __maybe_unused,struct evsel * evsel,struct perf_sample * sample,struct machine * machine __maybe_unused) softirq_work_init() argument
1174 process_workqueue_activate_work_event(const struct perf_tool * tool,struct evsel * evsel,struct perf_sample * sample,struct machine * machine) process_workqueue_activate_work_event() argument
1188 process_workqueue_execute_start_event(const struct perf_tool * tool,struct evsel * evsel,struct perf_sample * sample,struct machine * machine) process_workqueue_execute_start_event() argument
1202 process_workqueue_execute_end_event(const struct perf_tool * tool,struct evsel * evsel,struct perf_sample * sample,struct machine * machine) process_workqueue_execute_end_event() argument
1238 workqueue_work_init(struct perf_kwork * kwork __maybe_unused,struct kwork_class * class,struct kwork_work * work,enum kwork_trace_type src_type __maybe_unused,struct evsel * evsel,struct perf_sample * sample,struct machine * machine) workqueue_work_init() argument
1273 process_sched_switch_event(const struct perf_tool * tool,struct evsel * evsel,struct perf_sample * sample,struct machine * machine) process_sched_switch_event() argument
1306 sched_work_init(struct perf_kwork * kwork __maybe_unused,struct kwork_class * class,struct kwork_work * work,enum kwork_trace_type src_type,struct evsel * evsel,struct perf_sample * sample,struct machine * machine __maybe_unused) sched_work_init() argument
1503 u64 time = kwork->timeend - kwork->timestart; print_summary() local
1957 perf_kwork__process_tracepoint_sample(const struct perf_tool * tool,union perf_event * event __maybe_unused,struct perf_sample * sample,struct evsel * evsel,struct machine * machine) perf_kwork__process_tracepoint_sample() argument
[all...]
H A Dbuiltin-sched.c1 // SPDX-License-Identifier: GPL-2.0
4 #include "perf-sys.h"
22 #include "util/time-utils.h"
25 #include <subcmd/parse-options.h>
26 #include "util/trace-event.h"
31 #include "util/synthetic-events.h"
58 #define PID_MAX_LIMIT 4194304 /* kernel limit on 64-bi
829 replay_wakeup_event(struct perf_sched * sched,struct evsel * evsel,struct perf_sample * sample,struct machine * machine __maybe_unused) replay_wakeup_event() argument
851 replay_switch_event(struct perf_sched * sched,struct evsel * evsel,struct perf_sample * sample,struct machine * machine __maybe_unused) replay_switch_event() argument
1138 latency_switch_event(struct perf_sched * sched,struct evsel * evsel,struct perf_sample * sample,struct machine * machine) latency_switch_event() argument
1208 latency_runtime_event(struct perf_sched * sched,struct evsel * evsel,struct perf_sample * sample,struct machine * machine) latency_runtime_event() argument
1243 latency_wakeup_event(struct perf_sched * sched,struct evsel * evsel,struct perf_sample * sample,struct machine * machine) latency_wakeup_event() argument
1304 latency_migrate_task_event(struct perf_sched * sched,struct evsel * evsel,struct perf_sample * sample,struct machine * machine) latency_migrate_task_event() argument
1523 process_sched_wakeup_event(const struct perf_tool * tool,struct evsel * evsel,struct perf_sample * sample,struct machine * machine) process_sched_wakeup_event() argument
1630 map_switch_event(struct perf_sched * sched,struct evsel * evsel,struct perf_sample * sample,struct machine * machine) map_switch_event() argument
1795 process_sched_switch_event(const struct perf_tool * tool,struct evsel * evsel,struct perf_sample * sample,struct machine * machine) process_sched_switch_event() argument
1821 process_sched_runtime_event(const struct perf_tool * tool,struct evsel * evsel,struct perf_sample * sample,struct machine * machine) process_sched_runtime_event() argument
1834 perf_sched__process_fork_event(const struct perf_tool * tool,union perf_event * event,struct perf_sample * sample,struct machine * machine) perf_sched__process_fork_event() argument
1851 process_sched_migrate_task_event(const struct perf_tool * tool,struct evsel * evsel,struct perf_sample * sample,struct machine * machine) process_sched_migrate_task_event() argument
1869 perf_sched__process_tracepoint_sample(const struct perf_tool * tool __maybe_unused,union perf_event * event __maybe_unused,struct perf_sample * sample,struct evsel * evsel,struct machine * machine) perf_sched__process_tracepoint_sample() argument
1885 perf_sched__process_comm(const struct perf_tool * tool __maybe_unused,union perf_event * event,struct perf_sample * sample,struct machine * machine) perf_sched__process_comm() argument
2073 timehist_get_priostr(struct evsel * evsel,struct thread * thread,struct perf_sample * sample) timehist_get_priostr() argument
2165 timehist_print_sample(struct perf_sched * sched,struct evsel * evsel,struct perf_sample * sample,struct addr_location * al,struct thread * thread,u64 t,const char state) timehist_print_sample() argument
2317 is_idle_sample(struct perf_sample * sample,struct evsel * evsel) is_idle_sample() argument
2328 save_task_callchain(struct perf_sched * sched,struct perf_sample * sample,struct evsel * evsel,struct machine * machine) save_task_callchain() argument
2488 save_idle_callchain(struct perf_sched * sched,struct idle_thread_runtime * itr,struct perf_sample * sample) save_idle_callchain() argument
2503 timehist_get_thread(struct perf_sched * sched,struct perf_sample * sample,struct machine * machine,struct evsel * evsel) timehist_get_thread() argument
2553 timehist_skip_sample(struct perf_sched * sched,struct thread * thread,struct evsel * evsel,struct perf_sample * sample) timehist_skip_sample() argument
2596 timehist_print_wakeup_event(struct perf_sched * sched,struct evsel * evsel,struct perf_sample * sample,struct machine * machine,struct thread * awakened) timehist_print_wakeup_event() argument
2643 timehist_sched_wakeup_event(const struct perf_tool * tool,union perf_event * event __maybe_unused,struct evsel * evsel,struct perf_sample * sample,struct machine * machine) timehist_sched_wakeup_event() argument
2676 timehist_print_migration_event(struct perf_sched * sched,struct evsel * evsel,struct perf_sample * sample,struct machine * machine,struct thread * migrated) timehist_print_migration_event() argument
2732 timehist_migrate_task_event(const struct perf_tool * tool,union perf_event * event __maybe_unused,struct evsel * evsel,struct perf_sample * sample,struct machine * machine) timehist_migrate_task_event() argument
2765 timehist_update_task_prio(struct evsel * evsel,struct perf_sample * sample,struct machine * machine) timehist_update_task_prio() argument
2791 timehist_sched_change_event(const struct perf_tool * tool,union perf_event * event,struct evsel * evsel,struct perf_sample * sample,struct machine * machine) timehist_sched_change_event() argument
2929 timehist_sched_switch_event(const struct perf_tool * tool,union perf_event * event,struct evsel * evsel,struct perf_sample * sample,struct machine * machine __maybe_unused) timehist_sched_switch_event() argument
2937 process_lost(const struct perf_tool * tool __maybe_unused,union perf_event * event,struct perf_sample * sample,struct machine * machine __maybe_unused) process_lost() argument
3186 perf_timehist__process_sample(const struct perf_tool * tool,union perf_event * event,struct perf_sample * sample,struct evsel * evsel,struct machine * machine) perf_timehist__process_sample() argument
[all...]
H A Dbuiltin-kvm.c1 // SPDX-License-Identifier: GPL-2.0
5 #include <dwarf-regs.h>
6 #include "util/build-id.h"
17 #include <subcmd/parse-options.h>
18 #include "util/trace-event.h"
22 #include "util/synthetic-events.h"
26 #include "util/ordered-events.h"
27 #include "util/kvm-sta
723 find_create_kvm_event(struct perf_kvm_stat * kvm,struct event_key * key,struct perf_sample * sample) find_create_kvm_event() argument
758 handle_begin_event(struct perf_kvm_stat * kvm,struct vcpu_event_record * vcpu_record,struct event_key * key,struct perf_sample * sample) handle_begin_event() argument
810 is_child_event(struct perf_kvm_stat * kvm,struct evsel * evsel,struct perf_sample * sample,struct event_key * key) is_child_event() argument
833 handle_child_event(struct perf_kvm_stat * kvm,struct vcpu_event_record * vcpu_record,struct event_key * key,struct perf_sample * sample) handle_child_event() argument
859 handle_end_event(struct perf_kvm_stat * kvm,struct vcpu_event_record * vcpu_record,struct event_key * key,struct perf_sample * sample) handle_end_event() argument
921 per_vcpu_record(struct thread * thread,struct evsel * evsel,struct perf_sample * sample) per_vcpu_record() argument
945 handle_kvm_event(struct perf_kvm_stat * kvm,struct thread * thread,struct evsel * evsel,struct perf_sample * sample) handle_kvm_event() argument
1125 skip_sample(struct perf_kvm_stat * kvm,struct perf_sample * sample) skip_sample() argument
1135 process_sample_event(const struct perf_tool * tool,union perf_event * event,struct perf_sample * sample,struct evsel * evsel,struct machine * machine) process_sample_event() argument
[all...]
H A Dbuiltin-script.c1 // SPDX-License-Identifier: GPL-2.0
25 #include <subcmd/exec-cmd.h>
27 #include <subcmd/parse-options.h>
45 #include "util/dump-insn.h"
54 #include "util/mem-events.h"
55 #include "util/mem-info.h"
67 #include "util/thread-stack.h"
70 #include "util/time
790 perf_sample__fprintf_iregs(struct perf_sample * sample,struct perf_event_attr * attr,uint16_t e_machine,uint32_t e_flags,FILE * fp) perf_sample__fprintf_iregs() argument
803 perf_sample__fprintf_uregs(struct perf_sample * sample,struct perf_event_attr * attr,uint16_t e_machine,uint32_t e_flags,FILE * fp) perf_sample__fprintf_uregs() argument
817 perf_sample__fprintf_start(struct perf_script * script,struct perf_sample * sample,struct thread * thread,struct evsel * evsel,u32 type,FILE * fp) perf_sample__fprintf_start() argument
977 perf_sample__fprintf_brstack(struct perf_sample * sample,struct thread * thread,struct evsel * evsel,FILE * fp) perf_sample__fprintf_brstack() argument
1016 perf_sample__fprintf_brstacksym(struct perf_sample * sample,struct thread * thread,struct evsel * evsel,FILE * fp) perf_sample__fprintf_brstacksym() argument
1054 perf_sample__fprintf_brstackoff(struct perf_sample * sample,struct thread * thread,struct evsel * evsel,FILE * fp) perf_sample__fprintf_brstackoff() argument
1350 perf_sample__fprintf_brstackinsn(struct perf_sample * sample,struct evsel * evsel,struct thread * thread,struct perf_event_attr * attr,struct machine * machine,FILE * fp) perf_sample__fprintf_brstackinsn() argument
1512 perf_sample__fprintf_addr(struct perf_sample * sample,struct thread * thread,struct evsel * evsel,FILE * fp) perf_sample__fprintf_addr() argument
1540 resolve_branch_sym(struct perf_sample * sample,struct evsel * evsel,struct thread * thread,struct addr_location * al,struct addr_location * addr_al,u64 * ip) resolve_branch_sym() argument
1569 perf_sample__fprintf_callindent(struct perf_sample * sample,struct evsel * evsel,struct thread * thread,struct addr_location * al,struct addr_location * addr_al,FILE * fp) perf_sample__fprintf_callindent() argument
1619 perf_sample__fprintf_insn(struct perf_sample * sample,struct evsel * evsel,struct perf_event_attr * attr,struct thread * thread,struct machine * machine,FILE * fp,struct addr_location * al) perf_sample__fprintf_insn() argument
1646 perf_sample__fprintf_ipc(struct perf_sample * sample,struct evsel * evsel,FILE * fp) perf_sample__fprintf_ipc() argument
1660 perf_sample__fprintf_bts(struct perf_sample * sample,struct evsel * evsel,struct thread * thread,struct addr_location * al,struct addr_location * addr_al,struct machine * machine,FILE * fp) perf_sample__fprintf_bts() argument
1806 perf_sample__fprintf_bpf_output(struct perf_sample * sample,FILE * fp) perf_sample__fprintf_bpf_output() argument
1853 perf_sample__fprintf_synth_ptwrite(struct perf_sample * sample,FILE * fp) perf_sample__fprintf_synth_ptwrite() argument
1873 perf_sample__fprintf_synth_mwait(struct perf_sample * sample,FILE * fp) perf_sample__fprintf_synth_mwait() argument
1886 perf_sample__fprintf_synth_pwre(struct perf_sample * sample,FILE * fp) perf_sample__fprintf_synth_pwre() argument
1899 perf_sample__fprintf_synth_exstop(struct perf_sample * sample,FILE * fp) perf_sample__fprintf_synth_exstop() argument
1911 perf_sample__fprintf_synth_pwrx(struct perf_sample * sample,FILE * fp) perf_sample__fprintf_synth_pwrx() argument
1925 perf_sample__fprintf_synth_cbr(struct perf_sample * sample,FILE * fp) perf_sample__fprintf_synth_cbr() argument
1943 perf_sample__fprintf_synth_psb(struct perf_sample * sample,FILE * fp) perf_sample__fprintf_synth_psb() argument
1956 perf_sample__fprintf_synth_evt(struct perf_sample * sample,FILE * fp) perf_sample__fprintf_synth_evt() argument
1992 perf_sample__fprintf_synth_iflag_chg(struct perf_sample * sample,FILE * fp) perf_sample__fprintf_synth_iflag_chg() argument
2024 perf_sample__fprintf_synth(struct perf_sample * sample,struct evsel * evsel,FILE * fp) perf_sample__fprintf_synth() argument
2092 struct perf_sample *sample; global() member
2278 perf_sample__fprint_metric(struct thread * thread,struct evsel * evsel,struct perf_sample * sample,FILE * fp) perf_sample__fprint_metric() argument
2374 show_event(struct perf_sample * sample,struct evsel * evsel,struct thread * thread,struct addr_location * al,struct addr_location * addr_al) show_event() argument
2417 process_event(struct perf_script * script,struct perf_sample * sample,struct evsel * evsel,struct addr_location * al,struct addr_location * addr_al,struct machine * machine) process_event() argument
2633 filter_cpu(struct perf_sample * sample) filter_cpu() argument
2642 process_sample_event(const struct perf_tool * tool,union perf_event * event,struct perf_sample * sample,struct evsel * evsel,struct machine * machine) process_sample_event() argument
2726 process_deferred_sample_event(const struct perf_tool * tool,union perf_event * event,struct perf_sample * sample,struct evsel * evsel,struct machine * machine) process_deferred_sample_event() argument
2885 print_event_with_time(const struct perf_tool * tool,union perf_event * event,struct perf_sample * sample,struct machine * machine,pid_t pid,pid_t tid,u64 timestamp) print_event_with_time() argument
2920 print_event(const struct perf_tool * tool,union perf_event * event,struct perf_sample * sample,struct machine * machine,pid_t pid,pid_t tid) print_event() argument
2928 process_comm_event(const struct perf_tool * tool,union perf_event * event,struct perf_sample * sample,struct machine * machine) process_comm_event() argument
2940 process_namespaces_event(const struct perf_tool * tool,union perf_event * event,struct perf_sample * sample,struct machine * machine) process_namespaces_event() argument
2952 process_cgroup_event(const struct perf_tool * tool,union perf_event * event,struct perf_sample * sample,struct machine * machine) process_cgroup_event() argument
2964 process_fork_event(const struct perf_tool * tool,union perf_event * event,struct perf_sample * sample,struct machine * machine) process_fork_event() argument
2976 process_exit_event(const struct perf_tool * tool,union perf_event * event,struct perf_sample * sample,struct machine * machine) process_exit_event() argument
2989 process_mmap_event(const struct perf_tool * tool,union perf_event * event,struct perf_sample * sample,struct machine * machine) process_mmap_event() argument
3001 process_mmap2_event(const struct perf_tool * tool,union perf_event * event,struct perf_sample * sample,struct machine * machine) process_mmap2_event() argument
3013 process_switch_event(const struct perf_tool * tool,union perf_event * event,struct perf_sample * sample,struct machine * machine) process_switch_event() argument
3046 process_lost_event(const struct perf_tool * tool,union perf_event * event,struct perf_sample * sample,struct machine * machine) process_lost_event() argument
3056 process_throttle_event(const struct perf_tool * tool __maybe_unused,union perf_event * event,struct perf_sample * sample,struct machine * machine) process_throttle_event() argument
3077 process_bpf_events(const struct perf_tool * tool __maybe_unused,union perf_event * event,struct perf_sample * sample,struct machine * machine) process_bpf_events() argument
3098 process_text_poke_events(const struct perf_tool * tool,union perf_event * event,struct perf_sample * sample,struct machine * machine) process_text_poke_events() argument
[all...]
/linux/tools/perf/Documentation/
H A Dperf-mem.txt1 perf-mem(1)
5 ----
6 perf-mem - Profile memory accesses
9 --------
14 -----------
20 and stores are sampled. Use the -t option to limit to loads or stores.
22 Note that on Intel systems the memory latency reported is the use-latency,
26 On Arm64 this uses SPE to sample load and store operations, therefore hardware
27 and kernel support is required. See linkperf:perf-arm-spe[1] for a setup guide.
31 On AMD this use IBS Op PMU to sample load-store operations.
[all …]
H A Dperf-report.txt1 perf-report(1)
5 ----
6 perf-report - Read perf.data (created by perf record) and display the profile
9 ---
[all...]
H A Dtips.txt1 For a higher level overview, try: perf report --sort comm,dso
2 Sample related events with: perf record -e '{cycles,instructions}:S'
4 Boolean options have negative forms, e.g.: perf report --no-children
5 To not accumulate CPU time of children symbols add --n
[all...]
H A Dperf-record.txt1 perf-record(1)
5 ----
6 perf-record - Run a command and record its profile into perf.data
9 --------
11 'perf record' [-e <EVENT> | --event=EVENT] [-a] <command>
12 'perf record' [-e <EVENT> | --event=EVENT] [-a] \-- <command> [<options>]
15 -----------
17 from it, into perf.data - without displaying anything.
23 -------
27 -e::
[all …]
H A Dperf-script.txt1 perf-script(1)
5 ----
6 perf-script - Read perf.data (created by perf record) and display trace output
9 ---
[all...]
/linux/tools/perf/util/
H A Ds390-cpumsf.c1 // SPDX-License-Identifier: GPL-2.0
4 * Auxtrace support for s390 CPU-Measurement Sampling Facility
17 * see Documentation/perf.data-file-format.txt.
26 * Perf events are not necessarily in time stamp order, as they can be
28 * processed in time order they need to be sorted first.
31 * time stamp lower than this record are processed (and displayed) before
49 * entries, the queue number and a time stamp. However the stack is sorted by
50 * the time stamps. The highest time stamp is at the bottom the lowest
51 * (nearest) time stamp is at the top. That sort order is maintained at all
58 * Each record is handled by s390_cpumsf_process_event(). The time stamp of
[all …]
H A Dintel-pt.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * Copyright (c) 2013-2015, Intel Corporation.
28 #include "thread-stack.h"
35 #include "intel-pt.h"
38 #include "util/synthetic-events.h"
39 #include "time-util
212 u64 time; global() member
291 intel_pt_dump_sample(struct perf_session * session,struct perf_sample * sample) intel_pt_dump_sample() argument
1238 intel_pt_add_callchain(struct intel_pt * pt,struct perf_sample * sample) intel_pt_add_callchain() argument
1276 intel_pt_add_br_stack(struct intel_pt * pt,struct perf_sample * sample) intel_pt_add_br_stack() argument
1689 intel_pt_prep_a_sample(struct intel_pt_queue * ptq,union perf_event * event,struct perf_sample * sample) intel_pt_prep_a_sample() argument
1715 intel_pt_prep_b_sample(struct intel_pt * pt,struct intel_pt_queue * ptq,union perf_event * event,struct perf_sample * sample) intel_pt_prep_b_sample() argument
1732 intel_pt_inject_event(union perf_event * event,struct perf_sample * sample,u64 type) intel_pt_inject_event() argument
1740 intel_pt_opt_inject(struct intel_pt * pt,union perf_event * event,struct perf_sample * sample,u64 type) intel_pt_opt_inject() argument
1750 intel_pt_deliver_synth_event(struct intel_pt * pt,union perf_event * event,struct perf_sample * sample,u64 type) intel_pt_deliver_synth_event() argument
1769 struct perf_sample sample; intel_pt_synth_branch_sample() local
1822 intel_pt_prep_sample(struct intel_pt * pt,struct intel_pt_queue * ptq,union perf_event * event,struct perf_sample * sample) intel_pt_prep_sample() argument
1844 struct perf_sample sample; intel_pt_synth_instruction_sample() local
1880 struct perf_sample sample; intel_pt_synth_cycle_sample() local
1911 struct perf_sample sample; intel_pt_synth_transaction_sample() local
1932 intel_pt_prep_p_sample(struct intel_pt * pt,struct intel_pt_queue * ptq,union perf_event * event,struct perf_sample * sample) intel_pt_prep_p_sample() argument
1948 struct perf_sample sample = { .ip = 0, }; intel_pt_synth_ptwrite_sample() local
1974 struct perf_sample sample; intel_pt_synth_cbr_sample() local
2008 struct perf_sample sample; intel_pt_synth_psb_sample() local
2038 struct perf_sample sample; intel_pt_synth_mwait_sample() local
2067 struct perf_sample sample; intel_pt_synth_pwre_sample() local
2096 struct perf_sample sample; intel_pt_synth_exstop_sample() local
2125 struct perf_sample sample; intel_pt_synth_pwrx_sample() local
2419 struct perf_sample sample; intel_pt_do_synth_pebs_sample() local
2609 struct perf_sample sample; intel_pt_synth_events_sample() local
2651 struct perf_sample sample; intel_pt_synth_iflag_chg_sample() local
3290 intel_pt_sample_set_pid_tid_cpu(struct intel_pt_queue * ptq,struct auxtrace_queue * queue,struct perf_sample * sample) intel_pt_sample_set_pid_tid_cpu() argument
3317 intel_pt_process_timeless_sample(struct intel_pt * pt,struct perf_sample * sample) intel_pt_process_timeless_sample() argument
3338 intel_pt_lost(struct intel_pt * pt,struct perf_sample * sample) intel_pt_lost() argument
3420 intel_pt_process_switch(struct intel_pt * pt,struct perf_sample * sample) intel_pt_process_switch() argument
3445 intel_pt_context_switch_in(struct intel_pt * pt,struct perf_sample * sample) intel_pt_context_switch_in() argument
3484 intel_pt_guest_context_switch(struct intel_pt * pt,union perf_event * event,struct perf_sample * sample) intel_pt_guest_context_switch() argument
3510 intel_pt_context_switch(struct intel_pt * pt,union perf_event * event,struct perf_sample * sample) intel_pt_context_switch() argument
3549 intel_pt_process_itrace_start(struct intel_pt * pt,union perf_event * event,struct perf_sample * sample) intel_pt_process_itrace_start() argument
3609 intel_pt_process_aux_output_hw_id(struct intel_pt * pt,union perf_event * event,struct perf_sample * sample) intel_pt_process_aux_output_hw_id() argument
3701 intel_pt_process_event(struct perf_session * session,union perf_event * event,struct perf_sample * sample,const struct perf_tool * tool) intel_pt_process_event() argument
3891 intel_pt_queue_data(struct perf_session * session,struct perf_sample * sample,union perf_event * event,u64 data_offset) intel_pt_queue_data() argument
[all...]
H A Dintel-bts.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * intel-bts.c: Intel Processor Trace support
4 * Copyright (c) 2013-2015, Intel Corporation.
25 #include "thread-stack.h"
29 #include "intel-pt-decoder/intel-p
75 u64 time; global() member
131 intel_bts_lost(struct intel_bts * bts,struct perf_sample * sample) intel_bts_lost() argument
278 struct perf_sample sample; intel_bts_synth_branch_sample() local
595 intel_bts_process_event(struct perf_session * session,union perf_event * event,struct perf_sample * sample,const struct perf_tool * tool) intel_bts_process_event() argument
[all...]
H A Dthread-stack.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * thread-stack.c: Synthesize a thread's stack using call / return events
21 #include "call-path.h"
22 #include "thread-stack.h"
40 * struct thread_stack_entry - thread stack entry.
43 * @ref: external reference (e.g. db_id of sample)
47 * @db_id: id used for db-expor
860 thread_stack__bottom(struct thread_stack * ts,struct perf_sample * sample,struct addr_location * from_al,struct addr_location * to_al,u64 ref) thread_stack__bottom() argument
887 thread_stack__pop_ks(struct thread * thread,struct thread_stack * ts,struct perf_sample * sample,u64 ref) thread_stack__pop_ks() argument
905 thread_stack__no_call_return(struct thread * thread,struct thread_stack * ts,struct perf_sample * sample,struct addr_location * from_al,struct addr_location * to_al,u64 ref) thread_stack__no_call_return() argument
1020 thread_stack__trace_end(struct thread_stack * ts,struct perf_sample * sample,u64 ref) thread_stack__trace_end() argument
1050 thread_stack__x86_retpoline(struct thread_stack * ts,struct perf_sample * sample,struct addr_location * to_al) thread_stack__x86_retpoline() argument
1102 thread_stack__process(struct thread * thread,struct comm * comm,struct perf_sample * sample,struct addr_location * from_al,struct addr_location * to_al,u64 ref,struct call_return_processor * crp) thread_stack__process() argument
[all...]
/linux/samples/ftrace/
H A Dsample-trace-array.h1 /* SPDX-License-Identifier: GPL-2.0 */
9 * In this case, it would look for sample-trace.h
15 * This file is called sample-trace-array.h but we want the system
16 * to be called "sample-subsystem". Therefore we must define the name of this
19 * #define TRACE_INCLUDE_FILE sample-trace-array
27 #define TRACE_SYSTEM sample-subsystem
30 * TRACE_SYSTEM is expected to be a C valid variable (alpha-numeric
38 * But the above is only needed if TRACE_SYSTEM is not alpha-numeric
40 * TRACE_SYSTEM. As TRACE_SYSTEM_VAR must be alpha-numeric, if
42 * only alpha-numeric and underscores.
[all …]
/linux/tools/perf/tests/
H A Dperf-record.c1 // SPDX-License-Identifier: GPL-2.0
15 #include "util/sample.h"
20 int i, cpu = -1; in sched__get_first_possible_cpu()
27 if (sched_getaffinity(pid, size, maskp) == -1) { in sched__get_first_possible_cpu()
33 return -1; in sched__get_first_possible_cpu()
38 if (cpu == -1) in sched__get_first_possible_cpu()
62 struct perf_sample sample; in test__PERF_RECORD() local
72 int err = - in test__PERF_RECORD()
[all...]
H A Dperf-time-to-tsc.c1 // SPDX-License-Identifier: GPL-2.0
15 #include "parse-events.h"
23 #include "util/sample.h"
61 * test__perf_time_to_tsc - test converting perf time to TSC.
63 * This function implements a test that checks that the conversion of perf time
65 * %0 is returned, otherwise %-1 is returned. If TSC conversion is not
104 CHECK__(parse_event(evlist, "cpu-cycle in test__perf_time_to_tsc()
154 struct perf_sample sample; test__perf_time_to_tsc() local
[all...]
/linux/tools/perf/tests/shell/
H A Drecord_offcpu.sh3 # SPDX-License-Identifier: GPL-2.0
5 set -e
14 rm -f ${perfdata}
15 rm -f ${perfdata}.old
16 trap - EXIT TERM INT
29 echo "Checking off-cpu privilege"
31 if [ "$(id -u)" != 0 ]
33 echo "off-cp
[all...]
/linux/tools/testing/selftests/timers/
H A Dfreq-step.c1 // SPDX-License-Identifier: GPL-2.0-only
15 #include <time.h>
24 #define MAX_PRECISION 500e-9
25 #define MAX_FREQ_ERROR 0.02e-6
26 #define MAX_STDDEV 50e-9
32 struct sample { struct
34 double time; member
45 return ts1->tv_sec - ts2->tv_sec + (ts1->tv_nsec - ts2->tv_nsec) / 1e9; in diff_timespec()
48 static double get_sample(struct sample *sample) in get_sample() argument
59 ts1.tv_sec -= mono_raw_base; in get_sample()
[all …]
/linux/tools/perf/util/kvm-stat-arch/
H A Dkvm-stat-x86.c1 // SPDX-License-Identifier: GPL-2.0
4 #include "../kvm-stat.h"
18 .name = "VM-EXIT"
23 * the time of MMIO write: kvm_mmio(KVM_TRACE_MMIO_WRITE...) -> kvm_entry
24 * the time of MMIO read: kvm_exit -> kvm_mmio(KVM_TRACE_MMIO_READ...).
26 static void mmio_event_get_key(struct perf_sample *sample,
27 mmio_event_get_key(struct evsel * evsel,struct perf_sample * sample,struct event_key * key) mmio_event_get_key() argument
39 mmio_event_begin(struct evsel * evsel,struct perf_sample * sample,struct event_key * key) mmio_event_begin() argument
55 mmio_event_end(struct evsel * evsel,struct perf_sample * sample,struct event_key * key) mmio_event_end() argument
90 ioport_event_get_key(struct evsel * evsel,struct perf_sample * sample,struct event_key * key) ioport_event_get_key() argument
98 ioport_event_begin(struct evsel * evsel,struct perf_sample * sample,struct event_key * key) ioport_event_begin() argument
134 msr_event_get_key(struct evsel * evsel,struct perf_sample * sample,struct event_key * key) msr_event_get_key() argument
142 msr_event_begin(struct evsel * evsel,struct perf_sample * sample,struct event_key * key) msr_event_begin() argument
[all...]
/linux/Documentation/devicetree/bindings/iio/adc/
H A Datmel,sama5d2-adc.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/iio/adc/atmel,sama5d2-adc.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Eugen Hristev <eugen.hristev@microchip.com>
15 - atmel,sama5d2-adc
16 - microchip,sam9x60-adc
17 - microchip,sama7g5-adc
28 clock-names:
31 vref-supply: true
[all …]
/linux/include/uapi/sound/
H A Dsfnt_info.h1 /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
8 * Copyright (C) 1999-2000 Takashi Iwai
42 #define SNDRV_SFNT_PROBE_DATA 8 /* optarg=sample */
58 unsigned short type; /* sample type */
63 #define SNDRV_SFNT_PAT_SHARED 0x200 /* sample is shared */
77 unsigned short modatkhld; /* modulation attack & hold time (0x7f7f) */
79 unsigned short modrelease; /* modulation release time (0x807f) */
82 unsigned short volatkhld; /* volume attack & hold time (0x7f7f) */
84 unsigned short volrelease; /* volume release time (0x807f) */
93 unsigned char filterQ; /* initial filter Q [0-15] (0x0) */
[all …]
/linux/arch/arm/boot/dts/st/
H A Dstm32mp15xx-dhcor-testbench.dtsi1 // SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause)
17 stdout-path = "serial0:115200n8";
20 sd_switch: regulator-sd_switch {
21 compatible = "regulator-gpio";
22 regulator-name = "sd_switch";
23 regulator-min-microvolt = <1800000>;
24 regulator-max-microvolt = <2900000>;
25 regulator-type = "voltage";
26 regulator-always-on;
29 gpios-states = <0>;
[all …]
/linux/Documentation/sound/soc/
H A Ddai.rst13 now also popular in many portable devices. This DAI has a RESET line and time
17 frame is 21uS long and is divided into 13 time slots.
30 usually varies depending on the sample rate and the master system clock
31 (SYSCLK). LRCLK is the same as the sample rate. A few devices support separate
33 different sample rates.
35 I2S has several different operating modes:-
45 MSB is transmitted sample size BCLKs before LRC transition.
53 receive the audio data. Bit clock usually varies depending on sample rate
54 while sync runs at the sample rate. PCM also supports Time Division
58 Common PCM operating modes:-
/linux/Documentation/sound/cards/
H A Daudiophile-usb.rst2 Guide to using M-Audio Audiophile USB with ALSA and Jack
9 This document is a guide to using the M-Audio Audiophile USB (tm) device with
15 * v1.4 - Thibault Le Meur (2007-07-11)
17 - Added Low Endianness nature of 16bits-modes
19 - Modifying document structure
21 * v1.5 - Thibault Le Meur (2007-07-12)
22 - Added AC3/DTS passthru info
35 - This port supports 2 pairs of line-level audio inputs (1/4" TS and RCA)
36 - When the 1/4" TS (jack) connectors are connected, the RCA connectors
47 * sample depth of 16 or 24 bits
[all …]

12345678910>>...27