Move PRV event types to emu.h

This commit is contained in:
Rodrigo Arias 2021-10-21 16:08:03 +02:00
parent d4246c1c24
commit 13e6eabf33
2 changed files with 17 additions and 18 deletions

17
emu.h
View File

@ -66,6 +66,23 @@ struct nosv_task_type {
#define MAX_SS_STACK 128 #define MAX_SS_STACK 128
/* 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,
/* Rows are threads */
PTT_THREAD_STATE = 60,
PTT_THREAD_TID = 61,
PTT_SUBSYSTEM = 62,
};
/* State of each emulated thread */ /* State of each emulated thread */
struct ovni_ethread { struct ovni_ethread {
/* Emulated thread tid */ /* Emulated thread tid */

18
prv.h
View File

@ -5,24 +5,6 @@
#include "ovni.h" #include "ovni.h"
#include "emu.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,
PTC_SUBSYSTEM = 31,
/* Rows are threads */
PTT_THREAD_STATE = 60,
PTT_THREAD_TID = 61,
PTT_SUBSYSTEM = 62,
};
void void
prv_ev(FILE *f, int row, int64_t time, int type, int val); prv_ev(FILE *f, int row, int64_t time, int type, int val);