diff options
author | Shile Zhang <[email protected]> | 2019-12-04 08:46:27 +0800 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2019-12-13 10:47:31 +0100 |
commit | 3c47b787b6516d2c3cbaa193fe13a83adbaaad1f (patch) | |
tree | dfee893f535e2b249c88229d28a79afec7e25452 /scripts/gcc-plugins/cyc_complexity_plugin.c | |
parent | 37d4e84f765bb3038ddfeebdc5d1cfd7e1ef688f (diff) |
scripts/sortextable: Rewrite error/success handling
The scripts/sortextable.c code has originally copied some code from
scripts/recordmount.c, which used the same setjmp/longjmp method to
manage control flow.
Meanwhile recordmcount has improved its error handling via:
3f1df12019f3 ("recordmcount: Rewrite error/success handling").
So rewrite this part of sortextable as well to get rid of the setjmp/longjmp
kludges, with additional refactoring, to make it more readable and
easier to extend.
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]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions