2017-04-18 02:30:49 +07:00
|
|
|
#ifndef PERF_SRCLINE_H
|
|
|
|
#define PERF_SRCLINE_H
|
|
|
|
|
|
|
|
#include <linux/list.h>
|
|
|
|
#include <linux/types.h>
|
|
|
|
|
|
|
|
struct dso;
|
|
|
|
struct symbol;
|
|
|
|
|
|
|
|
extern bool srcline_full_filename;
|
|
|
|
char *get_srcline(struct dso *dso, u64 addr, struct symbol *sym,
|
|
|
|
bool show_sym, bool show_addr);
|
|
|
|
char *__get_srcline(struct dso *dso, u64 addr, struct symbol *sym,
|
|
|
|
bool show_sym, bool show_addr, bool unwind_inlines);
|
|
|
|
void free_srcline(char *srcline);
|
|
|
|
|
|
|
|
#define SRCLINE_UNKNOWN ((char *) "??:0")
|
|
|
|
|
|
|
|
struct inline_list {
|
2017-10-10 03:32:57 +07:00
|
|
|
struct symbol *symbol;
|
2017-10-10 03:32:58 +07:00
|
|
|
char *srcline;
|
2017-04-18 02:30:49 +07:00
|
|
|
struct list_head list;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct inline_node {
|
|
|
|
u64 addr;
|
|
|
|
struct list_head val;
|
|
|
|
};
|
|
|
|
|
2017-10-10 03:32:57 +07:00
|
|
|
/* parse inlined frames for the given address */
|
|
|
|
struct inline_node *dso__parse_addr_inlines(struct dso *dso, u64 addr,
|
|
|
|
struct symbol *sym);
|
|
|
|
/* free resources associated to the inline node list */
|
2017-04-18 02:30:49 +07:00
|
|
|
void inline_node__delete(struct inline_node *node);
|
|
|
|
|
|
|
|
#endif /* PERF_SRCLINE_H */
|