Merge branch 'locking-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[cris-mirror.git] / tools / perf / pmu-events / jevents.h
blob4684c673c445798b956a1509b7a84735d89ceaf7
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef JEVENTS_H
3 #define JEVENTS_H 1
5 int json_events(const char *fn,
6 int (*func)(void *data, char *name, char *event, char *desc,
7 char *long_desc,
8 char *pmu,
9 char *unit, char *perpkg, char *metric_expr,
10 char *metric_name, char *metric_group),
11 void *data);
12 char *get_cpu_str(void);
14 #ifndef min
15 #define min(x, y) ({ \
16 typeof(x) _min1 = (x); \
17 typeof(y) _min2 = (y); \
18 (void) (&_min1 == &_min2); \
19 _min1 < _min2 ? _min1 : _min2; })
20 #endif
22 #endif