diff options
Diffstat (limited to 'tools/perf/util/util.h')
| -rw-r--r-- | tools/perf/util/util.h | 17 | 
1 files changed, 16 insertions, 1 deletions
diff --git a/tools/perf/util/util.h b/tools/perf/util/util.h index 8bce58b47a82..291be1d84bc3 100644 --- a/tools/perf/util/util.h +++ b/tools/perf/util/util.h @@ -83,10 +83,10 @@  extern const char *graph_line;  extern const char *graph_dotted_line;  extern char buildid_dir[]; +extern char tracing_path[];  extern char tracing_events_path[];  extern void perf_debugfs_set_path(const char *mountpoint);  const char *perf_debugfs_mount(const char *mountpoint); -const char *find_tracing_dir(void);  char *get_tracing_file(const char *name);  void put_tracing_file(char *file); @@ -318,6 +318,7 @@ static inline int path__join3(char *bf, size_t size,  struct dso;  struct symbol; +extern bool srcline_full_filename;  char *get_srcline(struct dso *dso, u64 addr, struct symbol *sym,  		  bool show_sym);  void free_srcline(char *srcline); @@ -339,4 +340,18 @@ int gzip_decompress_to_file(const char *input, int output_fd);  int lzma_decompress_to_file(const char *input, int output_fd);  #endif +char *asprintf_expr_inout_ints(const char *var, bool in, size_t nints, int *ints); + +static inline char *asprintf_expr_in_ints(const char *var, size_t nints, int *ints) +{ +	return asprintf_expr_inout_ints(var, true, nints, ints); +} + +static inline char *asprintf_expr_not_in_ints(const char *var, size_t nints, int *ints) +{ +	return asprintf_expr_inout_ints(var, false, nints, ints); +} + +int get_stack_size(const char *str, unsigned long *_size); +  #endif /* GIT_COMPAT_UTIL_H */  |