forked from andikleen/mcelog
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmemdb.h
More file actions
24 lines (19 loc) · 633 Bytes
/
memdb.h
File metadata and controls
24 lines (19 loc) · 633 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include <stdio.h>
#include "leaky-bucket.h"
struct err_type {
struct leaky_bucket bucket;
unsigned count;
};
enum printflags {
DUMP_ALL = (1 << 0),
DUMP_BIOS = (1 << 1),
};
void prefill_memdb(int do_dmi);
void memdb_config(void);
void dump_memory_errors(FILE *f, enum printflags flags);
void memory_error(struct mce *m, int channel, int dimm, unsigned corr_err_cnt,
unsigned recordlen);
struct memdimm;
void memdb_trigger(char *msg, struct memdimm *md, time_t t,
struct err_type *et, struct bucket_conf *bc, char *argv[], bool sync);
struct memdimm *get_memdimm(int socketid, int channel, int dimm, int insert);