• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/tools/perf/util/ui/browsers/

Lines Matching refs:self

30 struct objdump_line_rb_node *objdump_line__rb(struct objdump_line *self)
32 return (struct objdump_line_rb_node *)(self + 1);
35 static void annotate_browser__write(struct ui_browser *self, void *entry, int row)
38 bool current_entry = ui_browser__is_current_entry(self, row);
39 int width = self->width;
62 static double objdump_line__calc_percent(struct objdump_line *self,
68 if (self->offset != -1) {
74 s64 offset = self->offset;
75 struct objdump_line *next = objdump__get_next_ip_line(head, self);
95 static void objdump__insert_line(struct rb_root *self,
98 struct rb_node **p = &self->rb_node;
111 rb_insert_color(&line->rb_node, self);
114 static void annotate_browser__set_top(struct annotate_browser *self,
121 ui_browser__refresh_dimensions(&self->b);
122 back = self->b.height / 2;
125 self->b.top_idx = self->b.index = rbpos->idx;
127 while (self->b.top_idx != 0 && back != 0) {
130 --self->b.top_idx;
134 self->b.top = pos;
135 self->curr_hot = nd;
138 static int annotate_browser__run(struct annotate_browser *self,
142 struct hist_entry *he = self->b.priv;
144 if (ui_browser__show(&self->b, he->ms.sym->name,
148 newtFormAddHotKey(self->b.form, NEWT_KEY_LEFT);
149 newtFormAddHotKey(self->b.form, NEWT_KEY_RIGHT);
151 nd = self->curr_hot;
153 newtFormAddHotKey(self->b.form, NEWT_KEY_TAB);
154 newtFormAddHotKey(self->b.form, NEWT_KEY_UNTAB);
158 ui_browser__run(&self->b, es);
167 nd = rb_last(&self->entries);
168 annotate_browser__set_top(self, nd);
173 nd = rb_first(&self->entries);
174 annotate_browser__set_top(self, nd);
181 ui_browser__hide(&self->b);
185 int hist_entry__tui_annotate(struct hist_entry *self)
197 .priv = self,
202 if (self->ms.sym == NULL)
205 if (self->ms.map->dso->annotate_warned)
208 if (hist_entry__annotate(self, &head, sizeof(*rbpos)) < 0) {
221 rbpos->percent = objdump_line__calc_percent(pos, &head, self->ms.sym);