Skip to content

Commit 32e544d

Browse files
committed
parse_sym: break when symbol found in lookup_sym_cache()
The 'break' is miss in lookup_sym_cache(), which makes the symbol lookup slow. Just fix it. Signed-off-by: Menglong Dong <imagedong@tencent.com>
1 parent e8fda43 commit 32e544d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

component/parse_sym.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ static struct sym_result *lookup_sym_cache(__u64 pc, bool exact)
3232
if (head->pc == pc)
3333
return head;
3434
sym = head;
35+
break;
3536
}
3637
} else {
3738
if (head->start == pc)

0 commit comments

Comments
 (0)