Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

gdp / gdplogd / logd_admin.h @ master

History | View | Annotate | Download (1.95 KB)

1 a0469464 Eric Allman
/* vim: set ai sw=4 sts=4 ts=4 : */
2
3
/*
4
**  ----- BEGIN LICENSE BLOCK -----
5
**        GDPLOGD: Log Daemon for the Global Data Plane
6
**        From the Ubiquitous Swarm Lab, 490 Cory Hall, U.C. Berkeley.
7
**
8 c87dd166 Eric Allman
**        Copyright (c) 2015-2019, Regents of the University of California.
9 a0469464 Eric Allman
**        All rights reserved.
10
**
11
**        Permission is hereby granted, without written agreement and without
12
**        license or royalty fees, to use, copy, modify, and distribute this
13
**        software and its documentation for any purpose, provided that the above
14
**        copyright notice and the following two paragraphs appear in all copies
15
**        of this software.
16
**
17
**        IN NO EVENT SHALL REGENTS BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT,
18
**        SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING LOST
19
**        PROFITS, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION,
20
**        EVEN IF REGENTS HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
21
**
22
**        REGENTS SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT
23
**        LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
24
**        FOR A PARTICULAR PURPOSE. THE SOFTWARE AND ACCOMPANYING DOCUMENTATION,
25
**        IF ANY, PROVIDED HEREUNDER IS PROVIDED "AS IS". REGENTS HAS NO
26
**        OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS,
27
**        OR MODIFICATIONS.
28
**  ----- END LICENSE BLOCK -----
29
*/
30
31
/*
32
**        These headers are not intended for external use.
33
*/
34
35
#ifndef _GDPD_ADMIN_H_
36
#define _GDPD_ADMIN_H_
37
38
#include <stdarg.h>
39
#include <stdint.h>
40
41
/*
42
**  Statistics gathering
43
*/
44
45
extern void                admin_post_stats(
46
                                                uint32_t mask,
47
                                                const char *,
48
                                                ...);
49
extern void                admin_post_statsv(
50
                                                uint32_t mask,
51
                                                const char *,
52
                                                va_list);
53
54
#define ADMIN_LOG_EXIST                0x00000001        // existential (create/destroy) events
55
#define ADMIN_LOG_OPEN                0x00000002        // initial log open
56
#define ADMIN_LOG_READ                0x00000004        // read operations
57
#define ADMIN_LOG_WRITE                0x00000008        // write/append operations
58
#define ADMIN_LOG_SNAPSHOT        0x00000010        // periodic log summary (size, etc.)
59
60
#endif // _GDPD_ADMIN_H_