mirror of
https://github.com/torvalds/linux.git
synced 2024-11-17 01:22:07 +00:00
c93afadc92
On hybrid platform, user may want to enable event only on one pmu. Following syntax will be supported: cpu_core/<event>/ cpu_atom/<event>/ For hardware event, hardware cache event and raw event, two events are created by default. We pass the specified pmu name in parse_state and it would be checked before event creation. So next only the event with the specified pmu would be created. Signed-off-by: Jin Yao <yao.jin@linux.intel.com> Reviewed-by: Jiri Olsa <jolsa@kernel.org> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Andi Kleen <ak@linux.intel.com> Cc: Ingo Molnar <mingo@redhat.com> Cc: Kan Liang <kan.liang@intel.com> Cc: Peter Zijlstra <peterz@infradead.org> Link: https://lore.kernel.org/r/20210427070139.25256-12-yao.jin@linux.intel.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
24 lines
731 B
C
24 lines
731 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef __PERF_PARSE_EVENTS_HYBRID_H
|
|
#define __PERF_PARSE_EVENTS_HYBRID_H
|
|
|
|
#include <linux/list.h>
|
|
#include <stdbool.h>
|
|
#include <linux/types.h>
|
|
#include <linux/perf_event.h>
|
|
#include <string.h>
|
|
|
|
int parse_events__add_numeric_hybrid(struct parse_events_state *parse_state,
|
|
struct list_head *list,
|
|
struct perf_event_attr *attr,
|
|
char *name, struct list_head *config_terms,
|
|
bool *hybrid);
|
|
|
|
int parse_events__add_cache_hybrid(struct list_head *list, int *idx,
|
|
struct perf_event_attr *attr, char *name,
|
|
struct list_head *config_terms,
|
|
bool *hybrid,
|
|
struct parse_events_state *parse_state);
|
|
|
|
#endif /* __PERF_PARSE_EVENTS_HYBRID_H */
|