mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-21 16:29:59 +00:00
![Arnaldo Carvalho de Melo](/assets/img/avatar_default.png)
Will be used when checking if we can encode the PMU number in perf_event_attr.type, part of the logic to use in hybrid systems (multiple types of CPUs, such as Intel's (Alder Lake, etc) or ARM's big.LITTLE). Co-developed-with: Ian Rogers <irogers@google.com> Cc: James Clark <james.clark@arm.com> Cc: John Garry <john.g.garry@oracle.com> Cc: Leo Yan <leo.yan@linaro.org> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Mike Leach <mike.leach@linaro.org> Cc: Sumanth Korikkar <sumanthk@linux.ibm.com> Cc: Suzuki K Poulose <suzuki.poulose@arm.com> Cc: Thomas Richter <tmricht@linux.ibm.com> Cc: Will Deacon <will@kernel.org> Link: https://lore.kernel.org/linux-perf-users/ZIzYgImv61OGK1wA@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
42 lines
1.5 KiB
C
42 lines
1.5 KiB
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef __PERF_PRINT_EVENTS_H
|
|
#define __PERF_PRINT_EVENTS_H
|
|
|
|
#include <linux/perf_event.h>
|
|
#include <linux/types.h>
|
|
#include <stdbool.h>
|
|
|
|
struct event_symbol;
|
|
|
|
struct print_callbacks {
|
|
void (*print_start)(void *print_state);
|
|
void (*print_end)(void *print_state);
|
|
void (*print_event)(void *print_state, const char *topic,
|
|
const char *pmu_name,
|
|
const char *event_name, const char *event_alias,
|
|
const char *scale_unit,
|
|
bool deprecated, const char *event_type_desc,
|
|
const char *desc, const char *long_desc,
|
|
const char *encoding_desc);
|
|
void (*print_metric)(void *print_state,
|
|
const char *group,
|
|
const char *name,
|
|
const char *desc,
|
|
const char *long_desc,
|
|
const char *expr,
|
|
const char *threshold,
|
|
const char *unit);
|
|
};
|
|
|
|
/** Print all events, the default when no options are specified. */
|
|
void print_events(const struct print_callbacks *print_cb, void *print_state);
|
|
int print_hwcache_events(const struct print_callbacks *print_cb, void *print_state);
|
|
void print_sdt_events(const struct print_callbacks *print_cb, void *print_state);
|
|
void print_symbol_events(const struct print_callbacks *print_cb, void *print_state,
|
|
unsigned int type, const struct event_symbol *syms,
|
|
unsigned int max);
|
|
void print_tool_events(const struct print_callbacks *print_cb, void *print_state);
|
|
void print_tracepoint_events(const struct print_callbacks *print_cb, void *print_state);
|
|
bool is_event_supported(u8 type, u64 config);
|
|
|
|
#endif /* __PERF_PRINT_EVENTS_H */
|