/linux-4.4.14/tools/lib/traceevent/ |
D | event-parse.h | 101 struct pevent; 109 typedef int (*pevent_plugin_load_func)(struct pevent *pevent); 110 typedef int (*pevent_plugin_unload_func)(struct pevent *pevent); 325 struct pevent *pevent; member 440 struct plugin_list *traceevent_load_plugins(struct pevent *pevent); 442 struct pevent *pevent); 462 struct pevent { struct 537 static inline void pevent_set_flag(struct pevent *pevent, int flag) in pevent_set_flag() argument 539 pevent->flags |= flag; in pevent_set_flag() 543 __data2host2(struct pevent *pevent, unsigned short data) in __data2host2() argument [all …]
|
D | plugin_kmem.c | 41 func = pevent_find_function(event->pevent, val); in call_site_handler() 45 addr = pevent_find_function_address(event->pevent, val); in call_site_handler() 51 int PEVENT_PLUGIN_LOADER(struct pevent *pevent) in PEVENT_PLUGIN_LOADER() argument 53 pevent_register_event_handler(pevent, -1, "kmem", "kfree", in PEVENT_PLUGIN_LOADER() 56 pevent_register_event_handler(pevent, -1, "kmem", "kmalloc", in PEVENT_PLUGIN_LOADER() 59 pevent_register_event_handler(pevent, -1, "kmem", "kmalloc_node", in PEVENT_PLUGIN_LOADER() 62 pevent_register_event_handler(pevent, -1, "kmem", "kmem_cache_alloc", in PEVENT_PLUGIN_LOADER() 65 pevent_register_event_handler(pevent, -1, "kmem", in PEVENT_PLUGIN_LOADER() 69 pevent_register_event_handler(pevent, -1, "kmem", "kmem_cache_free", in PEVENT_PLUGIN_LOADER() 74 void PEVENT_PLUGIN_UNLOADER(struct pevent *pevent) in PEVENT_PLUGIN_UNLOADER() argument [all …]
|
D | event-parse.c | 160 static int cmdline_init(struct pevent *pevent) in cmdline_init() argument 162 struct cmdline_list *cmdlist = pevent->cmdlist; in cmdline_init() 167 cmdlines = malloc(sizeof(*cmdlines) * pevent->cmdline_count); in cmdline_init() 181 qsort(cmdlines, pevent->cmdline_count, sizeof(*cmdlines), cmdline_cmp); in cmdline_init() 183 pevent->cmdlines = cmdlines; in cmdline_init() 184 pevent->cmdlist = NULL; in cmdline_init() 189 static const char *find_cmdline(struct pevent *pevent, int pid) in find_cmdline() argument 197 if (!pevent->cmdlines && cmdline_init(pevent)) in find_cmdline() 202 comm = bsearch(&key, pevent->cmdlines, pevent->cmdline_count, in find_cmdline() 203 sizeof(*pevent->cmdlines), cmdline_cmp); in find_cmdline() [all …]
|
D | event-plugin.c | 284 load_plugin(struct pevent *pevent, const char *path, in load_plugin() argument 334 func(pevent); in load_plugin() 342 load_plugins_dir(struct pevent *pevent, const char *suffix, in load_plugins_dir() argument 344 void (*load_plugin)(struct pevent *pevent, in load_plugins_dir() argument 377 load_plugin(pevent, path, name, data); in load_plugins_dir() 384 load_plugins(struct pevent *pevent, const char *suffix, in load_plugins() argument 385 void (*load_plugin)(struct pevent *pevent, in load_plugins() argument 395 if (pevent->flags & PEVENT_DISABLE_PLUGINS) in load_plugins() 403 if (!(pevent->flags & PEVENT_DISABLE_SYS_PLUGINS)) in load_plugins() 404 load_plugins_dir(pevent, suffix, PLUGIN_DIR, in load_plugins() [all …]
|
D | plugin_jbd2.c | 50 int PEVENT_PLUGIN_LOADER(struct pevent *pevent) in PEVENT_PLUGIN_LOADER() argument 52 pevent_register_print_function(pevent, in PEVENT_PLUGIN_LOADER() 59 pevent_register_print_function(pevent, in PEVENT_PLUGIN_LOADER() 68 void PEVENT_PLUGIN_UNLOADER(struct pevent *pevent) in PEVENT_PLUGIN_UNLOADER() argument 70 pevent_unregister_print_function(pevent, process_jbd2_dev_to_name, in PEVENT_PLUGIN_UNLOADER() 73 pevent_unregister_print_function(pevent, process_jiffies_to_msecs, in PEVENT_PLUGIN_UNLOADER()
|
D | plugin_hrtimer.c | 69 int PEVENT_PLUGIN_LOADER(struct pevent *pevent) in PEVENT_PLUGIN_LOADER() argument 71 pevent_register_event_handler(pevent, -1, in PEVENT_PLUGIN_LOADER() 75 pevent_register_event_handler(pevent, -1, "timer", "hrtimer_start", in PEVENT_PLUGIN_LOADER() 80 void PEVENT_PLUGIN_UNLOADER(struct pevent *pevent) in PEVENT_PLUGIN_UNLOADER() argument 82 pevent_unregister_event_handler(pevent, -1, in PEVENT_PLUGIN_UNLOADER() 86 pevent_unregister_event_handler(pevent, -1, "timer", "hrtimer_start", in PEVENT_PLUGIN_UNLOADER()
|
D | plugin_kvm.c | 391 if (pevent_is_file_bigendian(event->pevent) == in kvm_mmu_print_role() 392 pevent_is_host_bigendian(event->pevent)) { in kvm_mmu_print_role() 447 int PEVENT_PLUGIN_LOADER(struct pevent *pevent) in PEVENT_PLUGIN_LOADER() argument 451 pevent_register_event_handler(pevent, -1, "kvm", "kvm_exit", in PEVENT_PLUGIN_LOADER() 454 pevent_register_event_handler(pevent, -1, "kvm", "kvm_emulate_insn", in PEVENT_PLUGIN_LOADER() 457 pevent_register_event_handler(pevent, -1, "kvm", "kvm_nested_vmexit", in PEVENT_PLUGIN_LOADER() 460 pevent_register_event_handler(pevent, -1, "kvm", "kvm_nested_vmexit_inject", in PEVENT_PLUGIN_LOADER() 463 pevent_register_event_handler(pevent, -1, "kvmmmu", "kvm_mmu_get_page", in PEVENT_PLUGIN_LOADER() 466 pevent_register_event_handler(pevent, -1, "kvmmmu", "kvm_mmu_sync_page", in PEVENT_PLUGIN_LOADER() 469 pevent_register_event_handler(pevent, -1, in PEVENT_PLUGIN_LOADER() [all …]
|
D | plugin_sched_switch.c | 64 pevent_register_comm(field->event->pevent, comm, pid); in write_and_save_comm() 137 int PEVENT_PLUGIN_LOADER(struct pevent *pevent) in PEVENT_PLUGIN_LOADER() argument 139 pevent_register_event_handler(pevent, -1, "sched", "sched_switch", in PEVENT_PLUGIN_LOADER() 142 pevent_register_event_handler(pevent, -1, "sched", "sched_wakeup", in PEVENT_PLUGIN_LOADER() 145 pevent_register_event_handler(pevent, -1, "sched", "sched_wakeup_new", in PEVENT_PLUGIN_LOADER() 150 void PEVENT_PLUGIN_UNLOADER(struct pevent *pevent) in PEVENT_PLUGIN_UNLOADER() argument 152 pevent_unregister_event_handler(pevent, -1, "sched", "sched_switch", in PEVENT_PLUGIN_UNLOADER() 155 pevent_unregister_event_handler(pevent, -1, "sched", "sched_wakeup", in PEVENT_PLUGIN_UNLOADER() 158 pevent_unregister_event_handler(pevent, -1, "sched", "sched_wakeup_new", in PEVENT_PLUGIN_UNLOADER()
|
D | plugin_cfg80211.c | 27 int PEVENT_PLUGIN_LOADER(struct pevent *pevent) in PEVENT_PLUGIN_LOADER() argument 29 pevent_register_print_function(pevent, in PEVENT_PLUGIN_LOADER() 38 void PEVENT_PLUGIN_UNLOADER(struct pevent *pevent) in PEVENT_PLUGIN_UNLOADER() argument 40 pevent_unregister_print_function(pevent, process___le16_to_cpup, in PEVENT_PLUGIN_UNLOADER()
|
D | plugin_function.c | 128 struct pevent *pevent = event->pevent; in function_handler() local 138 func = pevent_find_function(pevent, function); in function_handler() 143 parent = pevent_find_function(pevent, pfunction); in function_handler() 166 int PEVENT_PLUGIN_LOADER(struct pevent *pevent) in PEVENT_PLUGIN_LOADER() argument 168 pevent_register_event_handler(pevent, -1, "ftrace", "function", in PEVENT_PLUGIN_LOADER() 176 void PEVENT_PLUGIN_UNLOADER(struct pevent *pevent) in PEVENT_PLUGIN_UNLOADER() argument 180 pevent_unregister_event_handler(pevent, -1, "ftrace", "function", in PEVENT_PLUGIN_UNLOADER()
|
D | plugin_mac80211.c | 89 int PEVENT_PLUGIN_LOADER(struct pevent *pevent) in PEVENT_PLUGIN_LOADER() argument 91 pevent_register_event_handler(pevent, -1, "mac80211", in PEVENT_PLUGIN_LOADER() 97 void PEVENT_PLUGIN_UNLOADER(struct pevent *pevent) in PEVENT_PLUGIN_UNLOADER() argument 99 pevent_unregister_event_handler(pevent, -1, "mac80211", in PEVENT_PLUGIN_UNLOADER()
|
D | plugin_xen.c | 121 int PEVENT_PLUGIN_LOADER(struct pevent *pevent) in PEVENT_PLUGIN_LOADER() argument 123 pevent_register_print_function(pevent, in PEVENT_PLUGIN_LOADER() 132 void PEVENT_PLUGIN_UNLOADER(struct pevent *pevent) in PEVENT_PLUGIN_UNLOADER() argument 134 pevent_unregister_print_function(pevent, process_xen_hypercall_name, in PEVENT_PLUGIN_UNLOADER()
|
D | parse-filter.c | 165 filter_type->event = pevent_find_event(filter->pevent, id); in add_filter_type() 177 struct event_filter *pevent_filter_alloc(struct pevent *pevent) in pevent_filter_alloc() argument 186 filter->pevent = pevent; in pevent_filter_alloc() 187 pevent_ref(pevent); in pevent_filter_alloc() 267 find_event(struct pevent *pevent, struct event_list **events, in find_event() argument 313 for (i = 0; i < pevent->nr_events; i++) { in find_event() 314 event = pevent->events[i]; in find_event() 1268 struct pevent *pevent = filter->pevent; in pevent_filter_add_filter_str() local 1324 ret = find_event(pevent, &events, strim(sys_name), strim(event_name)); in pevent_filter_add_filter_str() 1345 if (ret >= 0 && pevent->test_filters) { in pevent_filter_add_filter_str() [all …]
|
D | plugin_scsi.c | 415 int PEVENT_PLUGIN_LOADER(struct pevent *pevent) in PEVENT_PLUGIN_LOADER() argument 417 pevent_register_print_function(pevent, in PEVENT_PLUGIN_LOADER() 428 void PEVENT_PLUGIN_UNLOADER(struct pevent *pevent) in PEVENT_PLUGIN_UNLOADER() argument 430 pevent_unregister_print_function(pevent, process_scsi_trace_parse_cdb, in PEVENT_PLUGIN_UNLOADER()
|
/linux-4.4.14/tools/perf/util/ |
D | trace-event-read.c | 100 static unsigned int read4(struct pevent *pevent) in read4() argument 106 return __data2host4(pevent, data); in read4() 109 static unsigned long long read8(struct pevent *pevent) in read8() argument 115 return __data2host8(pevent, data); in read8() 162 static int read_proc_kallsyms(struct pevent *pevent) in read_proc_kallsyms() argument 166 size = read4(pevent); in read_proc_kallsyms() 185 static int read_ftrace_printk(struct pevent *pevent) in read_ftrace_printk() argument 191 size = read4(pevent); in read_ftrace_printk() 204 parse_ftrace_printk(pevent, buf, size); in read_ftrace_printk() 210 static int read_header_files(struct pevent *pevent) in read_header_files() argument [all …]
|
D | trace-event.c | 29 struct pevent *pevent = pevent_alloc(); in trace_event__init() local 31 if (pevent) { in trace_event__init() 32 t->plugin_list = traceevent_load_plugins(pevent); in trace_event__init() 33 t->pevent = pevent; in trace_event__init() 36 return pevent ? 0 : -1; in trace_event__init() 42 struct pevent *pevent; in trace_event__init2() local 47 pevent = tevent.pevent; in trace_event__init2() 48 pevent_set_flag(pevent, PEVENT_NSEC_OUTPUT); in trace_event__init2() 49 pevent_set_file_bigendian(pevent, be); in trace_event__init2() 50 pevent_set_host_bigendian(pevent, be); in trace_event__init2() [all …]
|
D | trace-event-parse.c | 34 struct pevent *pevent = context->pevent; in get_common_field() local 39 if (!pevent->events) in get_common_field() 42 event = pevent->events[0]; in get_common_field() 50 return pevent_read_number(pevent, context->event_data + *offset, *size); in get_common_field() 112 return pevent_read_number(event->pevent, ptr, size); in read_size() 138 void parse_ftrace_printk(struct pevent *pevent, in parse_ftrace_printk() argument 159 pevent_register_print_string(pevent, printk, addr); in parse_ftrace_printk() 163 int parse_ftrace_file(struct pevent *pevent, char *buf, unsigned long size) in parse_ftrace_file() argument 165 return pevent_parse_event(pevent, buf, size, "ftrace"); in parse_ftrace_file() 168 int parse_event_file(struct pevent *pevent, in parse_event_file() argument [all …]
|
D | trace-event.h | 15 struct pevent *pevent; member 34 int parse_ftrace_file(struct pevent *pevent, char *buf, unsigned long size); 35 int parse_event_file(struct pevent *pevent, 41 void parse_proc_kallsyms(struct pevent *pevent, char *file, unsigned int size); 42 void parse_ftrace_printk(struct pevent *pevent, char *file, unsigned int size); 46 struct event_format *trace_find_next_event(struct pevent *pevent, 78 int (*generate_script) (struct pevent *pevent, const char *outfile); 89 struct pevent *pevent; member
|
D | python.c | 80 static PyObject *pyrf_mmap_event__repr(struct pyrf_event *pevent) in pyrf_mmap_event__repr() argument 88 pevent->event.mmap.pid, pevent->event.mmap.tid, in pyrf_mmap_event__repr() 89 pevent->event.mmap.start, pevent->event.mmap.len, in pyrf_mmap_event__repr() 90 pevent->event.mmap.pgoff, pevent->event.mmap.filename) < 0) { in pyrf_mmap_event__repr() 122 static PyObject *pyrf_task_event__repr(struct pyrf_event *pevent) in pyrf_task_event__repr() argument 126 pevent->event.header.type == PERF_RECORD_FORK ? "fork" : "exit", in pyrf_task_event__repr() 127 pevent->event.fork.pid, in pyrf_task_event__repr() 128 pevent->event.fork.ppid, in pyrf_task_event__repr() 129 pevent->event.fork.tid, in pyrf_task_event__repr() 130 pevent->event.fork.ptid, in pyrf_task_event__repr() [all …]
|
D | trace-event-scripting.c | 68 static int python_generate_script_unsupported(struct pevent *pevent in python_generate_script_unsupported() 133 static int perl_generate_script_unsupported(struct pevent *pevent in perl_generate_script_unsupported()
|
D | header.c | 2509 struct pevent *pevent) in perf_evsel__prepare_tracepoint_event() argument 2518 if (pevent == NULL) { in perf_evsel__prepare_tracepoint_event() 2523 event = pevent_find_event(pevent, evsel->attr.config); in perf_evsel__prepare_tracepoint_event() 2539 struct pevent *pevent) in perf_evlist__prepare_tracepoint_events() argument 2545 perf_evsel__prepare_tracepoint_event(pos, pevent)) in perf_evlist__prepare_tracepoint_events() 2642 session->tevent.pevent)) in perf_session__read_header() 2829 session->tevent.pevent); in perf_event__process_tracing_data()
|
D | data-convert-bt.c | 233 tmp_val = pevent_read_number(fmtf->event->pevent, in add_tracepoint_field_value() 278 fmtf->event->pevent, in add_tracepoint_field_value()
|
/linux-4.4.14/drivers/oprofile/ |
D | oprofile_perf.c | 76 struct perf_event *pevent; in op_create_counter() local 81 pevent = perf_event_create_kernel_counter(&counter_config[event].attr, in op_create_counter() 85 if (IS_ERR(pevent)) in op_create_counter() 86 return PTR_ERR(pevent); in op_create_counter() 88 if (pevent->state != PERF_EVENT_STATE_ACTIVE) { in op_create_counter() 89 perf_event_release_kernel(pevent); in op_create_counter() 95 per_cpu(perf_events, cpu)[event] = pevent; in op_create_counter() 102 struct perf_event *pevent = per_cpu(perf_events, cpu)[event]; in op_destroy_counter() local 104 if (pevent) { in op_destroy_counter() 105 perf_event_release_kernel(pevent); in op_destroy_counter()
|
/linux-4.4.14/arch/x86/kernel/ |
D | kgdb.c | 246 struct perf_event **pevent; in hw_break_reserve_slot() local 253 pevent = per_cpu_ptr(breakinfo[breakno].pev, cpu); in hw_break_reserve_slot() 254 if (dbg_reserve_bp_slot(*pevent)) in hw_break_reserve_slot() 265 pevent = per_cpu_ptr(breakinfo[breakno].pev, cpu); in hw_break_reserve_slot() 266 dbg_release_bp_slot(*pevent); in hw_break_reserve_slot() 273 struct perf_event **pevent; in hw_break_release_slot() local 280 pevent = per_cpu_ptr(breakinfo[breakno].pev, cpu); in hw_break_release_slot() 281 if (dbg_release_bp_slot(*pevent)) in hw_break_release_slot() 661 struct perf_event **pevent; in kgdb_arch_late() local 685 pevent = per_cpu_ptr(breakinfo[i].pev, cpu); in kgdb_arch_late() [all …]
|
/linux-4.4.14/drivers/net/wireless/rsi/ |
D | rsi_common.h | 28 static inline int rsi_init_event(struct rsi_event *pevent) in rsi_init_event() argument 30 atomic_set(&pevent->event_condition, 1); in rsi_init_event() 31 init_waitqueue_head(&pevent->event_queue); in rsi_init_event()
|
/linux-4.4.14/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, in fanotify_alloc_event() 164 if (!pevent) in fanotify_alloc_event() 166 event = &pevent->fae; in fanotify_alloc_event() 167 pevent->response = 0; in fanotify_alloc_event()
|
/linux-4.4.14/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_()
|
/linux-4.4.14/tools/perf/util/scripting-engines/ |
D | trace-event-perl.c | 282 scripting_context->pevent = evsel->tp_format->pevent; in perl_process_tracepoint() 445 static int perl_generate_script(struct pevent *pevent, const char *outfile) in perl_generate_script() argument 492 while ((event = trace_find_next_event(pevent, event))) { in perl_generate_script()
|
D | trace-event-python.c | 424 scripting_context->pevent = evsel->tp_format->pevent; in python_process_tracepoint() 1036 static int python_generate_script(struct pevent *pevent, const char *outfile) in python_generate_script() argument 1085 while ((event = trace_find_next_event(pevent, event))) { in python_generate_script()
|
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/core/ |
D | oproxy.c | 34 struct nvkm_event **pevent) in nvkm_oproxy_ntfy() argument 36 return nvkm_object_ntfy(nvkm_oproxy(object)->object, mthd, pevent); in nvkm_oproxy_ntfy()
|
D | object.c | 38 struct nvkm_event **pevent) in nvkm_object_ntfy() argument 41 return object->func->ntfy(object, mthd, pevent); in nvkm_object_ntfy()
|
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/engine/fifo/ |
D | chang84.c | 35 struct nvkm_event **pevent) in g84_fifo_chan_ntfy() argument 39 *pevent = &chan->fifo->uevent; in g84_fifo_chan_ntfy()
|
D | chan.c | 247 struct nvkm_event **pevent) in nvkm_fifo_chan_ntfy() argument 251 return chan->func->ntfy(chan, type, pevent); in nvkm_fifo_chan_ntfy()
|
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/engine/disp/ |
D | channv50.c | 178 struct nvkm_event **pevent) in nv50_disp_chan_ntfy() argument 184 *pevent = &disp->uevent; in nv50_disp_chan_ntfy()
|
/linux-4.4.14/tools/perf/ |
D | builtin-script.c | 663 static int default_generate_script(struct pevent *pevent __maybe_unused, in default_generate_script() 2012 if (session->tevent.pevent && in cmd_script() 2013 pevent_set_function_resolver(session->tevent.pevent, in cmd_script() 2056 err = scripting_ops->generate_script(session->tevent.pevent, in cmd_script()
|
D | builtin-kmem.c | 1933 kmem_page_size = pevent_get_page_size(evsel->tp_format->pevent); in cmd_kmem()
|
/linux-4.4.14/include/linux/ceph/ |
D | osd_client.h | 373 void *data, struct ceph_osd_event **pevent);
|
/linux-4.4.14/drivers/scsi/bfa/ |
D | bfa_svc.c | 2266 struct bfi_fcport_event_s *pevent = fcport->event_arg.i2hmsg.event; in bfa_fcport_sm_linkdown() local 2282 pevent->link_state.attr.vc_fcf.fcf.fipenabled); in bfa_fcport_sm_linkdown() 2284 pevent->link_state.attr.vc_fcf.fcf.fipfailed); in bfa_fcport_sm_linkdown() 2286 if (pevent->link_state.attr.vc_fcf.fcf.fipfailed) in bfa_fcport_sm_linkdown() 3187 struct bfi_fcport_event_s *pevent = fcport->event_arg.i2hmsg.event; in bfa_fcport_update_linkinfo() local 3190 fcport->speed = pevent->link_state.speed; in bfa_fcport_update_linkinfo() 3191 fcport->topology = pevent->link_state.topology; in bfa_fcport_update_linkinfo() 3195 &pevent->link_state.attr.loop_info); in bfa_fcport_update_linkinfo() 3200 fcport->qos_attr = pevent->link_state.qos_attr; in bfa_fcport_update_linkinfo() 3201 fcport->qos_vc_attr = pevent->link_state.attr.vc_fcf.qos_vc_attr; in bfa_fcport_update_linkinfo() [all …]
|
/linux-4.4.14/net/ceph/ |
D | osd_client.c | 2287 void *data, struct ceph_osd_event **pevent) in ceph_osdc_create_event() argument 2310 *pevent = event; in ceph_osdc_create_event()
|