aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom/sgsn/debug.h
blob: 662567bc62b6d86523ca5009ae126d3314ae2739 (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#pragma once

#include <stdio.h>
#include <osmocom/core/linuxlist.h>

#define DEBUG
#include <osmocom/core/logging.h>

struct gprs_subscr;

/* Debug Areas of the code */
enum {
	DRLL,
	DCC,
	DMM,
	DRR,
	DRSL,
	DNM,
	DMNCC,
	DPAG,
	DMEAS,
	DSCCP,
	DMSC,
	DMGCP,
	DHO,
	DDB,
	DREF,
	DGPRS,
	DNS,
	DBSSGP,
	DLLC,
	DSNDCP,
	DSLHC,
	DNAT,
	DCTRL,
	DSMPP,
	DFILTER,
	DGTPHUB,
	DRANAP,
	DSUA,
	DV42BIS,
	DPCU,
	DVLR,
	DIUCS,
	DSIGTRAN,
	Debug_LastEntry,
};

enum sgsn_log_flt {
	LOG_FLT_GPRS_SUBSCR = _LOG_FLT_COUNT,
	_LOG_FLT_COUNT_SGSN
};

enum sgsn_log_ctx_index {
	LOG_CTX_GPRS_SUBSCR = _LOG_CTX_COUNT,
	_LOG_CTX_COUNT_SGSN
};

extern const struct log_info log_info;

void log_set_filter_gprs_subscriber(struct log_target *target,
				    struct gprs_subscr *gsub);