X-Git-Url: https://git.lttng.org/?p=lttngtop.git;a=blobdiff_plain;f=src%2Fcommon.h;h=12cb04dfed36fb44943f6aa4ad7d3716060dbcee;hp=e81256c65915efa8c4248c580db42e0e98f46748;hb=bc02a7aa917596e98027f6b44f9e3f145e369161;hpb=37010c3c1a006bf7f3181a1746751c99645ad4bb diff --git a/src/common.h b/src/common.h index e81256c..12cb04d 100644 --- a/src/common.h +++ b/src/common.h @@ -52,4 +52,11 @@ struct perfcounter *add_perf_counter(GPtrArray *perf, GQuark quark, struct perfcounter *get_perf_counter(const char *name, struct processtop *proc, struct cputime *cpu); +/* common field access functions */ +uint64_t get_cpu_id(struct bt_ctf_event *event); +uint64_t get_context_tid(struct bt_ctf_event *event); +uint64_t get_context_pid(struct bt_ctf_event *event); +uint64_t get_context_ppid(struct bt_ctf_event *event); +char *get_context_comm(struct bt_ctf_event *event); + #endif /* _COMMON_H */