mirror of https://gitee.com/openkylin/linux.git
18 lines
417 B
C
18 lines
417 B
C
#ifndef JEVENTS_H
|
|
#define JEVENTS_H 1
|
|
|
|
int json_events(const char *fn,
|
|
int (*func)(void *data, char *name, char *event, char *desc),
|
|
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
|