ovni/prv.h

36 lines
661 B
C
Raw Normal View History

2021-08-02 10:08:58 +02:00
#ifndef OVNI_PRV_H
#define OVNI_PRV_H
/* All PRV event types */
enum prv_type {
/* Rows are CPUs */
PTC_PROC_PID = 10,
PTC_THREAD_TID = 11,
PTC_NTHREADS = 12,
PTC_TASK_ID = 20,
PTC_TASK_TYPE_ID = 21,
PTC_APP_ID = 30,
2021-08-02 10:08:58 +02:00
/* Rows are threads */
PTT_THREAD_STATE = 60,
PTT_THREAD_TID = 61,
};
void
prv_ev(FILE *f, int row, int64_t time, int type, int val);
void
prv_ev_thread(struct ovni_emu *emu, int row, int type, int val);
void
prv_ev_cpu(struct ovni_emu *emu, int row, int type, int val);
2021-08-02 10:08:58 +02:00
void
prv_ev_autocpu(struct ovni_emu *emu, int type, int val);
void
prv_header(FILE *f, int nrows);
2021-08-02 10:08:58 +02:00
#endif /* OVNI_PRV_H */