diff options
Diffstat (limited to 'tools/perf/util/map.c')
-rw-r--r-- | tools/perf/util/map.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/tools/perf/util/map.c b/tools/perf/util/map.c index 44a4df68b3cf..e672f2fef65b 100644 --- a/tools/perf/util/map.c +++ b/tools/perf/util/map.c | |||
@@ -579,30 +579,6 @@ struct machine *machines__find(struct rb_root *self, pid_t pid) | |||
579 | return default_machine; | 579 | return default_machine; |
580 | } | 580 | } |
581 | 581 | ||
582 | /* | ||
583 | * FIXME: Why repeatedly search for this? | ||
584 | */ | ||
585 | struct machine *machines__find_host(struct rb_root *self) | ||
586 | { | ||
587 | struct rb_node **p = &self->rb_node; | ||
588 | struct rb_node *parent = NULL; | ||
589 | struct machine *machine; | ||
590 | pid_t pid = HOST_KERNEL_ID; | ||
591 | |||
592 | while (*p != NULL) { | ||
593 | parent = *p; | ||
594 | machine = rb_entry(parent, struct machine, rb_node); | ||
595 | if (pid < machine->pid) | ||
596 | p = &(*p)->rb_left; | ||
597 | else if (pid > machine->pid) | ||
598 | p = &(*p)->rb_right; | ||
599 | else | ||
600 | return machine; | ||
601 | } | ||
602 | |||
603 | return NULL; | ||
604 | } | ||
605 | |||
606 | struct machine *machines__findnew(struct rb_root *self, pid_t pid) | 582 | struct machine *machines__findnew(struct rb_root *self, pid_t pid) |
607 | { | 583 | { |
608 | char path[PATH_MAX]; | 584 | char path[PATH_MAX]; |