License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[linux-2.6-block.git] / tools / perf / util / srcline.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
632a5cab
ACM
2#ifndef PERF_SRCLINE_H
3#define PERF_SRCLINE_H
4
5#include <linux/list.h>
6#include <linux/types.h>
7
8struct dso;
9struct symbol;
10
11extern bool srcline_full_filename;
12char *get_srcline(struct dso *dso, u64 addr, struct symbol *sym,
13 bool show_sym, bool show_addr);
14char *__get_srcline(struct dso *dso, u64 addr, struct symbol *sym,
15 bool show_sym, bool show_addr, bool unwind_inlines);
16void free_srcline(char *srcline);
17
18#define SRCLINE_UNKNOWN ((char *) "??:0")
19
20struct inline_list {
21 char *filename;
22 char *funcname;
23 unsigned int line_nr;
24 struct list_head list;
25};
26
27struct inline_node {
28 u64 addr;
29 struct list_head val;
30};
31
32struct inline_node *dso__parse_addr_inlines(struct dso *dso, u64 addr);
33void inline_node__delete(struct inline_node *node);
34
35#endif /* PERF_SRCLINE_H */