4 #include <sys/ttydefaults.h> 6 #include <linux/bitops.h> 7 #include "../../util/util.h" 8 #include "../../util/debug.h" 9 #include "../../util/symbol.h" 10 #include "../browser.h" 11 #include "../helpline.h" 12 #include "../keysyms.h" 33 sym->
binding == STB_GLOBAL ?
'g' :
34 sym->
binding == STB_LOCAL ?
'l' :
'w');
43 return ((
void *)browser) -
sizeof(
struct rb_node) - sizeof(u32);
51 "Prefix with 0x to search by address",
52 target,
"ENTER: OK, ESC: Cancel", 0);
56 if (target[0] ==
'0' &&
tolower(target[1]) ==
'x') {
57 u64 addr = strtoull(target, NULL, 16);
78 "Press ESC to exit, %s / to search",
79 verbose > 0 ?
"" :
"restart with -v to use") < 0)
115 char tmp[BITS_PER_LONG / 4];
118 for (nd = rb_first(mb.
b.
entries); nd; nd = rb_next(nd)) {
121 if (maxaddr < pos->
end)
130 mb.
addrlen = snprintf(tmp,
sizeof(tmp),
"%" PRIx64, maxaddr);
int map__browse(struct map *map)
int ui_browser__show(struct ui_browser *browser, const char *title, const char *helpline,...)
static void map_browser__write(struct ui_browser *browser, void *nd, int row)
bool ui_browser__is_current_entry(struct ui_browser *browser, unsigned row)
struct symbol * map__find_symbol_by_name(struct map *map, const char *name)
static int map_browser__search(struct map_browser *browser)
int ui_browser__input_window(const char *title, const char *text, char *input, const char *exit_msg, int delay_sec)
void ui_helpline__fpush(const char *fmt,...)
struct symbol * map__find_symbol(struct map *map, u64 addr)
void ui_browser__printf(struct ui_browser *browser __maybe_unused, const char *fmt,...)
void ui_browser__write_nstring(struct ui_browser *browser __maybe_unused, const char *msg, unsigned int width)
static int sym(yyscan_t scanner, int type, int config)
static u32 * symbol__browser_index(struct symbol *browser)
int ui_browser__run(struct ui_browser *browser, int delay_secs)
void ui_browser__hide(struct ui_browser *browser)
static int map_browser__run(struct map_browser *browser)
void ui_browser__set_percent_color(struct ui_browser *browser, double percent, bool current)
void ui_browser__rb_tree_seek(struct ui_browser *browser, off_t offset, int whence)
unsigned int ui_browser__rb_tree_refresh(struct ui_browser *browser)