Home
last modified time | relevance | path

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

123

/Linux-v5.4/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.h67 typedef int (*tep_plugin_load_func)(struct tep_handle *tep);
68 typedef int (*tep_plugin_unload_func)(struct tep_handle *tep);
281 struct tep_handle *tep; member
396 struct tep_plugin_list *tep_load_plugins(struct tep_handle *tep);
398 struct tep_handle *tep);
411 void tep_set_flag(struct tep_handle *tep, int flag);
412 void tep_clear_flag(struct tep_handle *tep, enum tep_flag flag);
413 bool tep_test_flag(struct tep_handle *tep, enum tep_flag flags);
433 int tep_set_function_resolver(struct tep_handle *tep,
435 void tep_reset_function_resolver(struct tep_handle *tep);
[all …]
Devent-parse.c170 static int cmdline_init(struct tep_handle *tep) in cmdline_init() argument
172 struct cmdline_list *cmdlist = tep->cmdlist; in cmdline_init()
177 cmdlines = malloc(sizeof(*cmdlines) * tep->cmdline_count); in cmdline_init()
191 qsort(cmdlines, tep->cmdline_count, sizeof(*cmdlines), cmdline_cmp); in cmdline_init()
193 tep->cmdlines = cmdlines; in cmdline_init()
194 tep->cmdlist = NULL; in cmdline_init()
199 static const char *find_cmdline(struct tep_handle *tep, int pid) in find_cmdline() argument
207 if (!tep->cmdlines && cmdline_init(tep)) in find_cmdline()
212 comm = bsearch(&key, tep->cmdlines, tep->cmdline_count, in find_cmdline()
213 sizeof(*tep->cmdlines), cmdline_cmp); in find_cmdline()
[all …]
Devent-plugin.c272 load_plugin(struct tep_handle *tep, const char *path, in load_plugin() argument
319 func(tep); in load_plugin()
327 load_plugins_dir(struct tep_handle *tep, const char *suffix, in load_plugins_dir() argument
329 void (*load_plugin)(struct tep_handle *tep, in load_plugins_dir() argument
362 load_plugin(tep, path, name, data); in load_plugins_dir()
369 load_plugins(struct tep_handle *tep, const char *suffix, in load_plugins() argument
370 void (*load_plugin)(struct tep_handle *tep, in load_plugins() argument
381 if (tep->flags & TEP_DISABLE_PLUGINS) in load_plugins()
389 if (!(tep->flags & TEP_DISABLE_SYS_PLUGINS)) in load_plugins()
390 load_plugins_dir(tep, suffix, PLUGIN_DIR, in load_plugins()
[all …]
Devent-parse-local.h89 unsigned short tep_data2host2(struct tep_handle *tep, unsigned short data);
90 unsigned int tep_data2host4(struct tep_handle *tep, unsigned int data);
91 unsigned long long tep_data2host8(struct tep_handle *tep, unsigned long long data);
Dparse-filter.c157 filter_type->event = tep_find_event(filter->tep, id); in add_filter_type()
169 struct tep_event_filter *tep_filter_alloc(struct tep_handle *tep) in tep_filter_alloc() argument
178 filter->tep = tep; in tep_filter_alloc()
179 tep_ref(tep); in tep_filter_alloc()
259 find_event(struct tep_handle *tep, struct event_list **events, in find_event() argument
302 for (i = 0; i < tep->nr_events; i++) { in find_event()
303 event = tep->events[i]; in find_event()
1260 struct tep_handle *tep = filter->tep; in tep_filter_add_filter_str() local
1316 ret = find_event(tep, &events, strim(sys_name), strim(event_name)); in tep_filter_add_filter_str()
1337 if (ret >= 0 && tep->test_filters) { in tep_filter_add_filter_str()
[all …]
/Linux-v5.4/tools/lib/traceevent/plugins/
Dplugin_kmem.c42 func = tep_find_function(event->tep, val); in call_site_handler()
46 addr = tep_find_function_address(event->tep, val); in call_site_handler()
52 int TEP_PLUGIN_LOADER(struct tep_handle *tep) in TEP_PLUGIN_LOADER() argument
54 tep_register_event_handler(tep, -1, "kmem", "kfree", in TEP_PLUGIN_LOADER()
57 tep_register_event_handler(tep, -1, "kmem", "kmalloc", in TEP_PLUGIN_LOADER()
60 tep_register_event_handler(tep, -1, "kmem", "kmalloc_node", in TEP_PLUGIN_LOADER()
63 tep_register_event_handler(tep, -1, "kmem", "kmem_cache_alloc", in TEP_PLUGIN_LOADER()
66 tep_register_event_handler(tep, -1, "kmem", in TEP_PLUGIN_LOADER()
70 tep_register_event_handler(tep, -1, "kmem", "kmem_cache_free", in TEP_PLUGIN_LOADER()
75 void TEP_PLUGIN_UNLOADER(struct tep_handle *tep) in TEP_PLUGIN_UNLOADER() argument
[all …]
Dplugin_kvm.c392 if (tep_is_file_bigendian(event->tep) == in kvm_mmu_print_role()
393 tep_is_local_bigendian(event->tep)) { in kvm_mmu_print_role()
448 int TEP_PLUGIN_LOADER(struct tep_handle *tep) in TEP_PLUGIN_LOADER() argument
452 tep_register_event_handler(tep, -1, "kvm", "kvm_exit", in TEP_PLUGIN_LOADER()
455 tep_register_event_handler(tep, -1, "kvm", "kvm_emulate_insn", in TEP_PLUGIN_LOADER()
458 tep_register_event_handler(tep, -1, "kvm", "kvm_nested_vmexit", in TEP_PLUGIN_LOADER()
461 tep_register_event_handler(tep, -1, "kvm", "kvm_nested_vmexit_inject", in TEP_PLUGIN_LOADER()
464 tep_register_event_handler(tep, -1, "kvmmmu", "kvm_mmu_get_page", in TEP_PLUGIN_LOADER()
467 tep_register_event_handler(tep, -1, "kvmmmu", "kvm_mmu_sync_page", in TEP_PLUGIN_LOADER()
470 tep_register_event_handler(tep, -1, in TEP_PLUGIN_LOADER()
[all …]
Dplugin_jbd2.c51 int TEP_PLUGIN_LOADER(struct tep_handle *tep) in TEP_PLUGIN_LOADER() argument
53 tep_register_print_function(tep, in TEP_PLUGIN_LOADER()
60 tep_register_print_function(tep, in TEP_PLUGIN_LOADER()
69 void TEP_PLUGIN_UNLOADER(struct tep_handle *tep) in TEP_PLUGIN_UNLOADER() argument
71 tep_unregister_print_function(tep, process_jbd2_dev_to_name, in TEP_PLUGIN_UNLOADER()
74 tep_unregister_print_function(tep, process_jiffies_to_msecs, in TEP_PLUGIN_UNLOADER()
Dplugin_sched_switch.c65 tep_register_comm(field->event->tep, comm, pid); in write_and_save_comm()
138 int TEP_PLUGIN_LOADER(struct tep_handle *tep) in TEP_PLUGIN_LOADER() argument
140 tep_register_event_handler(tep, -1, "sched", "sched_switch", in TEP_PLUGIN_LOADER()
143 tep_register_event_handler(tep, -1, "sched", "sched_wakeup", in TEP_PLUGIN_LOADER()
146 tep_register_event_handler(tep, -1, "sched", "sched_wakeup_new", in TEP_PLUGIN_LOADER()
151 void TEP_PLUGIN_UNLOADER(struct tep_handle *tep) in TEP_PLUGIN_UNLOADER() argument
153 tep_unregister_event_handler(tep, -1, "sched", "sched_switch", in TEP_PLUGIN_UNLOADER()
156 tep_unregister_event_handler(tep, -1, "sched", "sched_wakeup", in TEP_PLUGIN_UNLOADER()
159 tep_unregister_event_handler(tep, -1, "sched", "sched_wakeup_new", in TEP_PLUGIN_UNLOADER()
Dplugin_hrtimer.c70 int TEP_PLUGIN_LOADER(struct tep_handle *tep) in TEP_PLUGIN_LOADER() argument
72 tep_register_event_handler(tep, -1, in TEP_PLUGIN_LOADER()
76 tep_register_event_handler(tep, -1, "timer", "hrtimer_start", in TEP_PLUGIN_LOADER()
81 void TEP_PLUGIN_UNLOADER(struct tep_handle *tep) in TEP_PLUGIN_UNLOADER() argument
83 tep_unregister_event_handler(tep, -1, in TEP_PLUGIN_UNLOADER()
87 tep_unregister_event_handler(tep, -1, "timer", "hrtimer_start", in TEP_PLUGIN_UNLOADER()
Dplugin_function.c129 struct tep_handle *tep = event->tep; in function_handler() local
139 func = tep_find_function(tep, function); in function_handler()
144 parent = tep_find_function(tep, pfunction); in function_handler()
167 int TEP_PLUGIN_LOADER(struct tep_handle *tep) in TEP_PLUGIN_LOADER() argument
169 tep_register_event_handler(tep, -1, "ftrace", "function", in TEP_PLUGIN_LOADER()
177 void TEP_PLUGIN_UNLOADER(struct tep_handle *tep) in TEP_PLUGIN_UNLOADER() argument
181 tep_unregister_event_handler(tep, -1, "ftrace", "function", 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_mac80211.c90 int TEP_PLUGIN_LOADER(struct tep_handle *tep) in TEP_PLUGIN_LOADER() argument
92 tep_register_event_handler(tep, -1, "mac80211", in TEP_PLUGIN_LOADER()
98 void TEP_PLUGIN_UNLOADER(struct tep_handle *tep) in TEP_PLUGIN_UNLOADER() argument
100 tep_unregister_event_handler(tep, -1, "mac80211", 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-v5.4/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-v5.4/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-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);
Dlibtraceevent-commands.txt96 struct tep_handle *tep = tep_alloc();
98 ret = tep_register_comm(tep, "ls", ls_pid);
100 ret = tep_override_comm(tep, "ls", ls_pid);
105 if (tep_is_pid_registered(tep, ls_pid) == 0) {
109 const char *comm = tep_data_comm_from_pid(tep, ls_pid);
115 struct cmdline *cmd = tep_data_pid_from_comm(tep, "ls", NULL);
117 pid = tep_cmdline_pid(tep, cmd);
119 cmd = tep_data_pid_from_comm(tep, "ls", cmd);
Dlibtraceevent-event_find.txt48 struct tep_handle *tep = tep_alloc();
52 event = tep_find_event(tep, 1857);
57 event = tep_find_event_by_name(tep, "kvm", "kvm_exit");
64 struct tep_event *event = tep_find_event_by_record(tep, record);
Dlibtraceevent-host_endian.txt59 struct tep_handle *tep = tep_alloc();
62 tep_set_local_bigendian(tep, TEP_BIG_ENDIAN);
64 tep_set_local_bigendian(tep, TEP_LITTLE_ENDIAN);
66 if (tep_is_local_bigendian(tep))

123