File: memdb.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 (24 lines) | stat: -rw-r--r-- 607 bytes parent folder | download
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 long count;
};

enum printflags {
	DUMP_ALL  = (1 << 0),
	DUMP_BIOS = (1 << 1),
};	

void prefill_memdb(void);
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);
struct memdimm *get_memdimm(int socketid, int channel, int dimm, int insert);