Home
last modified time | relevance | path

Searched refs:tep (Results 1 – 25 of 65) sorted by relevance

123

/linux-6.1.9/tools/lib/traceevent/
Devent-parse-api.c19 struct tep_event *tep_get_event(struct tep_handle *tep, int index) in tep_get_event() argument
21 if (tep && tep->events && index < tep->nr_events) in tep_get_event()
22 return tep->events[index]; in tep_get_event()
34 struct tep_event *tep_get_first_event(struct tep_handle *tep) in tep_get_first_event() argument
36 return tep_get_event(tep, 0); in tep_get_first_event()
46 int tep_get_events_count(struct tep_handle *tep) in tep_get_events_count() argument
48 if (tep) in tep_get_events_count()
49 return tep->nr_events; in tep_get_events_count()
61 void tep_set_flag(struct tep_handle *tep, int flag) in tep_set_flag() argument
63 if (tep) in tep_set_flag()
[all …]
Devent-parse.h53 typedef int (*tep_plugin_load_func)(struct tep_handle *tep);
54 typedef int (*tep_plugin_unload_func)(struct tep_handle *tep);
271 struct tep_handle *tep; member
391 int tep_add_plugin_path(struct tep_handle *tep, char *path,
393 struct tep_plugin_list *tep_load_plugins(struct tep_handle *tep);
395 struct tep_handle *tep);
396 void tep_load_plugins_hook(struct tep_handle *tep, const char *suffix,
397 void (*load_plugin)(struct tep_handle *tep,
416 void tep_set_flag(struct tep_handle *tep, int flag);
417 void tep_clear_flag(struct tep_handle *tep, enum tep_flag flag);
[all …]
Devent-parse.c164 static int cmdline_init(struct tep_handle *tep) in cmdline_init() argument
166 struct cmdline_list *cmdlist = tep->cmdlist; in cmdline_init()
171 cmdlines = malloc(sizeof(*cmdlines) * tep->cmdline_count); in cmdline_init()
185 qsort(cmdlines, tep->cmdline_count, sizeof(*cmdlines), cmdline_cmp); in cmdline_init()
187 tep->cmdlines = cmdlines; in cmdline_init()
188 tep->cmdlist = NULL; in cmdline_init()
193 static const char *find_cmdline(struct tep_handle *tep, int pid) in find_cmdline() argument
201 if (!tep->cmdlines && cmdline_init(tep)) in find_cmdline()
206 comm = bsearch(&key, tep->cmdlines, tep->cmdline_count, in find_cmdline()
207 sizeof(*tep->cmdlines), cmdline_cmp); in find_cmdline()
[all …]
Devent-plugin.c443 load_plugin(struct tep_handle *tep, const char *path, in load_plugin() argument
501 func(tep); in load_plugin()
509 load_plugins_dir(struct tep_handle *tep, const char *suffix, in load_plugins_dir() argument
511 void (*load_plugin)(struct tep_handle *tep, in load_plugins_dir() argument
544 load_plugin(tep, path, name, data); in load_plugins_dir()
566 void tep_load_plugins_hook(struct tep_handle *tep, const char *suffix, in tep_load_plugins_hook() argument
567 void (*load_plugin)(struct tep_handle *tep, in tep_load_plugins_hook() argument
579 if (tep && tep->flags & TEP_DISABLE_PLUGINS) in tep_load_plugins_hook()
582 if (tep) in tep_load_plugins_hook()
583 dir = tep->plugins_dir; in tep_load_plugins_hook()
[all …]
Devent-parse-local.h109 void free_tep_plugin_paths(struct tep_handle *tep);
111 unsigned short data2host2(struct tep_handle *tep, unsigned short data);
112 unsigned int data2host4(struct tep_handle *tep, unsigned int data);
113 unsigned long long data2host8(struct tep_handle *tep, unsigned long long data);
/linux-6.1.9/tools/lib/traceevent/plugins/
Dplugin_kmem.c27 func = tep_find_function(event->tep, val); in call_site_handler()
31 addr = tep_find_function_address(event->tep, val); in call_site_handler()
37 int TEP_PLUGIN_LOADER(struct tep_handle *tep) in TEP_PLUGIN_LOADER() argument
39 tep_register_event_handler(tep, -1, "kmem", "kfree", in TEP_PLUGIN_LOADER()
42 tep_register_event_handler(tep, -1, "kmem", "kmalloc", in TEP_PLUGIN_LOADER()
45 tep_register_event_handler(tep, -1, "kmem", "kmalloc_node", in TEP_PLUGIN_LOADER()
48 tep_register_event_handler(tep, -1, "kmem", "kmem_cache_alloc", in TEP_PLUGIN_LOADER()
51 tep_register_event_handler(tep, -1, "kmem", in TEP_PLUGIN_LOADER()
55 tep_register_event_handler(tep, -1, "kmem", "kmem_cache_free", in TEP_PLUGIN_LOADER()
60 void TEP_PLUGIN_UNLOADER(struct tep_handle *tep) in TEP_PLUGIN_UNLOADER() argument
[all …]
Dplugin_function.c119 static void show_function(struct trace_seq *s, struct tep_handle *tep, in show_function() argument
126 offset = tep_find_function_address(tep, function); in show_function()
134 struct tep_handle *tep = event->tep; in function_handler() local
144 func = tep_find_function(tep, function); in function_handler()
149 parent = tep_find_function(tep, pfunction); in function_handler()
157 show_function(s, tep, func, function); in function_handler()
164 show_function(s, tep, parent, pfunction); in function_handler()
190 long_size = tep_get_long_size(event->tep); in trace_stack_handler()
194 addr = tep_read_number(event->tep, data, long_size); in trace_stack_handler()
200 func = tep_find_function(event->tep, addr); in trace_stack_handler()
[all …]
Dplugin_kvm.c396 if (tep_is_file_bigendian(event->tep) == in kvm_mmu_print_role()
397 tep_is_local_bigendian(event->tep)) { in kvm_mmu_print_role()
452 int TEP_PLUGIN_LOADER(struct tep_handle *tep) in TEP_PLUGIN_LOADER() argument
456 tep_register_event_handler(tep, -1, "kvm", "kvm_exit", in TEP_PLUGIN_LOADER()
459 tep_register_event_handler(tep, -1, "kvm", "kvm_emulate_insn", in TEP_PLUGIN_LOADER()
462 tep_register_event_handler(tep, -1, "kvm", "kvm_nested_vmexit", in TEP_PLUGIN_LOADER()
465 tep_register_event_handler(tep, -1, "kvm", "kvm_nested_vmexit_inject", in TEP_PLUGIN_LOADER()
468 tep_register_event_handler(tep, -1, "kvmmmu", "kvm_mmu_get_page", in TEP_PLUGIN_LOADER()
471 tep_register_event_handler(tep, -1, "kvmmmu", "kvm_mmu_sync_page", in TEP_PLUGIN_LOADER()
474 tep_register_event_handler(tep, -1, in TEP_PLUGIN_LOADER()
[all …]
Dplugin_jbd2.c36 int TEP_PLUGIN_LOADER(struct tep_handle *tep) in TEP_PLUGIN_LOADER() argument
38 tep_register_print_function(tep, in TEP_PLUGIN_LOADER()
45 tep_register_print_function(tep, in TEP_PLUGIN_LOADER()
54 void TEP_PLUGIN_UNLOADER(struct tep_handle *tep) in TEP_PLUGIN_UNLOADER() argument
56 tep_unregister_print_function(tep, process_jbd2_dev_to_name, in TEP_PLUGIN_UNLOADER()
59 tep_unregister_print_function(tep, process_jiffies_to_msecs, in TEP_PLUGIN_UNLOADER()
Dplugin_sched_switch.c50 tep_register_comm(field->event->tep, comm, pid); in write_and_save_comm()
123 int TEP_PLUGIN_LOADER(struct tep_handle *tep) in TEP_PLUGIN_LOADER() argument
125 tep_register_event_handler(tep, -1, "sched", "sched_switch", in TEP_PLUGIN_LOADER()
128 tep_register_event_handler(tep, -1, "sched", "sched_wakeup", in TEP_PLUGIN_LOADER()
131 tep_register_event_handler(tep, -1, "sched", "sched_wakeup_new", in TEP_PLUGIN_LOADER()
136 void TEP_PLUGIN_UNLOADER(struct tep_handle *tep) in TEP_PLUGIN_UNLOADER() argument
138 tep_unregister_event_handler(tep, -1, "sched", "sched_switch", in TEP_PLUGIN_UNLOADER()
141 tep_unregister_event_handler(tep, -1, "sched", "sched_wakeup", in TEP_PLUGIN_UNLOADER()
144 tep_unregister_event_handler(tep, -1, "sched", "sched_wakeup_new", in TEP_PLUGIN_UNLOADER()
Dplugin_hrtimer.c55 int TEP_PLUGIN_LOADER(struct tep_handle *tep) in TEP_PLUGIN_LOADER() argument
57 tep_register_event_handler(tep, -1, in TEP_PLUGIN_LOADER()
61 tep_register_event_handler(tep, -1, "timer", "hrtimer_start", in TEP_PLUGIN_LOADER()
66 void TEP_PLUGIN_UNLOADER(struct tep_handle *tep) in TEP_PLUGIN_UNLOADER() argument
68 tep_unregister_event_handler(tep, -1, in TEP_PLUGIN_UNLOADER()
72 tep_unregister_event_handler(tep, -1, "timer", "hrtimer_start", in TEP_PLUGIN_UNLOADER()
Dplugin_cfg80211.c28 int TEP_PLUGIN_LOADER(struct tep_handle *tep) in TEP_PLUGIN_LOADER() argument
30 tep_register_print_function(tep, in TEP_PLUGIN_LOADER()
39 void TEP_PLUGIN_UNLOADER(struct tep_handle *tep) in TEP_PLUGIN_UNLOADER() argument
41 tep_unregister_print_function(tep, process___le16_to_cpup, in TEP_PLUGIN_UNLOADER()
Dplugin_tlb.c53 int TEP_PLUGIN_LOADER(struct tep_handle *tep) in TEP_PLUGIN_LOADER() argument
55 tep_register_event_handler(tep, -1, "tlb", "tlb_flush", in TEP_PLUGIN_LOADER()
61 void TEP_PLUGIN_UNLOADER(struct tep_handle *tep) in TEP_PLUGIN_UNLOADER() argument
63 tep_unregister_event_handler(tep, -1, in TEP_PLUGIN_UNLOADER()
Dplugin_mac80211.c75 int TEP_PLUGIN_LOADER(struct tep_handle *tep) in TEP_PLUGIN_LOADER() argument
77 tep_register_event_handler(tep, -1, "mac80211", in TEP_PLUGIN_LOADER()
83 void TEP_PLUGIN_UNLOADER(struct tep_handle *tep) in TEP_PLUGIN_UNLOADER() argument
85 tep_unregister_event_handler(tep, -1, "mac80211", in TEP_PLUGIN_UNLOADER()
Dplugin_futex.c112 int TEP_PLUGIN_LOADER(struct tep_handle *tep) in TEP_PLUGIN_LOADER() argument
114 tep_register_event_handler(tep, -1, "syscalls", "sys_enter_futex", in TEP_PLUGIN_LOADER()
119 void TEP_PLUGIN_UNLOADER(struct tep_handle *tep) in TEP_PLUGIN_UNLOADER() argument
121 tep_unregister_event_handler(tep, -1, "syscalls", "sys_enter_futex", in TEP_PLUGIN_UNLOADER()
Dplugin_xen.c123 int TEP_PLUGIN_LOADER(struct tep_handle *tep) in TEP_PLUGIN_LOADER() argument
125 tep_register_print_function(tep, in TEP_PLUGIN_LOADER()
134 void TEP_PLUGIN_UNLOADER(struct tep_handle *tep) in TEP_PLUGIN_UNLOADER() argument
136 tep_unregister_print_function(tep, process_xen_hypercall_name, in TEP_PLUGIN_UNLOADER()
/linux-6.1.9/tools/perf/util/
Ds390-sample-raw.c84 struct cf_trailer_entry *tep) in s390_cpumcfdg_dumptrail() argument
88 te.flags = be64_to_cpu(tep->flags); in s390_cpumcfdg_dumptrail()
89 te.cfvn = be16_to_cpu(tep->cfvn); in s390_cpumcfdg_dumptrail()
90 te.csvn = be16_to_cpu(tep->csvn); in s390_cpumcfdg_dumptrail()
91 te.cpu_speed = be32_to_cpu(tep->cpu_speed); in s390_cpumcfdg_dumptrail()
92 te.timestamp = be64_to_cpu(tep->timestamp); in s390_cpumcfdg_dumptrail()
93 te.progusage1 = be64_to_cpu(tep->progusage1); in s390_cpumcfdg_dumptrail()
94 te.progusage2 = be64_to_cpu(tep->progusage2); in s390_cpumcfdg_dumptrail()
95 te.progusage3 = be64_to_cpu(tep->progusage3); in s390_cpumcfdg_dumptrail()
96 te.tod_base = be64_to_cpu(tep->tod_base); in s390_cpumcfdg_dumptrail()
[all …]
/linux-6.1.9/tools/lib/traceevent/Documentation/
Dlibtraceevent-file_endian.txt7 raw data being accessed by the tep handler.
27 being accessed by the tep handler. The _tep_ argument is trace event parser
31 accessed by the tep handler. The _tep_ argument is trace event parser context.
49 struct tep_handle *tep = tep_alloc();
51 tep_set_file_bigendian(tep, TEP_LITTLE_ENDIAN);
53 if (tep_is_file_bigendian(tep)) {
Dlibtraceevent-handle.txt28 The _tep_alloc()_ function allocates and initializes the tep context.
58 struct tep_handle *tep = tep_alloc();
60 int ref = tep_get_ref(tep);
61 tep_ref(tep);
62 if ( (ref+1) != tep_get_ref(tep)) {
65 tep_unref(tep);
67 tep_free(tep);
Dlibtraceevent-strerror.txt6 tep_strerror - Returns a string describing regular errno and tep error number.
19 The _tep_strerror()_ function converts tep error number into a human
22 errno, defined in errno.h, or a tep error number. The string, describing this
43 struct tep_handle *tep = tep_alloc();
47 if (tep == NULL) {
48 tep_strerror(tep, TEP_ERRNO__MEM_ALLOC_FAILED, buf, 32);
Dlibtraceevent-plugins.txt17 void (pass:[*]_load_plugin_)(struct tep_handle pass:[*]tep,
72 struct tep_handle *tep = tep_alloc();
74 struct tep_plugin_list *plugins = tep_load_plugins(tep);
79 tep_unload_plugins(plugins, tep);
81 void print_plugin(struct tep_handle *tep, const char *path,
87 tep_load_plugins_hook(tep, ".so", print_plugin, NULL);
Dlibtraceevent-field_find.txt46 void get_htimer_info(struct tep_handle *tep, struct tep_record *record)
54 event = tep_find_event_by_name(tep, "timer", "hrtimer_start");
61 pid = tep_read_number(tep, record->data + field->offset,
70 softexpires = tep_read_number(tep, record->data + field->offset,
80 mode = tep_read_number(tep, record->data + field->offset,
Dasciidoc.conf30 ifndef::tep-asciidoc-no-roff[]
45 endif::tep-asciidoc-no-roff[]
47 ifdef::tep-asciidoc-no-roff[]
66 endif::tep-asciidoc-no-roff[]
Dlibtraceevent-record_parse.txt77 struct tep_handle *tep = tep_alloc();
83 data = tep_data_type(tep, record);
88 data = tep_data_pid(tep, record);
93 data = tep_data_preempt_count(tep, record);
98 data = tep_data_flags(tep, record);
/linux-6.1.9/tools/lib/perf/Documentation/
Dasciidoc.conf30 ifndef::tep-asciidoc-no-roff[]
45 endif::tep-asciidoc-no-roff[]
47 ifdef::tep-asciidoc-no-roff[]
66 endif::tep-asciidoc-no-roff[]

123