Lines Matching full: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()
166 startent.c_str(), ev->pl_u.pl_x.pl_pmcid, ev->pl_u.pl_x.pl_pid, in procexec_to_json()
167 (uintmax_t)ev->pl_u.pl_x.pl_baseaddr, in procexec_to_json()
168 (uintmax_t)ev->pl_u.pl_x.pl_dynaddr, in procexec_to_json()
169 ev->pl_u.pl_x.pl_pathname); in procexec_to_json()
174 procexit_to_json(struct pmclog_ev *ev) in procexit_to_json() argument
179 startent = startentry(ev); in procexit_to_json()
183 startent.c_str(), ev->pl_u.pl_e.pl_pmcid, ev->pl_u.pl_e.pl_pid, in procexit_to_json()
184 (uintmax_t)ev->pl_u.pl_e.pl_value); in procexit_to_json()
189 procfork_to_json(struct pmclog_ev *ev) in procfork_to_json() argument
194 startent = startentry(ev); in procfork_to_json()
197 startent.c_str(), ev->pl_u.pl_f.pl_oldpid, ev->pl_u.pl_f.pl_newpid); in procfork_to_json()
202 sysexit_to_json(struct pmclog_ev *ev) in sysexit_to_json() argument
207 startent = startentry(ev); in sysexit_to_json()
209 startent.c_str(), ev->pl_u.pl_se.pl_pid); in sysexit_to_json()
214 userdata_to_json(struct pmclog_ev *ev) in userdata_to_json() argument
219 startent = startentry(ev); in userdata_to_json()
221 startent.c_str(), ev->pl_u.pl_u.pl_userdata); in userdata_to_json()
226 map_in_to_json(struct pmclog_ev *ev) in map_in_to_json() argument
231 startent = startentry(ev); in map_in_to_json()
234 startent.c_str(), ev->pl_u.pl_mi.pl_pid, in map_in_to_json()
235 (uintmax_t)ev->pl_u.pl_mi.pl_start, ev->pl_u.pl_mi.pl_pathname); in map_in_to_json()
240 map_out_to_json(struct pmclog_ev *ev) in map_out_to_json() argument
245 startent = startentry(ev); in map_out_to_json()
248 startent.c_str(), ev->pl_u.pl_mi.pl_pid, in map_out_to_json()
249 (uintmax_t)ev->pl_u.pl_mi.pl_start, in map_out_to_json()
250 (uintmax_t)ev->pl_u.pl_mo.pl_end); in map_out_to_json()
255 callchain_to_json(struct pmclog_ev *ev) in callchain_to_json() argument
262 startent = startentry(ev); in callchain_to_json()
266 startent.c_str(), ev->pl_u.pl_cc.pl_pmcid, ev->pl_u.pl_cc.pl_pid, in callchain_to_json()
267 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()
269 for (i = 0; i < ev->pl_u.pl_cc.pl_npc - 1; i++) { in callchain_to_json()
270 snprintf(eventbuf, sizeof(eventbuf), "\"0x%016jx\", ", (uintmax_t)ev->pl_u.pl_cc.pl_pc[i]); in callchain_to_json()
273 snprintf(eventbuf, sizeof(eventbuf), "\"0x%016jx\"]}\n", (uintmax_t)ev->pl_u.pl_cc.pl_pc[i]); in callchain_to_json()
279 pmcallocatedyn_to_json(struct pmclog_ev *ev) in pmcallocatedyn_to_json() argument
284 startent = startentry(ev); in pmcallocatedyn_to_json()
287 startent.c_str(), ev->pl_u.pl_ad.pl_pmcid, ev->pl_u.pl_ad.pl_event, in pmcallocatedyn_to_json()
288 ev->pl_u.pl_ad.pl_flags, ev->pl_u.pl_ad.pl_evname); in pmcallocatedyn_to_json()
293 proccreate_to_json(struct pmclog_ev *ev) in proccreate_to_json() argument
298 startent = startentry(ev); in proccreate_to_json()
301 startent.c_str(), ev->pl_u.pl_pc.pl_pid, in proccreate_to_json()
302 ev->pl_u.pl_pc.pl_flags, ev->pl_u.pl_pc.pl_pcomm); in proccreate_to_json()
307 threadcreate_to_json(struct pmclog_ev *ev) in threadcreate_to_json() argument
312 startent = startentry(ev); in threadcreate_to_json()
315 startent.c_str(), ev->pl_u.pl_tc.pl_tid, ev->pl_u.pl_tc.pl_pid, in threadcreate_to_json()
316 ev->pl_u.pl_tc.pl_flags, ev->pl_u.pl_tc.pl_tdname); in threadcreate_to_json()
321 threadexit_to_json(struct pmclog_ev *ev) in threadexit_to_json() argument
326 startent = startentry(ev); in threadexit_to_json()
328 startent.c_str(), ev->pl_u.pl_te.pl_tid); in threadexit_to_json()
333 stub_to_json(struct pmclog_ev *ev) in stub_to_json() argument
337 startent = startentry(ev); in stub_to_json()
369 event_to_json(struct pmclog_ev *ev){ in event_to_json() argument
371 switch (ev->pl_type) { in event_to_json()
391 return jsonconvert[ev->pl_type](ev); in event_to_json()
393 errx(EX_USAGE, "ERROR: unrecognized event type: %d\n", ev->pl_type); in event_to_json()