959826ca1b
vendor provided pmu-events tables and sundry cleanups. The vendor pmu-events tables provide counter descriptions, default sample rates, event, umask, and flag values for all the counter configuration permutations. Using this gives us: - much simpler kernel code for the MD component - helpful long and short event descriptions - simpler user code - sample rates that won't overload the system Update man page with newer sample types and remove unused sample type.
23 lines
567 B
C
23 lines
567 B
C
/* $FreeBSD$ */
|
|
#ifndef JEVENTS_H
|
|
#define JEVENTS_H 1
|
|
|
|
int json_events(const char *fn,
|
|
int (*func)(void *data, char *name, const char *event, char *desc,
|
|
char *long_desc,
|
|
char *pmu,
|
|
char *unit, char *perpkg, char *metric_expr,
|
|
char *metric_name, char *metric_group),
|
|
void *data);
|
|
char *get_cpu_str(void);
|
|
|
|
#ifndef min
|
|
#define min(x, y) ({ \
|
|
typeof(x) _min1 = (x); \
|
|
typeof(y) _min2 = (y); \
|
|
(void) (&_min1 == &_min2); \
|
|
_min1 < _min2 ? _min1 : _min2; })
|
|
#endif
|
|
|
|
#endif
|