Lines Matching refs:ev

73 startentry(struct pmclog_ev *ev)  in startentry()  argument
78 typenames[ev->pl_type], (uintmax_t)ev->pl_ts.tv_sec); in startentry()
83 initialize_to_json(struct pmclog_ev *ev) in initialize_to_json() argument
88 startent = startentry(ev); in initialize_to_json()
92 startent.c_str(), ev->pl_u.pl_i.pl_version, ev->pl_u.pl_i.pl_arch, in initialize_to_json()
93 ev->pl_u.pl_i.pl_cpuid, (uintmax_t)ev->pl_u.pl_i.pl_tsc_freq, in initialize_to_json()
94 (uintmax_t)ev->pl_u.pl_i.pl_ts.tv_sec, (uintmax_t)ev->pl_u.pl_i.pl_ts.tv_nsec); in initialize_to_json()
99 pmcallocate_to_json(struct pmclog_ev *ev) in pmcallocate_to_json() argument
104 startent = startentry(ev); in pmcallocate_to_json()
108 startent.c_str(), ev->pl_u.pl_a.pl_pmcid, ev->pl_u.pl_a.pl_event, in pmcallocate_to_json()
109 ev->pl_u.pl_a.pl_flags, (intmax_t)ev->pl_u.pl_a.pl_rate); in pmcallocate_to_json()
114 pmcattach_to_json(struct pmclog_ev *ev) in pmcattach_to_json() argument
119 startent = startentry(ev); in pmcattach_to_json()
122 startent.c_str(), ev->pl_u.pl_t.pl_pmcid, ev->pl_u.pl_t.pl_pid, in pmcattach_to_json()
123 ev->pl_u.pl_t.pl_pathname); in pmcattach_to_json()
128 pmcdetach_to_json(struct pmclog_ev *ev) in pmcdetach_to_json() argument
133 startent = startentry(ev); in pmcdetach_to_json()
136 startent.c_str(), ev->pl_u.pl_d.pl_pmcid, ev->pl_u.pl_d.pl_pid); in pmcdetach_to_json()
142 proccsw_to_json(struct pmclog_ev *ev) in proccsw_to_json() argument
147 startent = startentry(ev); in proccsw_to_json()
150 startent.c_str(), ev->pl_u.pl_c.pl_pmcid, ev->pl_u.pl_c.pl_pid, in proccsw_to_json()
151 ev->pl_u.pl_c.pl_tid, (uintmax_t)ev->pl_u.pl_c.pl_value); in proccsw_to_json()
156 procexec_to_json(struct pmclog_ev *ev) in procexec_to_json() argument
161 startent = startentry(ev); in procexec_to_json()
165 startent.c_str(), ev->pl_u.pl_x.pl_pmcid, ev->pl_u.pl_x.pl_pid, in procexec_to_json()
166 (uintmax_t)ev->pl_u.pl_x.pl_entryaddr, ev->pl_u.pl_x.pl_pathname); in procexec_to_json()
171 procexit_to_json(struct pmclog_ev *ev) in procexit_to_json() argument
176 startent = startentry(ev); in procexit_to_json()
180 startent.c_str(), ev->pl_u.pl_e.pl_pmcid, ev->pl_u.pl_e.pl_pid, in procexit_to_json()
181 (uintmax_t)ev->pl_u.pl_e.pl_value); in procexit_to_json()
186 procfork_to_json(struct pmclog_ev *ev) in procfork_to_json() argument
191 startent = startentry(ev); in procfork_to_json()
194 startent.c_str(), ev->pl_u.pl_f.pl_oldpid, ev->pl_u.pl_f.pl_newpid); in procfork_to_json()
199 sysexit_to_json(struct pmclog_ev *ev) in sysexit_to_json() argument
204 startent = startentry(ev); in sysexit_to_json()
206 startent.c_str(), ev->pl_u.pl_se.pl_pid); in sysexit_to_json()
211 userdata_to_json(struct pmclog_ev *ev) in userdata_to_json() argument
216 startent = startentry(ev); in userdata_to_json()
218 startent.c_str(), ev->pl_u.pl_u.pl_userdata); in userdata_to_json()
223 map_in_to_json(struct pmclog_ev *ev) in map_in_to_json() argument
228 startent = startentry(ev); in map_in_to_json()
231 startent.c_str(), ev->pl_u.pl_mi.pl_pid, in map_in_to_json()
232 (uintmax_t)ev->pl_u.pl_mi.pl_start, ev->pl_u.pl_mi.pl_pathname); in map_in_to_json()
237 map_out_to_json(struct pmclog_ev *ev) in map_out_to_json() argument
242 startent = startentry(ev); in map_out_to_json()
245 startent.c_str(), ev->pl_u.pl_mi.pl_pid, in map_out_to_json()
246 (uintmax_t)ev->pl_u.pl_mi.pl_start, in map_out_to_json()
247 (uintmax_t)ev->pl_u.pl_mo.pl_end); in map_out_to_json()
252 callchain_to_json(struct pmclog_ev *ev) in callchain_to_json() argument
259 startent = startentry(ev); in callchain_to_json()
263 startent.c_str(), ev->pl_u.pl_cc.pl_pmcid, ev->pl_u.pl_cc.pl_pid, in callchain_to_json()
264 ev->pl_u.pl_cc.pl_tid, ev->pl_u.pl_cc.pl_cpuflags, ev->pl_u.pl_cc.pl_cpuflags2); in callchain_to_json()
266 for (i = 0; i < ev->pl_u.pl_cc.pl_npc - 1; i++) { in callchain_to_json()
267 snprintf(eventbuf, sizeof(eventbuf), "\"0x%016jx\", ", (uintmax_t)ev->pl_u.pl_cc.pl_pc[i]); in callchain_to_json()
270 snprintf(eventbuf, sizeof(eventbuf), "\"0x%016jx\"]}\n", (uintmax_t)ev->pl_u.pl_cc.pl_pc[i]); in callchain_to_json()
276 pmcallocatedyn_to_json(struct pmclog_ev *ev) in pmcallocatedyn_to_json() argument
281 startent = startentry(ev); in pmcallocatedyn_to_json()
284 startent.c_str(), ev->pl_u.pl_ad.pl_pmcid, ev->pl_u.pl_ad.pl_event, in pmcallocatedyn_to_json()
285 ev->pl_u.pl_ad.pl_flags, ev->pl_u.pl_ad.pl_evname); in pmcallocatedyn_to_json()
290 proccreate_to_json(struct pmclog_ev *ev) in proccreate_to_json() argument
295 startent = startentry(ev); in proccreate_to_json()
298 startent.c_str(), ev->pl_u.pl_pc.pl_pid, in proccreate_to_json()
299 ev->pl_u.pl_pc.pl_flags, ev->pl_u.pl_pc.pl_pcomm); in proccreate_to_json()
304 threadcreate_to_json(struct pmclog_ev *ev) in threadcreate_to_json() argument
309 startent = startentry(ev); in threadcreate_to_json()
312 startent.c_str(), ev->pl_u.pl_tc.pl_tid, ev->pl_u.pl_tc.pl_pid, in threadcreate_to_json()
313 ev->pl_u.pl_tc.pl_flags, ev->pl_u.pl_tc.pl_tdname); in threadcreate_to_json()
318 threadexit_to_json(struct pmclog_ev *ev) in threadexit_to_json() argument
323 startent = startentry(ev); in threadexit_to_json()
325 startent.c_str(), ev->pl_u.pl_te.pl_tid); in threadexit_to_json()
330 stub_to_json(struct pmclog_ev *ev) in stub_to_json() argument
334 startent = startentry(ev); in stub_to_json()
366 event_to_json(struct pmclog_ev *ev){ in event_to_json() argument
368 switch (ev->pl_type) { in event_to_json()
388 return jsonconvert[ev->pl_type](ev); in event_to_json()
390 errx(EX_USAGE, "ERROR: unrecognized event type: %d\n", ev->pl_type); in event_to_json()