ovni/prv.h

48 lines
937 B
C
Raw Normal View History

2021-08-02 10:08:58 +02:00
#ifndef OVNI_PRV_H
#define OVNI_PRV_H
2021-08-03 20:47:02 +02:00
#include <stdint.h>
#include "ovni.h"
#include "emu.h"
2021-08-02 10:08:58 +02:00
/* 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,
PTC_SUBSYSTEM = 31,
2021-08-02 10:08:58 +02:00
/* Rows are threads */
PTT_THREAD_STATE = 60,
PTT_THREAD_TID = 61,
2021-09-23 10:41:53 +02:00
PTT_SUBSYSTEM = 62,
2021-08-02 10:08:58 +02:00
};
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);
2021-08-02 10:08:58 +02:00
void
prv_ev_autocpu(struct ovni_emu *emu, int type, int val);
2021-10-21 15:55:40 +02:00
void
prv_ev_autocpu_raw(struct ovni_emu *emu, int64_t time, int type, int val);
2021-08-02 10:08:58 +02:00
void
prv_header(FILE *f, int nrows);
2021-08-02 10:08:58 +02:00
#endif /* OVNI_PRV_H */