netlink: access nlk groups safely in netlink bind and getname
[linux/fpc-iii.git] / tools / perf / pmu-events / jevents.h
blob611fac01913de14335924f1b7e02a86263fa377e
1 #ifndef JEVENTS_H
2 #define JEVENTS_H 1
4 int json_events(const char *fn,
5 int (*func)(void *data, char *name, char *event, char *desc,
6 char *long_desc,
7 char *pmu,
8 char *unit, char *perpkg, char *metric_expr,
9 char *metric_name),
10 void *data);
11 char *get_cpu_str(void);
13 #ifndef min
14 #define min(x, y) ({ \
15 typeof(x) _min1 = (x); \
16 typeof(y) _min2 = (y); \
17 (void) (&_min1 == &_min2); \
18 _min1 < _min2 ? _min1 : _min2; })
19 #endif
21 #endif