File: diskdb.h

package info (click to toggle)
mcelog 104-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 996 kB
  • ctags: 1,508
  • sloc: ansic: 7,739; sh: 481; makefile: 87
file content (32 lines) | stat: -rw-r--r-- 803 bytes parent folder | download | duplicates (3)
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

#ifdef CONFIG_DISKDB
enum diskdb_options { 
	O_DATABASE = O_DISKDB,
	O_ERROR_TRIGGER,
	O_DUMP_MEMORY,
	O_RESET_MEMORY,
	O_DROP_OLD_MEMORY,	
};

void diskdb_resolve_addr(u64 addr);
int diskdb_modifier(int opt);
int diskdb_cmd(int opt, int ac, char **av);
void diskdb_usage(void);

#define DISKDB_OPTIONS \
	{ "database", 1, NULL, O_DATABASE },	\
	{ "error-trigger", 1, NULL, O_ERROR_TRIGGER },	\
	{ "dump-memory", 2, NULL, O_DUMP_MEMORY },	\
	{ "reset-memory", 2, NULL, O_RESET_MEMORY },	\
	{ "drop-old-memory", 0, NULL, O_DROP_OLD_MEMORY },

#else

static inline void diskdb_resolve_addr(u64 addr) {}
static inline int diskdb_modifier(int opt) { return 0; }
static inline int diskdb_cmd(int opt, int ac, char **av) { return 0; }
static inline void diskdb_usage(void) {}

#define DISKDB_OPTIONS

#endif