annotate.h (89fe808ae777728da6e1d78b7d13562792310d17) annotate.h (fc67297b16da335d610af2fac96233d51146300a)
1#ifndef __PERF_ANNOTATE_H
2#define __PERF_ANNOTATE_H
3
4#include <stdbool.h>
5#include <stdint.h>
6#include "types.h"
7#include "symbol.h"
8#include "hist.h"

--- 151 unchanged lines hidden (view full) ---

160 struct perf_evsel *evsel __maybe_unused,
161 struct hist_browser_timer *hbt
162 __maybe_unused)
163{
164 return 0;
165}
166#endif
167
1#ifndef __PERF_ANNOTATE_H
2#define __PERF_ANNOTATE_H
3
4#include <stdbool.h>
5#include <stdint.h>
6#include "types.h"
7#include "symbol.h"
8#include "hist.h"

--- 151 unchanged lines hidden (view full) ---

160 struct perf_evsel *evsel __maybe_unused,
161 struct hist_browser_timer *hbt
162 __maybe_unused)
163{
164 return 0;
165}
166#endif
167
168#ifdef HAVE_GTK2_SUPPORT
169int symbol__gtk_annotate(struct symbol *sym, struct map *map,
170 struct perf_evsel *evsel,
171 struct hist_browser_timer *hbt);
172
173static inline int hist_entry__gtk_annotate(struct hist_entry *he,
174 struct perf_evsel *evsel,
175 struct hist_browser_timer *hbt)
176{
177 return symbol__gtk_annotate(he->ms.sym, he->ms.map, evsel, hbt);
178}
179
180void perf_gtk__show_annotations(void);
181#else
182static inline int hist_entry__gtk_annotate(struct hist_entry *he __maybe_unused,
183 struct perf_evsel *evsel __maybe_unused,
184 struct hist_browser_timer *hbt __maybe_unused)
185{
186 return 0;
187}
188
189static inline void perf_gtk__show_annotations(void) {}
190#endif
191
192extern const char *disassembler_style;
193
194#endif /* __PERF_ANNOTATE_H */
168extern const char *disassembler_style;
169
170#endif /* __PERF_ANNOTATE_H */