Contributors: 3
Author |
Tokens |
Token Proportion |
Commits |
Commit Proportion |
Andi Kleen |
90 |
94.74% |
5 |
71.43% |
Sukadev Bhattiprolu |
4 |
4.21% |
1 |
14.29% |
Greg Kroah-Hartman |
1 |
1.05% |
1 |
14.29% |
Total |
95 |
|
7 |
|
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef JEVENTS_H
#define JEVENTS_H 1
int json_events(const char *fn,
int (*func)(void *data, char *name, char *event, char *desc,
char *long_desc,
char *pmu,
char *unit, char *perpkg, char *metric_expr,
char *metric_name, char *metric_group),
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