projects
/
collectd.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Added FreeBSD support to the cpu module
[collectd.git]
/
src
/
cpu.h
1
#ifndef CPU_H
2
#define CPU_H
3
4
#include "collectd.h"
5
6
#ifndef COLLECT_CPU
7
#if defined(KERNEL_LINUX) || defined(HAVE_LIBKSTAT) || defined(HAVE_SYSCTLBYNAME)
8
#define COLLECT_CPU 1
9
#else
10
#define COLLECT_CPU 0
11
#endif
12
#endif /* !defined(COLLECT_CPU) */
13
14
#if COLLECT_CPU
15
16
void cpu_init (void);
17
void cpu_read (void);
18
19
#endif /* COLLECT_CPU */
20
#endif /* CPU_H */