aboutsummaryrefslogtreecommitdiff
path: root/include/linux/history_record.h
blob: f10e251f3b6262396783e16da656bef5b95727bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#ifndef _LINUX_HISTORY_RECORD_H
#define _LINUX_HISTORY_RECORD_H

#ifdef __KERNEL__

#define SAVED_HISTORY_MAX 250

struct saved_history_record {
	unsigned long long ts;
	unsigned int type;
	union {
		struct {
			unsigned int HostIrqCountSample;
			unsigned int InterruptCount;
		} sgx; /*type = 1,2;*/

		struct {
			unsigned int pipe_nu;
			unsigned int pipe_stat_val;
		} pipe; /*type = 3;*/

		unsigned long msvdx_stat; /*type = 4;*/
		unsigned long vdc_stat; /*type = 5;*/
		unsigned long value; /*type = 0;*/
	} record_value;
};

extern struct saved_history_record *get_new_history_record(void);
extern void interrupt_dump_history(void);

#endif

#endif