mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00

The session holds a perf_env pointer env. In UI code container_of is used to turn the env to a session, but this assumes the session header's env is in use. Rather than a dubious container_of, hold the session in the evlist and derive the env from the session with evsel__env, perf_session__env, etc. Signed-off-by: Ian Rogers <irogers@google.com> Link: https://lore.kernel.org/r/20250724163302.596743-11-irogers@google.com Signed-off-by: Namhyung Kim <namhyung@kernel.org>
15 lines
533 B
C
15 lines
533 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef __SAMPLE_RAW_H
|
|
#define __SAMPLE_RAW_H 1
|
|
|
|
struct evlist;
|
|
union perf_event;
|
|
struct perf_sample;
|
|
|
|
void evlist__s390_sample_raw(struct evlist *evlist, union perf_event *event,
|
|
struct perf_sample *sample);
|
|
bool evlist__has_amd_ibs(struct evlist *evlist);
|
|
void evlist__amd_sample_raw(struct evlist *evlist, union perf_event *event,
|
|
struct perf_sample *sample);
|
|
void evlist__init_trace_event_sample_raw(struct evlist *evlist, struct perf_env *env);
|
|
#endif /* __PERF_EVLIST_H */
|