Linux Perf
values.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0 */
2
#ifndef __PERF_VALUES_H
3
#define __PERF_VALUES_H
4
5
#include <linux/types.h>
6
7
struct
perf_read_values
{
8
int
threads
;
9
int
threads_max
;
10
u32 *
pid
, *
tid
;
11
int
counters
;
12
int
counters_max
;
13
u64 *
counterrawid
;
14
char
**
countername
;
15
u64 **
value
;
16
};
17
18
int
perf_read_values_init
(
struct
perf_read_values
*values);
19
void
perf_read_values_destroy
(
struct
perf_read_values
*values);
20
21
int
perf_read_values_add_value
(
struct
perf_read_values
*values,
22
u32
pid
, u32
tid
,
23
u64 rawid,
const
char
*
name
, u64
value
);
24
25
void
perf_read_values_display
(FILE *fp,
struct
perf_read_values
*values,
26
int
raw
);
27
28
#endif
/* __PERF_VALUES_H */
perf_read_values::counters
int counters
Definition:
values.h:11
perf_read_values_display
void perf_read_values_display(FILE *fp, struct perf_read_values *values, int raw)
Definition:
values.c:298
perf_read_values::counterrawid
u64 * counterrawid
Definition:
values.h:13
perf_read_values::counters_max
int counters_max
Definition:
values.h:12
perf_read_values_init
int perf_read_values_init(struct perf_read_values *values)
Definition:
values.c:11
name
const char * name
Definition:
builtin-script.c:1228
perf_read_values_destroy
void perf_read_values_destroy(struct perf_read_values *values)
Definition:
values.c:46
perf_read_values::value
u64 ** value
Definition:
values.h:15
raw
static int raw(yyscan_t scanner)
Definition:
parse-events-flex.c:1844
perf_read_values
Definition:
values.h:7
perf_read_values::pid
u32 * pid
Definition:
values.h:10
perf_read_values_add_value
int perf_read_values_add_value(struct perf_read_values *values, u32 pid, u32 tid, u64 rawid, const char *name, u64 value)
Definition:
values.c:183
perf_read_values::threads_max
int threads_max
Definition:
values.h:9
perf_read_values::tid
u32 * tid
Definition:
values.h:10
perf_read_values::countername
char ** countername
Definition:
values.h:14
perf_read_values::threads
int threads
Definition:
values.h:8
util
values.h
Generated by
1.8.13