Miles Chen
d09c38726c
scripts/sorttable: riscv: fix undeclared identifier 'EM_RISCV' error
...
Fix the following build failure reported in [1] by adding a conditional
definition of EM_RISCV in order to allow cross-compilation on machines
which do not have EM_RISCV definition in their host.
scripts/sorttable.c:352:7: error: use of undeclared identifier 'EM_RISCV'
EM_RISCV was added to <elf.h> in glibc 2.24 so builds on systems with
glibc headers < 2.24 should show this error.
[[email protected] : changelog addition]
Link: https://lore.kernel.org/lkml/[email protected] / [1]
Link: https://lkml.kernel.org/r/[email protected]
Fixes: 54fed35fd3 ("riscv: Enable BUILDTIME_TABLE_SORT")
Signed-off-by: Miles Chen <[email protected] >
Reported-by: Stefan Wahren <[email protected] >
Tested-by: Stefan Wahren <[email protected] >
Reviewed-by: Jisheng Zhang <[email protected] >
Cc: Michal Kubecek <[email protected] >
Cc: Paul Walmsley <[email protected] >
Cc: Palmer Dabbelt <[email protected] >
Cc: Albert Ou <[email protected] >
Cc: Markus Mayer <[email protected] >
Signed-off-by: Andrew Morton <[email protected] >
Signed-off-by: Linus Torvalds <[email protected] >
2021-09-24 16:13:35 -07:00
Jisheng Zhang
54fed35fd3
riscv: Enable BUILDTIME_TABLE_SORT
...
Enable BUILDTIME_TABLE_SORT to sort the exception table at build time
rather than during boot.
Signed-off-by: Jisheng Zhang <[email protected] >
Signed-off-by: Palmer Dabbelt <[email protected] >
2021-09-10 23:59:44 -07:00
Ilya Leoshkevich
05a68e892e
s390/kernel: expand exception table logic to allow new handling options
...
This is a s390 port of commit 548acf1923 ("x86/mm: Expand the
exception table logic to allow new handling options"), which is needed
for implementing BPF_PROBE_MEM on s390.
The new handler field is made 64-bit in order to allow pointing from
dynamically allocated entries to handlers in kernel text. Unlike on x86,
NULL is used instead of ex_handler_default. This is because exception
tables are used by boot/text_dma.S, and it would be a pain to preserve
ex_handler_default.
The new infrastructure is ignored in early_pgm_check_handler, since
there is no pt_regs.
Signed-off-by: Ilya Leoshkevich <[email protected] >
Reviewed-by: Heiko Carstens <[email protected] >
Signed-off-by: Heiko Carstens <[email protected] >
2020-07-20 10:55:50 +02:00
Shile Zhang
57fa189942
scripts/sorttable: Implement build-time ORC unwind table sorting
...
The ORC unwinder has two tables: .orc_unwind_ip and .orc_unwind, which
need to be sorted for binary search. Previously this sorting was done
during bootup.
Sort them at build time to speed up booting.
Add the ORC tables sorting in a parallel build process to speed up the build.
[ mingo: Rewrote the changelog and fixed some comments. ]
Suggested-by: Andy Lutomirski <[email protected] >
Suggested-by: Peter Zijlstra <[email protected] >
Reported-by: kbuild test robot <[email protected] >
Signed-off-by: Shile Zhang <[email protected] >
Acked-by: Peter Zijlstra (Intel) <[email protected] >
Cc: Josh Poimboeuf <[email protected] >
Cc: Masahiro Yamada <[email protected] >
Cc: Michal Marek <[email protected] >
Cc: [email protected]
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected] >
2019-12-13 10:47:58 +01:00
Shile Zhang
1091670637
scripts/sorttable: Rename 'sortextable' to 'sorttable'
...
Use a more generic name for additional table sorting usecases,
such as the upcoming ORC table sorting feature. This tool is
not tied to exception table sorting anymore.
No functional changes intended.
[ mingo: Rewrote the changelog. ]
Signed-off-by: Shile Zhang <[email protected] >
Acked-by: Peter Zijlstra (Intel) <[email protected] >
Cc: Josh Poimboeuf <[email protected] >
Cc: Masahiro Yamada <[email protected] >
Cc: Michal Marek <[email protected] >
Cc: [email protected]
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected] >
2019-12-13 10:47:58 +01:00