File Index
Files and directories
Sign in
FILE

values.h

File preview with syntax highlighting.

linux-6.19.14/tools/perf/util/values.h C
 1/* SPDX-License-Identifier: GPL-2.0 */
 2#ifndef __PERF_VALUES_H
 3#define __PERF_VALUES_H
 4
 5#include <stdio.h>
 6#include <linux/types.h>
 7
 8struct evsel;
 9
10struct perf_read_values {
11	int threads;
12	int threads_max;
13	u32 *pid, *tid;
14	int num_counters;
15	int counters_max;
16	struct evsel **counters;
17	u64 **value;
18};
19
20int perf_read_values_init(struct perf_read_values *values);
21void perf_read_values_destroy(struct perf_read_values *values);
22
23int perf_read_values_add_value(struct perf_read_values *values,
24				u32 pid, u32 tid,
25				struct evsel *evsel, u64 value);
26
27void perf_read_values_display(FILE *fp, struct perf_read_values *values,
28			      int raw);
29
30#endif /* __PERF_VALUES_H */
~/ Read-only file preview.