ovni/prv.h

47 lines
912 B
C

#ifndef OVNI_PRV_H
#define OVNI_PRV_H
#include <stdint.h>
#include "ovni.h"
#include "emu.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,
/* Rows are threads */
PTT_THREAD_STATE = 60,
PTT_THREAD_TID = 61,
PTT_SUBSYSTEM = 62,
};
void
prv_ev(FILE *f, int row, int64_t time, int type, int val);
void
prv_ev_thread_raw(struct ovni_emu *emu, 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);
void
prv_ev_autocpu(struct ovni_emu *emu, int type, int val);
void
prv_ev_autocpu_raw(struct ovni_emu *emu, int64_t time, int type, int val);
void
prv_header(FILE *f, int nrows);
#endif /* OVNI_PRV_H */