mirror of
https://github.com/torvalds/linux.git
synced 2026-11-28 17:32:32 +00: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 <[email protected]> Cc: Aditya Bodkhe <[email protected]> Cc: Adrian Hunter <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Athira Rajeev <[email protected]> Cc: Chun-Tse Shao <[email protected]> Cc: Guo Ren <[email protected]> Cc: Howard Chu <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: James Clark <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Sergei Trofimovich <[email protected]> Cc: Shimin Guo <[email protected]> Cc: Stephen Brennan <[email protected]> Cc: Swapnil Sapkal <[email protected]> Cc: Tianyou Li <[email protected]> Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
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 */
|