]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - tools/perf/pmu-events/jevents.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[mirror_ubuntu-bionic-kernel.git] / tools / perf / pmu-events / jevents.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
80eeb67f
AK
2#ifndef JEVENTS_H
3#define JEVENTS_H 1
4
5int json_events(const char *fn,
794ba54a 6 int (*func)(void *data, char *name, char *event, char *desc,
fedb2b51
AK
7 char *long_desc,
8 char *pmu,
96284814
AK
9 char *unit, char *perpkg, char *metric_expr,
10 char *metric_name),
80eeb67f
AK
11 void *data);
12char *get_cpu_str(void);
13
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
21
22#endif