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
func
int(* func)(void)
Definition:
clang.c:9
stat-cpi.data
dictionary data
Definition:
stat-cpi.py:4
json_events
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
get_cpu_str
char * get_cpu_str(void)
metric_expr
Definition:
metricgroup.h:16
name
const char * name
Definition:
builtin-script.c:1228
event
#define event
Definition:
parse-events-flex.c:1944
desc
const char * desc
Definition:
clang.c:10
pmu-events
jevents.h
Generated by
1.8.13