scripts/kallsyms: change table to store (strcut sym_entry *)
authorMasahiro Yamada <masahiroy@kernel.org>
Sun, 2 Feb 2020 05:09:21 +0000 (14:09 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Mon, 3 Feb 2020 16:54:30 +0000 (01:54 +0900)
commit8d60526999aace135de37220ec94ba40bc792234
treea94acc6e71a69ed9fbe1b88f25d7a81aa7137085
parentbe9f6133f8770bb9c5f4a3cb3df6d30d7d3f7e5b
scripts/kallsyms: change table to store (strcut sym_entry *)

The symbol table is extended every 10000 addition by using realloc(),
where data copy might occur to the new buffer.

To decrease the amount of possible data copy, let's change the table
to store the pointer.

The symbol type + symbol name part is appended at the end of
(struct sym_entry), and allocated together with the struct body.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/kallsyms.c