Lines Matching refs:ev
75 startentry(struct pmclog_ev *ev) in startentry() argument
80 typenames[ev->pl_type], (uintmax_t)ev->pl_ts.tv_sec); in startentry()
85 initialize_to_json(struct pmclog_ev *ev) in initialize_to_json() argument
90 startent = startentry(ev); in initialize_to_json()
94 startent.c_str(), ev->pl_u.pl_i.pl_version, ev->pl_u.pl_i.pl_arch, in initialize_to_json()
95 ev->pl_u.pl_i.pl_cpuid, (uintmax_t)ev->pl_u.pl_i.pl_tsc_freq, in initialize_to_json()
96 (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()
101 pmcallocate_to_json(struct pmclog_ev *ev) in pmcallocate_to_json() argument
106 startent = startentry(ev); in pmcallocate_to_json()
110 startent.c_str(), ev->pl_u.pl_a.pl_pmcid, ev->pl_u.pl_a.pl_event, in pmcallocate_to_json()
111 ev->pl_u.pl_a.pl_flags, (intmax_t)ev->pl_u.pl_a.pl_rate); in pmcallocate_to_json()
116 pmcattach_to_json(struct pmclog_ev *ev) in pmcattach_to_json() argument
121 startent = startentry(ev); in pmcattach_to_json()
124 startent.c_str(), ev->pl_u.pl_t.pl_pmcid, ev->pl_u.pl_t.pl_pid, in pmcattach_to_json()
125 ev->pl_u.pl_t.pl_pathname); in pmcattach_to_json()
130 pmcdetach_to_json(struct pmclog_ev *ev) in pmcdetach_to_json() argument
135 startent = startentry(ev); in pmcdetach_to_json()
138 startent.c_str(), ev->pl_u.pl_d.pl_pmcid, ev->pl_u.pl_d.pl_pid); in pmcdetach_to_json()
144 proccsw_to_json(struct pmclog_ev *ev) in proccsw_to_json() argument
149 startent = startentry(ev); in proccsw_to_json()
152 startent.c_str(), ev->pl_u.pl_c.pl_pmcid, ev->pl_u.pl_c.pl_pid, in proccsw_to_json()
153 ev->pl_u.pl_c.pl_tid, (uintmax_t)ev->pl_u.pl_c.pl_value); in proccsw_to_json()
158 procexec_to_json(struct pmclog_ev *ev) in procexec_to_json() argument
163 startent = startentry(ev); in procexec_to_json()
167 startent.c_str(), ev->pl_u.pl_x.pl_pmcid, ev->pl_u.pl_x.pl_pid, in procexec_to_json()
168 (uintmax_t)ev->pl_u.pl_x.pl_entryaddr, ev->pl_u.pl_x.pl_pathname); in procexec_to_json()
173 procexit_to_json(struct pmclog_ev *ev) in procexit_to_json() argument
178 startent = startentry(ev); in procexit_to_json()
182 startent.c_str(), ev->pl_u.pl_e.pl_pmcid, ev->pl_u.pl_e.pl_pid, in procexit_to_json()
183 (uintmax_t)ev->pl_u.pl_e.pl_value); in procexit_to_json()
188 procfork_to_json(struct pmclog_ev *ev) in procfork_to_json() argument
193 startent = startentry(ev); in procfork_to_json()
196 startent.c_str(), ev->pl_u.pl_f.pl_oldpid, ev->pl_u.pl_f.pl_newpid); in procfork_to_json()
201 sysexit_to_json(struct pmclog_ev *ev) in sysexit_to_json() argument
206 startent = startentry(ev); in sysexit_to_json()
208 startent.c_str(), ev->pl_u.pl_se.pl_pid); in sysexit_to_json()
213 userdata_to_json(struct pmclog_ev *ev) in userdata_to_json() argument
218 startent = startentry(ev); in userdata_to_json()
220 startent.c_str(), ev->pl_u.pl_u.pl_userdata); in userdata_to_json()
225 map_in_to_json(struct pmclog_ev *ev) in map_in_to_json() argument
230 startent = startentry(ev); in map_in_to_json()
233 startent.c_str(), ev->pl_u.pl_mi.pl_pid, in map_in_to_json()
234 (uintmax_t)ev->pl_u.pl_mi.pl_start, ev->pl_u.pl_mi.pl_pathname); in map_in_to_json()
239 map_out_to_json(struct pmclog_ev *ev) in map_out_to_json() argument
244 startent = startentry(ev); in map_out_to_json()
247 startent.c_str(), ev->pl_u.pl_mi.pl_pid, in map_out_to_json()
248 (uintmax_t)ev->pl_u.pl_mi.pl_start, in map_out_to_json()
249 (uintmax_t)ev->pl_u.pl_mo.pl_end); in map_out_to_json()
254 callchain_to_json(struct pmclog_ev *ev) in callchain_to_json() argument
261 startent = startentry(ev); in callchain_to_json()
265 startent.c_str(), ev->pl_u.pl_cc.pl_pmcid, ev->pl_u.pl_cc.pl_pid, in callchain_to_json()
266 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()
268 for (i = 0; i < ev->pl_u.pl_cc.pl_npc - 1; i++) { in callchain_to_json()
269 snprintf(eventbuf, sizeof(eventbuf), "\"0x%016jx\", ", (uintmax_t)ev->pl_u.pl_cc.pl_pc[i]); in callchain_to_json()
272 snprintf(eventbuf, sizeof(eventbuf), "\"0x%016jx\"]}\n", (uintmax_t)ev->pl_u.pl_cc.pl_pc[i]); in callchain_to_json()
278 pmcallocatedyn_to_json(struct pmclog_ev *ev) in pmcallocatedyn_to_json() argument
283 startent = startentry(ev); in pmcallocatedyn_to_json()
286 startent.c_str(), ev->pl_u.pl_ad.pl_pmcid, ev->pl_u.pl_ad.pl_event, in pmcallocatedyn_to_json()
287 ev->pl_u.pl_ad.pl_flags, ev->pl_u.pl_ad.pl_evname); in pmcallocatedyn_to_json()
292 proccreate_to_json(struct pmclog_ev *ev) in proccreate_to_json() argument
297 startent = startentry(ev); in proccreate_to_json()
300 startent.c_str(), ev->pl_u.pl_pc.pl_pid, in proccreate_to_json()
301 ev->pl_u.pl_pc.pl_flags, ev->pl_u.pl_pc.pl_pcomm); in proccreate_to_json()
306 threadcreate_to_json(struct pmclog_ev *ev) in threadcreate_to_json() argument
311 startent = startentry(ev); in threadcreate_to_json()
314 startent.c_str(), ev->pl_u.pl_tc.pl_tid, ev->pl_u.pl_tc.pl_pid, in threadcreate_to_json()
315 ev->pl_u.pl_tc.pl_flags, ev->pl_u.pl_tc.pl_tdname); in threadcreate_to_json()
320 threadexit_to_json(struct pmclog_ev *ev) in threadexit_to_json() argument
325 startent = startentry(ev); in threadexit_to_json()
327 startent.c_str(), ev->pl_u.pl_te.pl_tid); in threadexit_to_json()
332 stub_to_json(struct pmclog_ev *ev) in stub_to_json() argument
336 startent = startentry(ev); in stub_to_json()
368 event_to_json(struct pmclog_ev *ev){ in event_to_json() argument
370 switch (ev->pl_type) { in event_to_json()
390 return jsonconvert[ev->pl_type](ev); in event_to_json()
392 errx(EX_USAGE, "ERROR: unrecognized event type: %d\n", ev->pl_type); in event_to_json()