File: atopacctd.h

package info (click to toggle)
atop 2.6.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,980 kB
  • sloc: ansic: 22,563; python: 253; sh: 220; makefile: 172
file content (35 lines) | stat: -rw-r--r-- 1,072 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
33
34
35
/*
** keys to access the semaphores
*/
#define PACCTPUBKEY	1071980		// # clients using shadow files
#define PACCTPRVKEY	(PACCTPUBKEY-1)	// # atopacctd daemons busy (max. 1)

/*
** name of the PID file
*/
#define	PIDFILE		"/run/atopacctd.pid"

/*
** directory containing the source accounting file and
** the subdirectory (PACCTSHADOWD) containing the shadow file(s)
** this directory can be overruled by a command line parameter (atopacctd)
** or by a keyword in the /etc/atoprc file (atop)
*/
#define	PACCTDIR	"/run"

/*
** accounting file (source file to which kernel writes records)
*/
#define PACCTORIG	"pacct_source"		// file name in PACCTDIR

#define MAXORIGSZ	(1024*1024)		// maximum size of source file

/*
** file and directory names for shadow files
*/
#define PACCTSHADOWD	"pacct_shadow.d"	// directory name in PACCTDIR
#define PACCTSHADOWF	"%s/%s/%010ld.paf"	// file name of shadow file
#define PACCTSHADOWC	"current"		// file containining current
						// sequence and MAXSHADOWREC

#define MAXSHADOWREC	10000 	// number of accounting records per shadow file