Home
last modified time | relevance | path

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

12345678910>>...35

/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
1259 struct cpu_sample *sample; draw_process_bars() local
[all...]
H A Dbuiltin-sched.c1 // SPDX-License-Identifier: GPL-2.0
3 #include "perf-sys.h"
21 #include "util/time-utils.h"
24 #include <subcmd/parse-options.h>
25 #include "util/trace-event.h"
128 struct perf_sample *sample, struct machine *machine);
131 struct perf_sample *sample, struc
826 replay_wakeup_event(struct perf_sched * sched,struct evsel * evsel,struct perf_sample * sample,struct machine * machine __maybe_unused) replay_wakeup_event() argument
848 replay_switch_event(struct perf_sched * sched,struct evsel * evsel,struct perf_sample * sample,struct machine * machine __maybe_unused) replay_switch_event() argument
1121 latency_switch_event(struct perf_sched * sched,struct evsel * evsel,struct perf_sample * sample,struct machine * machine) latency_switch_event() argument
1191 latency_runtime_event(struct perf_sched * sched,struct evsel * evsel,struct perf_sample * sample,struct machine * machine) latency_runtime_event() argument
1226 latency_wakeup_event(struct perf_sched * sched,struct evsel * evsel,struct perf_sample * sample,struct machine * machine) latency_wakeup_event() argument
1287 latency_migrate_task_event(struct perf_sched * sched,struct evsel * evsel,struct perf_sample * sample,struct machine * machine) latency_migrate_task_event() argument
1506 process_sched_wakeup_event(const struct perf_tool * tool,struct evsel * evsel,struct perf_sample * sample,struct machine * machine) process_sched_wakeup_event() argument
1624 map_switch_event(struct perf_sched * sched,struct evsel * evsel,struct perf_sample * sample,struct machine * machine) map_switch_event() argument
1787 process_sched_switch_event(const struct perf_tool * tool,struct evsel * evsel,struct perf_sample * sample,struct machine * machine) process_sched_switch_event() argument
1813 process_sched_runtime_event(const struct perf_tool * tool,struct evsel * evsel,struct perf_sample * sample,struct machine * machine) process_sched_runtime_event() argument
1826 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
1843 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
1861 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
1877 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
2055 timehist_get_priostr(struct evsel * evsel,struct thread * thread,struct perf_sample * sample) timehist_get_priostr() argument
2148 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
2285 is_idle_sample(struct perf_sample * sample,struct evsel * evsel) is_idle_sample() argument
2296 save_task_callchain(struct perf_sched * sched,struct perf_sample * sample,struct evsel * evsel,struct machine * machine) save_task_callchain() argument
2443 save_idle_callchain(struct perf_sched * sched,struct idle_thread_runtime * itr,struct perf_sample * sample) save_idle_callchain() argument
2458 timehist_get_thread(struct perf_sched * sched,struct perf_sample * sample,struct machine * machine,struct evsel * evsel) timehist_get_thread() argument
2507 timehist_skip_sample(struct perf_sched * sched,struct thread * thread,struct evsel * evsel,struct perf_sample * sample) timehist_skip_sample() argument
2550 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
2594 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
2624 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
2678 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
2704 timehist_update_task_prio(struct evsel * evsel,struct perf_sample * sample,struct machine * machine) timehist_update_task_prio() argument
2730 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
2865 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
2873 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
3122 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-kwork.c1 // SPDX-License-Identifier: GPL-2.0
3 * builtin-kwork.c
25 #include <subcmd/parse-options.h>
26 #include <event-parse.h>
66 if (l->cpu > r->cpu) in id_cmp()
68 if (l->cpu < r->cp in id_cmp()
240 atom_new(struct perf_kwork * kwork,struct perf_sample * sample) atom_new() argument
395 profile_update_timespan(struct perf_kwork * kwork,struct perf_sample * sample) profile_update_timespan() argument
420 profile_event_match(struct perf_kwork * kwork,struct kwork_work * work,struct perf_sample * sample) profile_event_match() argument
423 u64 time = sample->time; profile_event_match() local
451 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
510 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
580 report_update_exit_event(struct kwork_work * work,struct kwork_atom * atom,struct perf_sample * sample) report_update_exit_event() argument
602 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
613 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
635 latency_update_entry_event(struct kwork_work * work,struct kwork_atom * atom,struct perf_sample * sample) latency_update_entry_event() argument
657 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
668 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
689 timehist_save_callchain(struct perf_kwork * kwork,struct perf_sample * sample,struct evsel * evsel,struct machine * machine) timehist_save_callchain() argument
740 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
816 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
827 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
848 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
884 top_update_runtime(struct kwork_work * work,struct kwork_atom * atom,struct perf_sample * sample) top_update_runtime() argument
899 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
910 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
940 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
963 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
976 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
1009 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
1042 process_softirq_raise_event(const struct perf_tool * tool,struct evsel * evsel,struct perf_sample * sample,struct machine * machine) process_softirq_raise_event() argument
1056 process_softirq_entry_event(const struct perf_tool * tool,struct evsel * evsel,struct perf_sample * sample,struct machine * machine) process_softirq_entry_event() argument
1070 process_softirq_exit_event(const struct perf_tool * tool,struct evsel * evsel,struct perf_sample * sample,struct machine * machine) process_softirq_exit_event() argument
1136 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
1172 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
1186 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
1200 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
1236 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
1271 process_sched_switch_event(const struct perf_tool * tool,struct evsel * evsel,struct perf_sample * sample,struct machine * machine) process_sched_switch_event() argument
1304 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
1501 u64 time = kwork->timeend - kwork->timestart; print_summary() local
1955 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-kvm.c1 // SPDX-License-Identifier: GPL-2.0
5 #include "util/build-id.h"
16 #include <subcmd/parse-options.h>
17 #include "util/trace-event.h"
21 #include "util/synthetic-events.h"
24 #include "util/ordered-events.h"
25 #include "util/kvm-stat.h"
36 #include <sys/time
619 exit_event_get_key(struct evsel * evsel,struct perf_sample * sample,struct event_key * key) exit_event_get_key() argument
632 exit_event_begin(struct evsel * evsel,struct perf_sample * sample,struct event_key * key) exit_event_begin() argument
783 find_create_kvm_event(struct perf_kvm_stat * kvm,struct event_key * key,struct perf_sample * sample) find_create_kvm_event() argument
818 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
870 is_child_event(struct perf_kvm_stat * kvm,struct evsel * evsel,struct perf_sample * sample,struct event_key * key) is_child_event() argument
893 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
919 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
980 per_vcpu_record(struct thread * thread,struct evsel * evsel,struct perf_sample * sample) per_vcpu_record() argument
1002 handle_kvm_event(struct perf_kvm_stat * kvm,struct thread * thread,struct evsel * evsel,struct perf_sample * sample) handle_kvm_event() argument
1182 skip_sample(struct perf_kvm_stat * kvm,struct perf_sample * sample) skip_sample() argument
1192 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
7 #include <subcmd/exec-cmd.h>
9 #include <subcmd/parse-options.h>
17 #include "util/trace-event.h"
31 #include "util/thread-stack.h"
32 #include "util/time-utils.h"
35 #include "util/mem-inf
775 perf_sample__fprintf_iregs(struct perf_sample * sample,struct perf_event_attr * attr,const char * arch,FILE * fp) perf_sample__fprintf_iregs() argument
782 perf_sample__fprintf_uregs(struct perf_sample * sample,struct perf_event_attr * attr,const char * arch,FILE * fp) perf_sample__fprintf_uregs() argument
790 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
945 perf_sample__fprintf_brstack(struct perf_sample * sample,struct thread * thread,struct perf_event_attr * attr,FILE * fp) perf_sample__fprintf_brstack() argument
984 perf_sample__fprintf_brstacksym(struct perf_sample * sample,struct thread * thread,struct perf_event_attr * attr,FILE * fp) perf_sample__fprintf_brstacksym() argument
1022 perf_sample__fprintf_brstackoff(struct perf_sample * sample,struct thread * thread,struct perf_event_attr * attr,FILE * fp) perf_sample__fprintf_brstackoff() argument
1321 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
1483 perf_sample__fprintf_addr(struct perf_sample * sample,struct thread * thread,struct perf_event_attr * attr,FILE * fp) perf_sample__fprintf_addr() argument
1511 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
1541 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
1598 script_fetch_insn(struct perf_sample * sample,struct thread * thread,struct machine * machine) script_fetch_insn() argument
1605 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
1632 perf_sample__fprintf_ipc(struct perf_sample * sample,struct perf_event_attr * attr,FILE * fp) perf_sample__fprintf_ipc() argument
1646 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
1867 perf_sample__fprintf_bpf_output(struct perf_sample * sample,FILE * fp) perf_sample__fprintf_bpf_output() argument
1914 perf_sample__fprintf_synth_ptwrite(struct perf_sample * sample,FILE * fp) perf_sample__fprintf_synth_ptwrite() argument
1934 perf_sample__fprintf_synth_mwait(struct perf_sample * sample,FILE * fp) perf_sample__fprintf_synth_mwait() argument
1947 perf_sample__fprintf_synth_pwre(struct perf_sample * sample,FILE * fp) perf_sample__fprintf_synth_pwre() argument
1960 perf_sample__fprintf_synth_exstop(struct perf_sample * sample,FILE * fp) perf_sample__fprintf_synth_exstop() argument
1972 perf_sample__fprintf_synth_pwrx(struct perf_sample * sample,FILE * fp) perf_sample__fprintf_synth_pwrx() argument
1986 perf_sample__fprintf_synth_cbr(struct perf_sample * sample,FILE * fp) perf_sample__fprintf_synth_cbr() argument
2004 perf_sample__fprintf_synth_psb(struct perf_sample * sample,FILE * fp) perf_sample__fprintf_synth_psb() argument
2017 perf_sample__fprintf_synth_evt(struct perf_sample * sample,FILE * fp) perf_sample__fprintf_synth_evt() argument
2053 perf_sample__fprintf_synth_iflag_chg(struct perf_sample * sample,FILE * fp) perf_sample__fprintf_synth_iflag_chg() argument
2066 perf_sample__fprintf_synth(struct perf_sample * sample,struct evsel * evsel,FILE * fp) perf_sample__fprintf_synth() argument
2132 struct perf_sample *sample; global() member
2170 perf_sample__fprint_metric(struct perf_script * script,struct thread * thread,struct evsel * evsel,struct perf_sample * sample,FILE * fp) perf_sample__fprint_metric() argument
2206 show_event(struct perf_sample * sample,struct evsel * evsel,struct thread * thread,struct addr_location * al,struct addr_location * addr_al) show_event() argument
2249 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
2452 filter_cpu(struct perf_sample * sample) filter_cpu() argument
2461 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
2614 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
2649 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
2657 process_comm_event(const struct perf_tool * tool,union perf_event * event,struct perf_sample * sample,struct machine * machine) process_comm_event() argument
2669 process_namespaces_event(const struct perf_tool * tool,union perf_event * event,struct perf_sample * sample,struct machine * machine) process_namespaces_event() argument
2681 process_cgroup_event(const struct perf_tool * tool,union perf_event * event,struct perf_sample * sample,struct machine * machine) process_cgroup_event() argument
2693 process_fork_event(const struct perf_tool * tool,union perf_event * event,struct perf_sample * sample,struct machine * machine) process_fork_event() argument
2705 process_exit_event(const struct perf_tool * tool,union perf_event * event,struct perf_sample * sample,struct machine * machine) process_exit_event() argument
2718 process_mmap_event(const struct perf_tool * tool,union perf_event * event,struct perf_sample * sample,struct machine * machine) process_mmap_event() argument
2730 process_mmap2_event(const struct perf_tool * tool,union perf_event * event,struct perf_sample * sample,struct machine * machine) process_mmap2_event() argument
2742 process_switch_event(const struct perf_tool * tool,union perf_event * event,struct perf_sample * sample,struct machine * machine) process_switch_event() argument
2774 process_lost_event(const struct perf_tool * tool,union perf_event * event,struct perf_sample * sample,struct machine * machine) process_lost_event() argument
2784 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
2805 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
2817 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.
32 --------------
[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 --no-children
6 Customize output of perf script with: perf script -F event,ip,sym
7 Generate a script for your data: perf script -g <lang>
10 Search options using a keyword: perf report -h <keyword>
11 Use parent filter to see specific call path: perf report -p <regex>
13 To see list of saved events and attributes: perf evlist -v
14 Use --symfs <dir> if your symbol files are in non-standard locations
[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 …]
/linux/tools/perf/util/
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
210 u64 time; global() member
289 intel_pt_dump_sample(struct perf_session * session,struct perf_sample * sample) intel_pt_dump_sample() argument
1236 intel_pt_add_callchain(struct intel_pt * pt,struct perf_sample * sample) intel_pt_add_callchain() argument
1274 intel_pt_add_br_stack(struct intel_pt * pt,struct perf_sample * sample) intel_pt_add_br_stack() argument
1687 intel_pt_prep_a_sample(struct intel_pt_queue * ptq,union perf_event * event,struct perf_sample * sample) intel_pt_prep_a_sample() argument
1713 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
1730 intel_pt_inject_event(union perf_event * event,struct perf_sample * sample,u64 type) intel_pt_inject_event() argument
1738 intel_pt_opt_inject(struct intel_pt * pt,union perf_event * event,struct perf_sample * sample,u64 type) intel_pt_opt_inject() argument
1748 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
1767 struct perf_sample sample = { .ip = 0, }; intel_pt_synth_branch_sample() local
1816 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
1838 struct perf_sample sample = { .ip = 0, }; intel_pt_synth_instruction_sample() local
1870 struct perf_sample sample = { .ip = 0, }; intel_pt_synth_cycle_sample() local
1897 struct perf_sample sample = { .ip = 0, }; intel_pt_synth_transaction_sample() local
1914 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
1930 struct perf_sample sample = { .ip = 0, }; intel_pt_synth_ptwrite_sample() local
1956 struct perf_sample sample = { .ip = 0, }; intel_pt_synth_cbr_sample() local
1986 struct perf_sample sample = { .ip = 0, }; intel_pt_synth_psb_sample() local
2012 struct perf_sample sample = { .ip = 0, }; intel_pt_synth_mwait_sample() local
2037 struct perf_sample sample = { .ip = 0, }; intel_pt_synth_pwre_sample() local
2062 struct perf_sample sample = { .ip = 0, }; intel_pt_synth_exstop_sample() local
2087 struct perf_sample sample = { .ip = 0, }; intel_pt_synth_pwrx_sample() local
2238 struct perf_sample sample = { .ip = 0, }; intel_pt_do_synth_pebs_sample() local
2410 struct perf_sample sample = { .ip = 0, }; intel_pt_synth_events_sample() local
2449 struct perf_sample sample = { .ip = 0, }; intel_pt_synth_iflag_chg_sample() local
3084 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
3111 intel_pt_process_timeless_sample(struct intel_pt * pt,struct perf_sample * sample) intel_pt_process_timeless_sample() argument
3132 intel_pt_lost(struct intel_pt * pt,struct perf_sample * sample) intel_pt_lost() argument
3214 intel_pt_process_switch(struct intel_pt * pt,struct perf_sample * sample) intel_pt_process_switch() argument
3239 intel_pt_context_switch_in(struct intel_pt * pt,struct perf_sample * sample) intel_pt_context_switch_in() argument
3278 intel_pt_guest_context_switch(struct intel_pt * pt,union perf_event * event,struct perf_sample * sample) intel_pt_guest_context_switch() argument
3304 intel_pt_context_switch(struct intel_pt * pt,union perf_event * event,struct perf_sample * sample) intel_pt_context_switch() argument
3343 intel_pt_process_itrace_start(struct intel_pt * pt,union perf_event * event,struct perf_sample * sample) intel_pt_process_itrace_start() argument
3360 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
3451 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
3641 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 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 stam
197 s390_cpumcf_dumpctr(struct s390_cpumsf * sf,struct perf_sample * sample) s390_cpumcf_dumpctr() argument
507 struct perf_sample sample = { s390_cpumsf_make_event() local
904 s390_cpumsf_lost(struct s390_cpumsf * sf,struct perf_sample * sample) s390_cpumsf_lost() argument
914 s390_cpumsf_process_event(struct perf_session * session,union perf_event * event,struct perf_sample * sample,const struct perf_tool * tool) s390_cpumsf_process_event() argument
[all...]
H A Darm-spe.c1 // SPDX-License-Identifier: GPL-2.0
4 * Copyright (c) 2017-2018, Arm Ltd.
28 #include "thread-stack.h"
31 #include "util/synthetic-events.h"
33 #include "arm-spe.h"
34 #include "arm-spe-decoder/arm-sp
95 u64 time; global() member
298 arm_spe_prep_sample(struct arm_spe * spe,struct arm_spe_queue * speq,union perf_event * event,struct perf_sample * sample) arm_spe_prep_sample() argument
318 arm_spe__inject_event(union perf_event * event,struct perf_sample * sample,u64 type) arm_spe__inject_event() argument
328 arm_spe_deliver_synth_event(struct arm_spe * spe,struct arm_spe_queue * speq __maybe_unused,union perf_event * event,struct perf_sample * sample) arm_spe_deliver_synth_event() argument
351 struct perf_sample sample = { .ip = 0, }; arm_spe__synth_mem_sample() local
371 struct perf_sample sample = { .ip = 0, }; arm_spe__synth_branch_sample() local
389 struct perf_sample sample = { .ip = 0, }; arm_spe__synth_instruction_sample() local
881 arm_spe_context_switch(struct arm_spe * spe,union perf_event * event,struct perf_sample * sample) arm_spe_context_switch() argument
901 arm_spe_process_event(struct perf_session * session,union perf_event * event,struct perf_sample * sample,const struct perf_tool * tool) arm_spe_process_event() 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 = { .ip = 0, }; intel_bts_synth_branch_sample() local
593 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-export
68 * struct thread_stack - thread stack constructed from 'call' and 'return'
123 new_sz = ts->sz + STACK_GROWTH; in thread_stack__grow()
126 new_stack = realloc(ts->stack, sz); in thread_stack__grow()
[all …]
/linux/tools/perf/arch/x86/util/
H A Dkvm-stat.c1 // SPDX-License-Identifier: GPL-2.0
4 #include "../../../util/kvm-stat.h"
17 .name = "VM-EXIT"
27 * the time of MMIO write: kvm_mmio(KVM_TRACE_MMIO_WRITE...) -> kvm_entry
28 * the time of MMIO read: kvm_exit -> kvm_mmio(KVM_TRACE_MMIO_READ...).
30 static void mmio_event_get_key(struct evsel *evsel, struct perf_sample *sample, in mmio_event_get_key() argument
33 key->key = evsel__intval(evsel, sample, "gpa"); in mmio_event_get_key()
34 key->info = evsel__intval(evsel, sample, "type"); in mmio_event_get_key()
42 struct perf_sample *sample, struct event_key *key) in mmio_event_begin() argument
50 evsel__intval(evsel, sample, "type") == KVM_TRACE_MMIO_WRITE) { in mmio_event_begin()
[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/arch/arm/boot/dts/st/
H A Dstm32mp15x-mecio1-io.dtsi1 // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
8 #include "stm32mp15-pinctrl.dtsi"
9 #include "stm32mp15xxaa-pinctrl.dtsi"
10 #include <dt-bindings/gpio/gpio.h>
11 #include <dt-bindings/input/input.h>
15 stdout-path = "serial0:1500000n8";
34 reserved-memory {
35 #address-cells = <1>;
36 #size-cells = <1>;
40 compatible = "shared-dma-pool";
[all …]
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/tools/perf/tests/
H A Dperf-record.c1 // SPDX-License-Identifier: GPL-2.0
15 #include "util/sample.h"
19 int i, cpu = -1, nrcpus = 1024; in sched__get_first_possible_cpu()
23 if (sched_getaffinity(pid, sizeof(*maskp), maskp) == -1) { in sched__get_first_possible_cpu()
29 return -1; in sched__get_first_possible_cpu()
34 if (cpu == -1) in sched__get_first_possible_cpu()
58 struct perf_sample sample; in test__PERF_RECORD() local
68 int err = -1, errs = 0, i, wakeups = 0; in test__PERF_RECORD()
83 * we start with all threads and cpus (-1, -1) but then in in test__PERF_RECORD()
96 * so that we have time to open the evlist (calling sys_perf_event_open 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
93 threads = thread_map__new(-1, getpid(), UINT_MAX); in test__perf_time_to_tsc()
102 perf_evlist__set_maps(&evlist->core, cpus, threads); in test__perf_time_to_tsc()
110 evsel->core.attr.comm = 1; in test__perf_time_to_tsc()
111 evsel->core.attr.disabled = 1; in test__perf_time_to_tsc()
[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/scripts/python/
H A Darm-cs-trace-disasm.py1 # SPDX-License-Identifier: GPL-2.0
2 # arm-cs-trace-disasm.py: ARM CoreSight Trace Dump With Disassember
20 # Note a --kcore recording is required for accurate decode
29 # +--
113 print_sample(sample) global() argument
129 common_start_str(comm, sample) global() argument
139 print_srccode(comm, param_dict, sample, symbol, dso) global() 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/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:-

12345678910>>...35