evsel.h (c13aca79ff3c4af5fd31a5b2743a90eba6e36a26) evsel.h (27de9b2bd996de0ca4079c42c81c85158e10145c)
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef __PERF_EVSEL_H
3#define __PERF_EVSEL_H 1
4
5#include <linux/list.h>
6#include <stdbool.h>
7#include <stddef.h>
8#include <linux/perf_event.h>

--- 113 unchanged lines hidden (view full) ---

122 bool no_aux_samples;
123 bool immediate;
124 bool system_wide;
125 bool tracking;
126 bool per_pkg;
127 bool precise_max;
128 bool ignore_missing_thread;
129 bool forced_leader;
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef __PERF_EVSEL_H
3#define __PERF_EVSEL_H 1
4
5#include <linux/list.h>
6#include <stdbool.h>
7#include <stddef.h>
8#include <linux/perf_event.h>

--- 113 unchanged lines hidden (view full) ---

122 bool no_aux_samples;
123 bool immediate;
124 bool system_wide;
125 bool tracking;
126 bool per_pkg;
127 bool precise_max;
128 bool ignore_missing_thread;
129 bool forced_leader;
130 bool use_uncore_alias;
130 /* parse modifier helper */
131 int exclude_GH;
132 int nr_members;
133 int sample_read;
134 unsigned long *per_pkg_mask;
135 struct perf_evsel *leader;
136 char *group_name;
137 bool cmdline_group_boundary;

--- 315 unchanged lines hidden (view full) ---

453 (_evsel) && (_evsel)->leader == (_leader); \
454 (_evsel) = list_entry((_evsel)->node.next, struct perf_evsel, node))
455
456static inline bool perf_evsel__has_branch_callstack(const struct perf_evsel *evsel)
457{
458 return evsel->attr.branch_sample_type & PERF_SAMPLE_BRANCH_CALL_STACK;
459}
460
131 /* parse modifier helper */
132 int exclude_GH;
133 int nr_members;
134 int sample_read;
135 unsigned long *per_pkg_mask;
136 struct perf_evsel *leader;
137 char *group_name;
138 bool cmdline_group_boundary;

--- 315 unchanged lines hidden (view full) ---

454 (_evsel) && (_evsel)->leader == (_leader); \
455 (_evsel) = list_entry((_evsel)->node.next, struct perf_evsel, node))
456
457static inline bool perf_evsel__has_branch_callstack(const struct perf_evsel *evsel)
458{
459 return evsel->attr.branch_sample_type & PERF_SAMPLE_BRANCH_CALL_STACK;
460}
461
462static inline bool evsel__has_callchain(const struct perf_evsel *evsel)
463{
464 return (evsel->attr.sample_type & PERF_SAMPLE_CALLCHAIN) != 0;
465}
466
461typedef int (*attr__fprintf_f)(FILE *, const char *, const char *, void *);
462
463int perf_event_attr__fprintf(FILE *fp, struct perf_event_attr *attr,
464 attr__fprintf_f attr__fprintf, void *priv);
465
466struct perf_env *perf_evsel__env(struct perf_evsel *evsel);
467
468#endif /* __PERF_EVSEL_H */
467typedef int (*attr__fprintf_f)(FILE *, const char *, const char *, void *);
468
469int perf_event_attr__fprintf(FILE *fp, struct perf_event_attr *attr,
470 attr__fprintf_f attr__fprintf, void *priv);
471
472struct perf_env *perf_evsel__env(struct perf_evsel *evsel);
473
474#endif /* __PERF_EVSEL_H */