Linux Perf
tool.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0 */
2
#ifndef __PERF_TOOL_H
3
#define __PERF_TOOL_H
4
5
#include <stdbool.h>
6
7
#include <linux/types.h>
8
9
struct
perf_session
;
10
union
perf_event
;
11
struct
perf_evlist
;
12
struct
perf_evsel
;
13
struct
perf_sample
;
14
struct
perf_tool
;
15
struct
machine
;
16
struct
ordered_events
;
17
18
typedef
int (*
event_sample
)(
struct
perf_tool
*
tool
,
union
perf_event
*
event
,
19
struct
perf_sample
*
sample
,
20
struct
perf_evsel
*evsel,
struct
machine
*
machine
);
21
22
typedef
int (*
event_op
)(
struct
perf_tool
*
tool
,
union
perf_event
*
event
,
23
struct
perf_sample
*sample,
struct
machine
*
machine
);
24
25
typedef
int (*
event_attr_op
)(
struct
perf_tool
*
tool
,
26
union
perf_event
*
event
,
27
struct
perf_evlist
**pevlist);
28
29
typedef
int (*
event_op2
)(
struct
perf_tool
*
tool
,
union
perf_event
*
event
,
30
struct
perf_session
*
session
);
31
32
typedef
int (*
event_oe
)(
struct
perf_tool
*
tool
,
union
perf_event
*
event
,
33
struct
ordered_events
*oe);
34
35
typedef
s64 (*
event_op3
)(
struct
perf_tool
*
tool
,
union
perf_event
*
event
,
36
struct
perf_session
*
session
);
37
38
enum
show_feature_header
{
39
SHOW_FEAT_NO_HEADER
= 0,
40
SHOW_FEAT_HEADER
,
41
SHOW_FEAT_HEADER_FULL_INFO
,
42
};
43
44
struct
perf_tool
{
45
event_sample
sample
,
46
read
;
47
event_op
mmap
,
48
mmap2
,
49
comm
,
50
namespaces
,
51
fork
,
52
exit
,
53
lost
,
54
lost_samples
,
55
aux
,
56
itrace_start
,
57
context_switch
,
58
throttle
,
59
unthrottle
;
60
event_attr_op
attr
;
61
event_attr_op
event_update
;
62
event_op2
tracing_data
;
63
event_oe
finished_round
;
64
event_op2
build_id
,
65
id_index
,
66
auxtrace_info
,
67
auxtrace_error
,
68
time_conv
,
69
thread_map
,
70
cpu_map
,
71
stat_config
,
72
stat
,
73
stat_round
,
74
feature
;
75
event_op3
auxtrace
;
76
bool
ordered_events
;
77
bool
ordering_requires_timestamps
;
78
bool
namespace_events
;
79
bool
no_warn
;
80
enum
show_feature_header
show_feat_hdr
;
81
};
82
83
#endif
/* __PERF_TOOL_H */
event_op
int(* event_op)(struct perf_tool *tool, union perf_event *event, struct perf_sample *sample, struct machine *machine)
Definition:
tool.h:22
perf_tool::event_update
event_attr_op event_update
Definition:
tool.h:61
perf_tool::mmap2
event_op mmap2
Definition:
tool.h:47
perf_tool::lost
event_op lost
Definition:
tool.h:47
perf_tool::show_feat_hdr
enum show_feature_header show_feat_hdr
Definition:
tool.h:80
perf_sample
Definition:
event.h:191
machine
Definition:
machine.h:39
perf_tool::lost_samples
event_op lost_samples
Definition:
tool.h:47
perf_tool::tracing_data
event_op2 tracing_data
Definition:
tool.h:62
sample
Definition:
hists_cumulate.c:16
show_feature_header
show_feature_header
Definition:
tool.h:38
event_op3
s64(* event_op3)(struct perf_tool *tool, union perf_event *event, struct perf_session *session)
Definition:
tool.h:35
perf_tool::auxtrace_info
event_op2 auxtrace_info
Definition:
tool.h:64
perf_tool::stat_config
event_op2 stat_config
Definition:
tool.h:64
perf_event
Definition:
event.h:623
event_attr_op
int(* event_attr_op)(struct perf_tool *tool, union perf_event *event, struct perf_evlist **pevlist)
Definition:
tool.h:25
perf_tool
Definition:
tool.h:44
session
static struct perf_session * session
Definition:
builtin-lock.c:34
perf_tool::finished_round
event_oe finished_round
Definition:
tool.h:63
perf_tool::exit
event_op exit
Definition:
tool.h:47
tool
static struct perf_tool tool
Definition:
builtin-diff.c:362
perf_tool::aux
event_op aux
Definition:
tool.h:47
perf_tool::time_conv
event_op2 time_conv
Definition:
tool.h:64
perf_tool::ordered_events
bool ordered_events
Definition:
tool.h:76
SHOW_FEAT_NO_HEADER
Definition:
tool.h:39
perf_tool::cpu_map
event_op2 cpu_map
Definition:
tool.h:64
perf_evsel
Definition:
evsel.h:90
event
#define event
Definition:
parse-events-flex.c:1944
perf_tool::ordering_requires_timestamps
bool ordering_requires_timestamps
Definition:
tool.h:77
perf_tool::thread_map
event_op2 thread_map
Definition:
tool.h:64
event_sample
int(* event_sample)(struct perf_tool *tool, union perf_event *event, struct perf_sample *sample, struct perf_evsel *evsel, struct machine *machine)
Definition:
tool.h:18
SHOW_FEAT_HEADER_FULL_INFO
Definition:
tool.h:41
perf_tool::no_warn
bool no_warn
Definition:
tool.h:79
perf_tool::stat
event_op2 stat
Definition:
tool.h:64
ordered_events
Definition:
ordered-events.h:28
perf_tool::feature
event_op2 feature
Definition:
tool.h:64
event_oe
int(* event_oe)(struct perf_tool *tool, union perf_event *event, struct ordered_events *oe)
Definition:
tool.h:32
perf_tool::stat_round
event_op2 stat_round
Definition:
tool.h:64
SHOW_FEAT_HEADER
Definition:
tool.h:40
perf_tool::namespaces
event_op namespaces
Definition:
tool.h:47
perf_tool::id_index
event_op2 id_index
Definition:
tool.h:64
perf_tool::comm
event_op comm
Definition:
tool.h:47
perf_tool::auxtrace_error
event_op2 auxtrace_error
Definition:
tool.h:64
perf_tool::namespace_events
bool namespace_events
Definition:
tool.h:78
perf_tool::itrace_start
event_op itrace_start
Definition:
tool.h:47
perf_tool::read
event_sample read
Definition:
tool.h:45
perf_tool::unthrottle
event_op unthrottle
Definition:
tool.h:47
perf_evlist
Definition:
evlist.h:27
perf_tool::fork
event_op fork
Definition:
tool.h:47
perf_session
Definition:
session.h:22
perf_tool::attr
event_attr_op attr
Definition:
tool.h:60
perf_tool::throttle
event_op throttle
Definition:
tool.h:47
perf_tool::mmap
event_op mmap
Definition:
tool.h:47
perf_tool::context_switch
event_op context_switch
Definition:
tool.h:47
perf_tool::build_id
event_op2 build_id
Definition:
tool.h:64
perf_tool::auxtrace
event_op3 auxtrace
Definition:
tool.h:75
perf_tool::sample
event_sample sample
Definition:
tool.h:45
event_op2
int(* event_op2)(struct perf_tool *tool, union perf_event *event, struct perf_session *session)
Definition:
tool.h:29
util
tool.h
Generated by
1.8.13