Linux Perf
jevents.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef JEVENTS_H
3 #define JEVENTS_H 1
4 
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);
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
int(* func)(void)
Definition: clang.c:9
dictionary data
Definition: stat-cpi.py:4
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)
Definition: jevents.c:498
char * get_cpu_str(void)
const char * name
#define event
const char * desc
Definition: clang.c:10