diff options
| author | Zi Shen Lim <zlim.lnx@gmail.com> | 2016-01-13 23:33:21 -0800 |
|---|---|---|
| committer | Runmin Wang <runminw@codeaurora.org> | 2017-01-13 14:05:44 -0800 |
| commit | 69887b8ceb5341216607c4783e242f0a92dccbda (patch) | |
| tree | 0eb2dd3fc328112da56c2c166c0caa4209d43b7a /kernel/trace/trace_functions_graph.c | |
| parent | 0d5578df07cbcedd13637465384a868eae9109b6 (diff) | |
arm64: insn: remove BUG_ON from codegen
During code generation, we used to BUG_ON unknown/unsupported encoding
or invalid parameters.
Instead, now we report these as errors and simply return the
instruction AARCH64_BREAK_FAULT. Users of these codegen helpers should
check for and handle this failure condition as appropriate.
Otherwise, unhandled codegen failure will result in trapping at
run-time due to AARCH64_BREAK_FAULT, which is arguably better than a
BUG_ON.
Change-Id: I35f8d8960c0a3f6cecf0690e8f93fce339ed8838
Git-commit: c94ae4f7c5ec6b6fddde1c08809d5e32a963d7f3
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Zi Shen Lim <zlim.lnx@gmail.com>
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Runmin Wang <runminw@codeaurora.org>
Diffstat (limited to 'kernel/trace/trace_functions_graph.c')
0 files changed, 0 insertions, 0 deletions
