mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 01:53:29 +02:00
Wire up the e_flags now it can be read for a thread. The e_flags encode the CSKY ABI level and this can impact which perf registers need setting up for unwinding. Signed-off-by: Ian Rogers <irogers@google.com> Cc: Aditya Bodkhe <aditya.b1@linux.ibm.com> Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Athira Rajeev <atrajeev@linux.ibm.com> Cc: Chun-Tse Shao <ctshao@google.com> Cc: Guo Ren <guoren@kernel.org> Cc: Howard Chu <howardchu95@gmail.com> Cc: Ingo Molnar <mingo@redhat.com> Cc: James Clark <james.clark@linaro.org> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Sergei Trofimovich <slyich@gmail.com> Cc: Shimin Guo <shimin.guo@skydio.com> Cc: Stephen Brennan <stephen.s.brennan@oracle.com> Cc: Swapnil Sapkal <swapnil.sapkal@amd.com> Cc: Tianyou Li <tianyou.li@intel.com> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
33 lines
628 B
C
33 lines
628 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef __PERF_UNWIND_LIBDW_H
|
|
#define __PERF_UNWIND_LIBDW_H
|
|
|
|
#include <stdint.h>
|
|
#include "unwind.h"
|
|
|
|
struct machine;
|
|
struct perf_sample;
|
|
struct thread;
|
|
|
|
#ifdef HAVE_LIBDW_SUPPORT
|
|
|
|
struct unwind_info {
|
|
void *dwfl;
|
|
struct perf_sample *sample;
|
|
struct machine *machine;
|
|
struct thread *thread;
|
|
unwind_entry_cb_t cb;
|
|
void *arg;
|
|
int max_stack;
|
|
int idx;
|
|
uint32_t e_flags;
|
|
uint16_t e_machine;
|
|
bool best_effort;
|
|
struct unwind_entry entries[];
|
|
};
|
|
|
|
void libdw__invalidate_dwfl(struct maps *maps, void *dwfl);
|
|
#endif
|
|
|
|
#endif /* __PERF_UNWIND_LIBDW_H */
|