diff options
author | Oleg Nesterov <oleg@redhat.com> | 2014-05-07 17:59:39 +0200 |
---|---|---|
committer | Oleg Nesterov <oleg@redhat.com> | 2014-05-14 13:57:27 +0200 |
commit | 958d3d729802f7d741cbe8400e69b89baae580ee (patch) | |
tree | 3ed3667300363041c3e81a583db877807ee57589 /tools/perf/scripts/python/netdev-times.py | |
parent | dff0796e53c29147c9bd1f5567a261dcf0e528bc (diff) |
x86/traps: Introduce fill_trap_info(), simplify DO_ERROR_INFO()
Extract the fill-siginfo code from DO_ERROR_INFO() into the new helper,
fill_trap_info().
It can calculate si_code and si_addr looking at trapnr, so we can remove
these arguments from DO_ERROR_INFO() and simplify the source code. The
generated code is the same, __builtin_constant_p(trapnr) == T.
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions