/Linux-v4.19/tools/perf/util/ |
D | trace-event-read.c | 99 static unsigned int read4(struct tep_handle *pevent) in read4() argument 105 return __data2host4(pevent, data); in read4() 108 static unsigned long long read8(struct tep_handle *pevent) in read8() argument 114 return __data2host8(pevent, data); in read8() 161 static int read_proc_kallsyms(struct tep_handle *pevent) in read_proc_kallsyms() argument 165 size = read4(pevent); in read_proc_kallsyms() 184 static int read_ftrace_printk(struct tep_handle *pevent) in read_ftrace_printk() argument 190 size = read4(pevent); in read_ftrace_printk() 205 parse_ftrace_printk(pevent, buf, size); in read_ftrace_printk() 211 static int read_header_files(struct tep_handle *pevent) in read_header_files() argument [all …]
|
D | trace-event.c | 31 struct tep_handle *pevent = tep_alloc(); in trace_event__init() local 33 if (pevent) { in trace_event__init() 34 t->plugin_list = tep_load_plugins(pevent); in trace_event__init() 35 t->pevent = pevent; in trace_event__init() 38 return pevent ? 0 : -1; in trace_event__init() 44 struct tep_handle *pevent; in trace_event__init2() local 49 pevent = tevent.pevent; in trace_event__init2() 50 tep_set_flag(pevent, TEP_NSEC_OUTPUT); in trace_event__init2() 51 tep_set_file_bigendian(pevent, be); in trace_event__init2() 52 tep_set_host_bigendian(pevent, be); in trace_event__init2() [all …]
|
D | trace-event-parse.c | 35 struct tep_handle *pevent = context->pevent; in get_common_field() local 40 if (!pevent->events) in get_common_field() 43 event = pevent->events[0]; in get_common_field() 51 return tep_read_number(pevent, context->event_data + *offset, *size); in get_common_field() 113 return tep_read_number(event->pevent, ptr, size); in read_size() 139 void parse_ftrace_printk(struct tep_handle *pevent, in parse_ftrace_printk() argument 160 tep_register_print_string(pevent, printk, addr); in parse_ftrace_printk() 164 void parse_saved_cmdline(struct tep_handle *pevent, in parse_saved_cmdline() argument 175 tep_register_comm(pevent, comm, pid); in parse_saved_cmdline() 180 int parse_ftrace_file(struct tep_handle *pevent, char *buf, unsigned long size) in parse_ftrace_file() argument [all …]
|
D | trace-event.h | 16 struct tep_handle *pevent; member 37 int parse_ftrace_file(struct tep_handle *pevent, char *buf, unsigned long size); 38 int parse_event_file(struct tep_handle *pevent, 44 void parse_proc_kallsyms(struct tep_handle *pevent, char *file, unsigned int size); 45 void parse_ftrace_printk(struct tep_handle *pevent, char *file, unsigned int size); 46 void parse_saved_cmdline(struct tep_handle *pevent, char *file, unsigned int size); 50 struct event_format *trace_find_next_event(struct tep_handle *pevent, 86 int (*generate_script) (struct tep_handle *pevent, const char *outfile); 97 struct tep_handle *pevent; member
|
D | python.c | 126 static PyObject *pyrf_mmap_event__repr(struct pyrf_event *pevent) in pyrf_mmap_event__repr() argument 134 pevent->event.mmap.pid, pevent->event.mmap.tid, in pyrf_mmap_event__repr() 135 pevent->event.mmap.start, pevent->event.mmap.len, in pyrf_mmap_event__repr() 136 pevent->event.mmap.pgoff, pevent->event.mmap.filename) < 0) { in pyrf_mmap_event__repr() 168 static PyObject *pyrf_task_event__repr(struct pyrf_event *pevent) in pyrf_task_event__repr() argument 172 pevent->event.header.type == PERF_RECORD_FORK ? "fork" : "exit", in pyrf_task_event__repr() 173 pevent->event.fork.pid, in pyrf_task_event__repr() 174 pevent->event.fork.ppid, in pyrf_task_event__repr() 175 pevent->event.fork.tid, in pyrf_task_event__repr() 176 pevent->event.fork.ptid, in pyrf_task_event__repr() [all …]
|
D | trace-event-scripting.c | 69 static int python_generate_script_unsupported(struct tep_handle *pevent in python_generate_script_unsupported() 133 static int perl_generate_script_unsupported(struct tep_handle *pevent in perl_generate_script_unsupported()
|
/Linux-v4.19/tools/lib/traceevent/ |
D | event-parse.h | 109 typedef int (*tep_plugin_load_func)(struct tep_handle *pevent); 110 typedef int (*tep_plugin_unload_func)(struct tep_handle *pevent); 323 struct tep_handle *pevent; member 438 struct plugin_list *tep_load_plugins(struct tep_handle *pevent); 440 struct tep_handle *pevent); 535 static inline void tep_set_flag(struct tep_handle *pevent, int flag) in tep_set_flag() argument 537 pevent->flags |= flag; in tep_set_flag() 541 __data2host2(struct tep_handle *pevent, unsigned short data) in __data2host2() argument 545 if (pevent->host_bigendian == pevent->file_bigendian) in __data2host2() 555 __data2host4(struct tep_handle *pevent, unsigned int data) in __data2host4() argument [all …]
|
D | plugin_kmem.c | 41 func = tep_find_function(event->pevent, val); in call_site_handler() 45 addr = tep_find_function_address(event->pevent, val); in call_site_handler() 51 int TEP_PLUGIN_LOADER(struct tep_handle *pevent) in TEP_PLUGIN_LOADER() argument 53 tep_register_event_handler(pevent, -1, "kmem", "kfree", in TEP_PLUGIN_LOADER() 56 tep_register_event_handler(pevent, -1, "kmem", "kmalloc", in TEP_PLUGIN_LOADER() 59 tep_register_event_handler(pevent, -1, "kmem", "kmalloc_node", in TEP_PLUGIN_LOADER() 62 tep_register_event_handler(pevent, -1, "kmem", "kmem_cache_alloc", in TEP_PLUGIN_LOADER() 65 tep_register_event_handler(pevent, -1, "kmem", in TEP_PLUGIN_LOADER() 69 tep_register_event_handler(pevent, -1, "kmem", "kmem_cache_free", in TEP_PLUGIN_LOADER() 74 void TEP_PLUGIN_UNLOADER(struct tep_handle *pevent) in TEP_PLUGIN_UNLOADER() argument [all …]
|
D | event-parse.c | 149 static int cmdline_init(struct tep_handle *pevent) in cmdline_init() argument 151 struct cmdline_list *cmdlist = pevent->cmdlist; in cmdline_init() 156 cmdlines = malloc(sizeof(*cmdlines) * pevent->cmdline_count); in cmdline_init() 170 qsort(cmdlines, pevent->cmdline_count, sizeof(*cmdlines), cmdline_cmp); in cmdline_init() 172 pevent->cmdlines = cmdlines; in cmdline_init() 173 pevent->cmdlist = NULL; in cmdline_init() 178 static const char *find_cmdline(struct tep_handle *pevent, int pid) in find_cmdline() argument 186 if (!pevent->cmdlines && cmdline_init(pevent)) in find_cmdline() 191 comm = bsearch(&key, pevent->cmdlines, pevent->cmdline_count, in find_cmdline() 192 sizeof(*pevent->cmdlines), cmdline_cmp); in find_cmdline() [all …]
|
D | plugin_kvm.c | 391 if (tep_is_file_bigendian(event->pevent) == in kvm_mmu_print_role() 392 tep_is_host_bigendian(event->pevent)) { in kvm_mmu_print_role() 447 int TEP_PLUGIN_LOADER(struct tep_handle *pevent) in TEP_PLUGIN_LOADER() argument 451 tep_register_event_handler(pevent, -1, "kvm", "kvm_exit", in TEP_PLUGIN_LOADER() 454 tep_register_event_handler(pevent, -1, "kvm", "kvm_emulate_insn", in TEP_PLUGIN_LOADER() 457 tep_register_event_handler(pevent, -1, "kvm", "kvm_nested_vmexit", in TEP_PLUGIN_LOADER() 460 tep_register_event_handler(pevent, -1, "kvm", "kvm_nested_vmexit_inject", in TEP_PLUGIN_LOADER() 463 tep_register_event_handler(pevent, -1, "kvmmmu", "kvm_mmu_get_page", in TEP_PLUGIN_LOADER() 466 tep_register_event_handler(pevent, -1, "kvmmmu", "kvm_mmu_sync_page", in TEP_PLUGIN_LOADER() 469 tep_register_event_handler(pevent, -1, in TEP_PLUGIN_LOADER() [all …]
|
D | plugin_jbd2.c | 50 int TEP_PLUGIN_LOADER(struct tep_handle *pevent) in TEP_PLUGIN_LOADER() argument 52 tep_register_print_function(pevent, in TEP_PLUGIN_LOADER() 59 tep_register_print_function(pevent, in TEP_PLUGIN_LOADER() 68 void TEP_PLUGIN_UNLOADER(struct tep_handle *pevent) in TEP_PLUGIN_UNLOADER() argument 70 tep_unregister_print_function(pevent, process_jbd2_dev_to_name, in TEP_PLUGIN_UNLOADER() 73 tep_unregister_print_function(pevent, process_jiffies_to_msecs, in TEP_PLUGIN_UNLOADER()
|
D | event-plugin.c | 270 load_plugin(struct tep_handle *pevent, const char *path, in load_plugin() argument 317 func(pevent); in load_plugin() 325 load_plugins_dir(struct tep_handle *pevent, const char *suffix, in load_plugins_dir() argument 327 void (*load_plugin)(struct tep_handle *pevent, in load_plugins_dir() argument 360 load_plugin(pevent, path, name, data); in load_plugins_dir() 367 load_plugins(struct tep_handle *pevent, const char *suffix, in load_plugins() argument 368 void (*load_plugin)(struct tep_handle *pevent, in load_plugins() argument 379 if (pevent->flags & TEP_DISABLE_PLUGINS) in load_plugins() 387 if (!(pevent->flags & TEP_DISABLE_SYS_PLUGINS)) in load_plugins() 388 load_plugins_dir(pevent, suffix, PLUGIN_DIR, in load_plugins() [all …]
|
D | plugin_sched_switch.c | 64 tep_register_comm(field->event->pevent, comm, pid); in write_and_save_comm() 137 int TEP_PLUGIN_LOADER(struct tep_handle *pevent) in TEP_PLUGIN_LOADER() argument 139 tep_register_event_handler(pevent, -1, "sched", "sched_switch", in TEP_PLUGIN_LOADER() 142 tep_register_event_handler(pevent, -1, "sched", "sched_wakeup", in TEP_PLUGIN_LOADER() 145 tep_register_event_handler(pevent, -1, "sched", "sched_wakeup_new", in TEP_PLUGIN_LOADER() 150 void TEP_PLUGIN_UNLOADER(struct tep_handle *pevent) in TEP_PLUGIN_UNLOADER() argument 152 tep_unregister_event_handler(pevent, -1, "sched", "sched_switch", in TEP_PLUGIN_UNLOADER() 155 tep_unregister_event_handler(pevent, -1, "sched", "sched_wakeup", in TEP_PLUGIN_UNLOADER() 158 tep_unregister_event_handler(pevent, -1, "sched", "sched_wakeup_new", in TEP_PLUGIN_UNLOADER()
|
D | plugin_hrtimer.c | 69 int TEP_PLUGIN_LOADER(struct tep_handle *pevent) in TEP_PLUGIN_LOADER() argument 71 tep_register_event_handler(pevent, -1, in TEP_PLUGIN_LOADER() 75 tep_register_event_handler(pevent, -1, "timer", "hrtimer_start", in TEP_PLUGIN_LOADER() 80 void TEP_PLUGIN_UNLOADER(struct tep_handle *pevent) in TEP_PLUGIN_UNLOADER() argument 82 tep_unregister_event_handler(pevent, -1, in TEP_PLUGIN_UNLOADER() 86 tep_unregister_event_handler(pevent, -1, "timer", "hrtimer_start", in TEP_PLUGIN_UNLOADER()
|
D | plugin_function.c | 128 struct tep_handle *pevent = event->pevent; in function_handler() local 138 func = tep_find_function(pevent, function); in function_handler() 143 parent = tep_find_function(pevent, pfunction); in function_handler() 166 int TEP_PLUGIN_LOADER(struct tep_handle *pevent) in TEP_PLUGIN_LOADER() argument 168 tep_register_event_handler(pevent, -1, "ftrace", "function", in TEP_PLUGIN_LOADER() 176 void TEP_PLUGIN_UNLOADER(struct tep_handle *pevent) in TEP_PLUGIN_UNLOADER() argument 180 tep_unregister_event_handler(pevent, -1, "ftrace", "function", in TEP_PLUGIN_UNLOADER()
|
D | plugin_cfg80211.c | 28 int TEP_PLUGIN_LOADER(struct tep_handle *pevent) in TEP_PLUGIN_LOADER() argument 30 tep_register_print_function(pevent, in TEP_PLUGIN_LOADER() 39 void TEP_PLUGIN_UNLOADER(struct tep_handle *pevent) in TEP_PLUGIN_UNLOADER() argument 41 tep_unregister_print_function(pevent, process___le16_to_cpup, in TEP_PLUGIN_UNLOADER()
|
D | plugin_mac80211.c | 89 int TEP_PLUGIN_LOADER(struct tep_handle *pevent) in TEP_PLUGIN_LOADER() argument 91 tep_register_event_handler(pevent, -1, "mac80211", in TEP_PLUGIN_LOADER() 97 void TEP_PLUGIN_UNLOADER(struct tep_handle *pevent) in TEP_PLUGIN_UNLOADER() argument 99 tep_unregister_event_handler(pevent, -1, "mac80211", in TEP_PLUGIN_UNLOADER()
|
D | plugin_xen.c | 122 int TEP_PLUGIN_LOADER(struct tep_handle *pevent) in TEP_PLUGIN_LOADER() argument 124 tep_register_print_function(pevent, in TEP_PLUGIN_LOADER() 133 void TEP_PLUGIN_UNLOADER(struct tep_handle *pevent) in TEP_PLUGIN_UNLOADER() argument 135 tep_unregister_print_function(pevent, process_xen_hypercall_name, in TEP_PLUGIN_UNLOADER()
|
D | parse-filter.c | 156 filter_type->event = tep_find_event(filter->pevent, id); in add_filter_type() 168 struct event_filter *tep_filter_alloc(struct tep_handle *pevent) in tep_filter_alloc() argument 177 filter->pevent = pevent; in tep_filter_alloc() 178 tep_ref(pevent); in tep_filter_alloc() 258 find_event(struct tep_handle *pevent, struct event_list **events, in find_event() argument 301 for (i = 0; i < pevent->nr_events; i++) { in find_event() 302 event = pevent->events[i]; in find_event() 1259 struct tep_handle *pevent = filter->pevent; in tep_filter_add_filter_str() local 1315 ret = find_event(pevent, &events, strim(sys_name), strim(event_name)); in tep_filter_add_filter_str() 1336 if (ret >= 0 && pevent->test_filters) { in tep_filter_add_filter_str() [all …]
|
D | plugin_scsi.c | 416 int TEP_PLUGIN_LOADER(struct tep_handle *pevent) in TEP_PLUGIN_LOADER() argument 418 tep_register_print_function(pevent, in TEP_PLUGIN_LOADER() 429 void TEP_PLUGIN_UNLOADER(struct tep_handle *pevent) in TEP_PLUGIN_UNLOADER() argument 431 tep_unregister_print_function(pevent, process_scsi_trace_parse_cdb, in TEP_PLUGIN_UNLOADER()
|
/Linux-v4.19/drivers/oprofile/ |
D | oprofile_perf.c | 77 struct perf_event *pevent; in op_create_counter() local 82 pevent = perf_event_create_kernel_counter(&counter_config[event].attr, in op_create_counter() 86 if (IS_ERR(pevent)) in op_create_counter() 87 return PTR_ERR(pevent); in op_create_counter() 89 if (pevent->state != PERF_EVENT_STATE_ACTIVE) { in op_create_counter() 90 perf_event_release_kernel(pevent); in op_create_counter() 96 per_cpu(perf_events, cpu)[event] = pevent; in op_create_counter() 103 struct perf_event *pevent = per_cpu(perf_events, cpu)[event]; in op_destroy_counter() local 105 if (pevent) { in op_destroy_counter() 106 perf_event_release_kernel(pevent); in op_destroy_counter()
|
/Linux-v4.19/arch/x86/kernel/ |
D | kgdb.c | 247 struct perf_event **pevent; in hw_break_reserve_slot() local 254 pevent = per_cpu_ptr(breakinfo[breakno].pev, cpu); in hw_break_reserve_slot() 255 if (dbg_reserve_bp_slot(*pevent)) in hw_break_reserve_slot() 266 pevent = per_cpu_ptr(breakinfo[breakno].pev, cpu); in hw_break_reserve_slot() 267 dbg_release_bp_slot(*pevent); in hw_break_reserve_slot() 274 struct perf_event **pevent; in hw_break_release_slot() local 281 pevent = per_cpu_ptr(breakinfo[breakno].pev, cpu); in hw_break_release_slot() 282 if (dbg_release_bp_slot(*pevent)) in hw_break_release_slot() 662 struct perf_event **pevent; in kgdb_arch_late() local 686 pevent = per_cpu_ptr(breakinfo[i].pev, cpu); in kgdb_arch_late() [all …]
|
/Linux-v4.19/drivers/net/wireless/rsi/ |
D | rsi_common.h | 27 static inline int rsi_init_event(struct rsi_event *pevent) in rsi_init_event() argument 29 atomic_set(&pevent->event_condition, 1); in rsi_init_event() 30 init_waitqueue_head(&pevent->event_queue); in rsi_init_event()
|
/Linux-v4.19/fs/notify/fanotify/ |
D | fanotify.c | 160 struct fanotify_perm_event_info *pevent; in fanotify_alloc_event() local 162 pevent = kmem_cache_alloc(fanotify_perm_event_cachep, gfp); in fanotify_alloc_event() 163 if (!pevent) in fanotify_alloc_event() 165 event = &pevent->fae; in fanotify_alloc_event() 166 pevent->response = 0; in fanotify_alloc_event()
|
/Linux-v4.19/drivers/gpu/drm/nouveau/nvkm/engine/sw/ |
D | nvsw.c | 40 struct nvkm_event **pevent) in nvkm_nvsw_ntfy_() argument 45 *pevent = &nvsw->chan->event; in nvkm_nvsw_ntfy_()
|