ARM: dma-api: fix max_pfn off-by-one error in __dma_supported()
[linux/fpc-iii.git] / tools / perf / pmu-events / jevents.h
blob5cda49a421436d43e162dc04e36287a627ab5830
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 char *deprecated),
12 void *data);
13 char *get_cpu_str(void);
15 #ifndef min
16 #define min(x, y) ({ \
17 typeof(x) _min1 = (x); \
18 typeof(y) _min2 = (y); \
19 (void) (&_min1 == &_min2); \
20 _min1 < _min2 ? _min1 : _min2; })
21 #endif
23 #endif