diff options
author | Maciej W. Rozycki <[email protected]> | 2016-03-04 01:44:28 +0000 |
---|---|---|
committer | Ralf Baechle <[email protected]> | 2016-04-03 12:32:09 +0200 |
commit | 3b143cca6e1397188f507a6c727f4108861ceb8b (patch) | |
tree | 18d40c6731a2f8f385c3f2b6f285cde8408e235c /tools/perf/scripts/python/bin/net_dropmonitor-report | |
parent | 748ac56bb9533f867b25325a805d64f52a1a3a88 (diff) |
MIPS: traps: Correct the SIGTRAP debug ABI in `do_watch' and `do_trap_or_bp'
Follow our own rules set in <asm/siginfo.h> for SIGTRAP signals issued
from `do_watch' and `do_trap_or_bp' by setting the signal code to
TRAP_HWBKPT and TRAP_BRKPT respectively, for Watch exceptions and for
those Breakpoint exceptions whose originating BREAK instruction's code
does not have a special meaning. Keep Trap exceptions unaffected as
these are not debug events.
No existing user software is expected to examine signal codes for these
signals as SI_KERNEL has been always used here. This change makes the
MIPS port more like other Linux ports, which reduces the complexity and
provides for performance improvement in GDB.
Signed-off-by: Maciej W. Rozycki <[email protected]>
Cc: Pedro Alves <[email protected]>
Cc: Luis Machado <[email protected]>
Cc: [email protected]
Cc: [email protected]
Patchwork: https://patchwork.linux-mips.org/patch/12758/
Signed-off-by: Ralf Baechle <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/net_dropmonitor-report')
0 files changed, 0 insertions, 0 deletions