/linux/tools/perf/util/ |
H A D | trace-event-read.c | 83 static unsigned int read4(struct tep_handle *pevent) in read4() argument 89 return tep_read_number(pevent, &data, 4); in read4() 92 static unsigned long long read8(struct tep_handle *pevent) in read8() argument 98 return tep_read_number(pevent, &data, 8); in read8() 145 static int read_proc_kallsyms(struct tep_handle *pevent) in read_proc_kallsyms() argument 149 size = read4(pevent); in read_proc_kallsyms() 168 static int read_ftrace_printk(struct tep_handle *pevent) in read_ftrace_printk() argument 174 size = read4(pevent); in read_ftrace_printk() 189 parse_ftrace_printk(pevent, buf, size); in read_ftrace_printk() 195 static int read_header_files(struct tep_handle *pevent) in read_header_files() argument [all …]
|
H A D | trace-event.c | 29 struct tep_handle *pevent = tep_alloc(); in trace_event__init() local 31 if (pevent) { in trace_event__init() 32 t->plugin_list = tep_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 tep_handle *pevent; in trace_event__init2() local 47 pevent = tevent.pevent; in trace_event__init2() 48 tep_set_flag(pevent, TEP_NSEC_OUTPUT); in trace_event__init2() 49 tep_set_file_bigendian(pevent, be); in trace_event__init2() 50 tep_set_local_bigendian(pevent, be); in trace_event__init2() [all …]
|
H A D | python.c | 107 static PyObject *pyrf_mmap_event__repr(struct pyrf_event *pevent) in pyrf_mmap_event__repr() argument 115 pevent->event.mmap.pid, pevent->event.mmap.tid, in pyrf_mmap_event__repr() 116 pevent->event.mmap.start, pevent->event.mmap.len, in pyrf_mmap_event__repr() 117 pevent->event.mmap.pgoff, pevent->event.mmap.filename) < 0) { in pyrf_mmap_event__repr() 149 static PyObject *pyrf_task_event__repr(struct pyrf_event *pevent) in pyrf_task_event__repr() argument 153 pevent->event.header.type == PERF_RECORD_FORK ? "fork" : "exit", in pyrf_task_event__repr() 154 pevent->event.fork.pid, in pyrf_task_event__repr() 155 pevent->event.fork.ppid, in pyrf_task_event__repr() 156 pevent->event.fork.tid, in pyrf_task_event__repr() 157 pevent->event.fork.ptid, in pyrf_task_event__repr() [all …]
|
H A D | trace-event-parse.c | 20 struct tep_handle *pevent = context->pevent; in get_common_field() local 26 event = tep_get_first_event(pevent); in get_common_field() 37 return tep_read_number(pevent, context->event_data + *offset, *size); in get_common_field() 238 void parse_ftrace_printk(struct tep_handle *pevent, in parse_ftrace_printk() argument 259 tep_register_print_string(pevent, printk, addr); in parse_ftrace_printk() 264 void parse_saved_cmdline(struct tep_handle *pevent, in parse_saved_cmdline() argument 275 tep_register_comm(pevent, comm, pid); in parse_saved_cmdline() 280 int parse_ftrace_file(struct tep_handle *pevent, char *buf, unsigned long size) in parse_ftrace_file() argument 282 return tep_parse_event(pevent, buf, size, "ftrace"); in parse_ftrace_file() 285 int parse_event_file(struct tep_handle *pevent, in parse_event_file() argument [all …]
|
H A D | trace-event.h | 21 struct tep_handle *pevent; member 48 int parse_ftrace_file(struct tep_handle *pevent, char *buf, unsigned long size); 49 int parse_event_file(struct tep_handle *pevent, 57 void parse_proc_kallsyms(struct tep_handle *pevent, char *file, unsigned int size); 58 void parse_ftrace_printk(struct tep_handle *pevent, char *file, unsigned int size); 59 void parse_saved_cmdline(struct tep_handle *pevent, char *file, unsigned int size); 114 int (*generate_script) (struct tep_handle *pevent, const char *outfile); 128 struct tep_handle *pevent; member
|
H A D | trace-event-scripting.c | 32 c->pevent = NULL; in scripting_context__update() 35 c->pevent = evsel->tp_format->tep; in scripting_context__update() 81 static int python_generate_script_unsupported(struct tep_handle *pevent in python_generate_script_unsupported() 148 static int perl_generate_script_unsupported(struct tep_handle *pevent in perl_generate_script_unsupported()
|
H A D | header.c | 4195 static int evsel__prepare_tracepoint_event(struct evsel *evsel, struct tep_handle *pevent) in evsel__prepare_tracepoint_event() argument 4204 if (pevent == NULL) { in evsel__prepare_tracepoint_event() 4209 event = tep_find_event(pevent, evsel->core.attr.config); in evsel__prepare_tracepoint_event() 4226 static int evlist__prepare_tracepoint_events(struct evlist *evlist, struct tep_handle *pevent) in evlist__prepare_tracepoint_events() argument 4232 evsel__prepare_tracepoint_event(pos, pevent)) in evlist__prepare_tracepoint_events() 4348 if (evlist__prepare_tracepoint_events(session->evlist, session->tevent.pevent)) in perf_session__read_header() 4575 evlist__prepare_tracepoint_events(session->evlist, session->tevent.pevent); in perf_event__process_tracing_data()
|
/linux/arch/x86/kernel/ |
H A D | kgdb.c | 230 struct perf_event **pevent; in hw_break_reserve_slot() local 237 pevent = per_cpu_ptr(breakinfo[breakno].pev, cpu); in hw_break_reserve_slot() 238 if (dbg_reserve_bp_slot(*pevent)) in hw_break_reserve_slot() 249 pevent = per_cpu_ptr(breakinfo[breakno].pev, cpu); in hw_break_reserve_slot() 250 dbg_release_bp_slot(*pevent); in hw_break_reserve_slot() 257 struct perf_event **pevent; in hw_break_release_slot() local 264 pevent = per_cpu_ptr(breakinfo[breakno].pev, cpu); in hw_break_release_slot() 265 if (dbg_release_bp_slot(*pevent)) in hw_break_release_slot() 642 struct perf_event **pevent; in kgdb_arch_late() local 666 pevent = per_cpu_ptr(breakinfo[i].pev, cpu); in kgdb_arch_late() [all …]
|
/linux/fs/notify/fanotify/ |
H A D | fanotify.c | 538 struct fanotify_path_event *pevent; in fanotify_alloc_path_event() local 540 pevent = kmem_cache_alloc(fanotify_path_event_cachep, gfp); in fanotify_alloc_path_event() 541 if (!pevent) in fanotify_alloc_path_event() 544 pevent->fae.type = FANOTIFY_EVENT_TYPE_PATH; in fanotify_alloc_path_event() 545 pevent->path = *path; in fanotify_alloc_path_event() 549 return &pevent->fae; in fanotify_alloc_path_event() 555 struct fanotify_perm_event *pevent; in fanotify_alloc_perm_event() local 557 pevent = kmem_cache_alloc(fanotify_perm_event_cachep, gfp); in fanotify_alloc_perm_event() 558 if (!pevent) in fanotify_alloc_perm_event() 561 pevent->fae.type = FANOTIFY_EVENT_TYPE_PATH_PERM; in fanotify_alloc_perm_event() [all …]
|
/linux/arch/loongarch/kernel/ |
H A D | kgdb.c | 465 struct perf_event **pevent; in hw_break_reserve_slot() local 469 pevent = per_cpu_ptr(breakinfo[breakno].pev, cpu); in hw_break_reserve_slot() 470 if (dbg_reserve_bp_slot(*pevent)) in hw_break_reserve_slot() 481 pevent = per_cpu_ptr(breakinfo[breakno].pev, cpu); in hw_break_reserve_slot() 482 dbg_release_bp_slot(*pevent); in hw_break_reserve_slot() 491 struct perf_event **pevent; in hw_break_release_slot() local 497 pevent = per_cpu_ptr(breakinfo[breakno].pev, cpu); in hw_break_release_slot() 498 if (dbg_release_bp_slot(*pevent)) in hw_break_release_slot() 685 struct perf_event **pevent; in kgdb_arch_late() local 706 pevent = per_cpu_ptr(breakinfo[i].pev, cpu); in kgdb_arch_late() [all …]
|
/linux/drivers/net/wireless/rsi/ |
H A 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/drivers/net/ethernet/ti/ |
H A D | am65-cpts.c | 280 struct ptp_clock_event pevent; in __am65_cpts_fifo_read() local 322 pevent.index = am65_cpts_event_get_port(event) - 1; in __am65_cpts_fifo_read() 323 pevent.timestamp = event->timestamp; in __am65_cpts_fifo_read() 324 if (cpts->pps_enabled && pevent.index == cpts->pps_hw_ts_idx) { in __am65_cpts_fifo_read() 325 pevent.type = PTP_CLOCK_PPSUSR; in __am65_cpts_fifo_read() 326 pevent.pps_times.ts_real = ns_to_timespec64(pevent.timestamp); in __am65_cpts_fifo_read() 328 pevent.type = PTP_CLOCK_EXTTS; in __am65_cpts_fifo_read() 331 pevent.type == PTP_CLOCK_EXTTS ? in __am65_cpts_fifo_read() 333 pevent.index, event->timestamp); in __am65_cpts_fifo_read() 335 ptp_clock_event(cpts->ptp_clock, &pevent); in __am65_cpts_fifo_read()
|
H A D | cpts.c | 107 struct ptp_clock_event pevent; in cpts_fifo_read() local 157 pevent.timestamp = event->timestamp; in cpts_fifo_read() 158 pevent.type = PTP_CLOCK_EXTTS; in cpts_fifo_read() 159 pevent.index = cpts_event_port(event) - 1; in cpts_fifo_read() 160 ptp_clock_event(cpts->clock, &pevent); in cpts_fifo_read()
|
/linux/drivers/gpu/drm/nouveau/nvkm/core/ |
H A 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()
|
H A D | object.c | 111 struct nvkm_event **pevent) in nvkm_object_ntfy() argument 114 return object->func->ntfy(object, mthd, pevent); in nvkm_object_ntfy()
|
/linux/drivers/gpu/drm/nouveau/nvkm/engine/disp/ |
H A D | chan.c | 30 nvkm_disp_chan_ntfy(struct nvkm_object *object, u32 type, struct nvkm_event **pevent) in nvkm_disp_chan_ntfy() argument 37 *pevent = &disp->uevent; in nvkm_disp_chan_ntfy()
|
/linux/drivers/net/ethernet/ti/icssg/ |
H A D | icss_iep.c | 500 struct ptp_clock_event pevent; in icss_iep_cap_cmp_work() local 519 pevent.pps_times.ts_real = ns_to_timespec64(ns); in icss_iep_cap_cmp_work() 520 pevent.type = PTP_CLOCK_PPSUSR; in icss_iep_cap_cmp_work() 521 pevent.index = 0; in icss_iep_cap_cmp_work() 522 ptp_clock_event(iep->ptp_clock, &pevent); in icss_iep_cap_cmp_work()
|
/linux/kernel/trace/ |
H A D | trace_eprobe.c | 258 struct trace_event_call *pevent; in print_eprobe_event() local 278 pevent = container_of(probed_event, struct trace_event_call, event); in print_eprobe_event() 279 trace_seq_printf(s, "%s.%s", pevent->class->system, in print_eprobe_event() 280 trace_event_name(pevent)); in print_eprobe_event()
|
H A D | trace_probe.c | 242 int traceprobe_parse_event_name(const char **pevent, const char **pgroup, in traceprobe_parse_event_name() argument 245 const char *slash, *event = *pevent; in traceprobe_parse_event_name() 267 *pevent = slash + 1; in traceprobe_parse_event_name() 269 event = *pevent; in traceprobe_parse_event_name() 274 *pevent = NULL; in traceprobe_parse_event_name()
|
H A D | trace_probe.h | 444 int traceprobe_parse_event_name(const char **pevent, const char **pgroup,
|
H A D | trace_uprobe.c | 1471 const char *pevent = trace_event_name(event->tp_event); in bpf_get_uprobe_info() local 1476 tu = find_probe_event(pevent, group); in bpf_get_uprobe_info()
|
/linux/tools/perf/util/scripting-engines/ |
H A D | trace-event-perl.c | 553 static int perl_generate_script(struct tep_handle *pevent, const char *outfile) in perl_generate_script() argument 620 nr_events = tep_get_events_count(pevent); in perl_generate_script() 621 all_events = tep_list_events(pevent, TEP_EVENT_SORT_ID); in perl_generate_script()
|
H A D | trace-event-python.c | 1030 val = tep_read_number(scripting_context->pevent, in python_process_tracepoint() 2028 static int python_generate_script(struct tep_handle *pevent, const char *outfile) in python_generate_script() argument 2079 nr_events = tep_get_events_count(pevent); in python_generate_script() 2080 all_events = tep_list_events(pevent, TEP_EVENT_SORT_ID); in python_generate_script() 2219 static int python_generate_script(struct tep_handle *pevent __maybe_unused, in python_generate_script()
|
/linux/drivers/scsi/bfa/ |
H A D | bfa_svc.c | 2181 struct bfi_fcport_event_s *pevent = fcport->event_arg.i2hmsg.event; in bfa_fcport_sm_linkdown() local 2197 pevent->link_state.attr.vc_fcf.fcf.fipenabled); in bfa_fcport_sm_linkdown() 2199 pevent->link_state.attr.vc_fcf.fcf.fipfailed); in bfa_fcport_sm_linkdown() 2201 if (pevent->link_state.attr.vc_fcf.fcf.fipfailed) in bfa_fcport_sm_linkdown() 3082 struct bfi_fcport_event_s *pevent = fcport->event_arg.i2hmsg.event; in bfa_fcport_update_linkinfo() local 3085 fcport->speed = pevent->link_state.speed; in bfa_fcport_update_linkinfo() 3086 fcport->topology = pevent->link_state.topology; in bfa_fcport_update_linkinfo() 3090 &pevent->link_state.attr.loop_info); in bfa_fcport_update_linkinfo() 3095 fcport->qos_attr = pevent->link_state.qos_attr; in bfa_fcport_update_linkinfo() 3096 fcport->qos_vc_attr = pevent->link_state.attr.vc_fcf.qos_vc_attr; in bfa_fcport_update_linkinfo() [all …]
|
/linux/tools/perf/ |
H A D | builtin-report.c | 1812 if (session->tevent.pevent && in cmd_report() 1813 tep_set_function_resolver(session->tevent.pevent, in cmd_report()
|