diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2020-02-02 06:09:21 +0100 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2020-02-03 17:54:30 +0100 |
commit | 8d60526999aace135de37220ec94ba40bc792234 (patch) | |
tree | a94acc6e71a69ed9fbe1b88f25d7a81aa7137085 /kernel/kallsyms.c | |
parent | scripts/kallsyms: rename local variables in read_symbol() (diff) | |
download | linux-8d60526999aace135de37220ec94ba40bc792234.tar.xz linux-8d60526999aace135de37220ec94ba40bc792234.zip |
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>
Diffstat (limited to 'kernel/kallsyms.c')
0 files changed, 0 insertions, 0 deletions