xref: /linux/tools/perf/util/llvm.h (revision 68a052239fc4b351e961f698b824f7654a346091)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __PERF_LLVM_H
3 #define __PERF_LLVM_H
4 
5 #include <stdbool.h>
6 #include <linux/types.h>
7 
8 struct annotate_args;
9 struct dso;
10 struct inline_node;
11 struct symbol;
12 
13 int llvm__addr2line(const char *dso_name, u64 addr,
14 		char **file, unsigned int *line, struct dso *dso,
15 		bool unwind_inlines, struct inline_node *node,
16 		struct symbol *sym);
17 
18 int symbol__disassemble_llvm(const char *filename, struct symbol *sym,
19 			     struct annotate_args *args);
20 
21 #endif /* __PERF_LLVM_H */
22