History log of /openbsd-current/sys/arch/arm/arm/db_trace.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.16 25-Mar-2021 jsg

remove uneeded includes in md armv7 files

based on include-what-you-use suggestions


Revision tags: OPENBSD_6_8_BASE
# 1.15 11-Sep-2020 mpi

Include <sys/systm.h> directly instead of relying on hidden UVM includes.

The header is being pulled via db_machdep.h -> uvm_extern.h -> uvm_map.h


Revision tags: OPENBSD_6_7_BASE
# 1.14 07-Nov-2019 patrick

Remove get_pc_str_offset(), which has been unused since we switched
to clang, where the stack frame format changed significantly.

Prompted by guenther@ noticing deprecated ASM warnings
ok drahn@


# 1.13 07-Nov-2019 mpi

Convert db_addr_t -> vaddr_t but leave the typedef for now.


# 1.12 07-Nov-2019 mpi

Substitute boolean_t/TRUE/FALSE by int/1/0.


Revision tags: OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE
# 1.11 11-Feb-2018 patrick

Rework the DDB trace handling for armv7. By switching to clang the
stack frame format has changed. Apparently AAPCS doesn't specify
at all what a stack frame looks like. We end up with much simpler
code, but also with a lot less information in the trace.

ok kettenis@


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.10 24-Jan-2017 mpi

Rename pfind(9) into tfind(9) to reflect that it deals with threads.

While here document prfind(9.

with and ok guenther@


# 1.9 20-Sep-2016 jasper

one too many close parentheses

spotted by Markus Hennecke


# 1.8 19-Sep-2016 jasper

ansify function definitions

ok guenther@ millert@


# 1.7 19-Sep-2016 jasper

fix whitespace at EOL


Revision tags: OPENBSD_6_0_BASE
# 1.6 20-Apr-2016 mpi

Don't use DDB_REGS, ok patrick@


Revision tags: OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE
# 1.5 20-Sep-2011 miod

Late spring cleaning of the arm code for old dusty bits we do not want to
keep:
- remove bootconfig parameter passing feature (unused).
- unifdef __PROG32 and remove all remains of arm26 code.
- remove ARMFPE support (unused).
- remove support for ARM2, ARM2AS, ARM3, ARM6, ARM7, ARM7TDMI and StrongARM
processor families, and the related silicon bug workarounds (especially
the SA-110 STM^ bug).
- remove cpu_functions no longer necessary after previous removals.
- remove ARM32_DISABLE_ALIGNMENT_FAULTS option (unused).
- make FIQ support conditional on option FIQ (unused, but may be eventually).

Discussed with drahn@ and jasper@ long ago, I was sitting on this commit for
no good reason.


Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE
# 1.4 27-Nov-2010 miod

Rework the way saved registers are displayed in arm backtraces, to yield a
more compact layout, and use fewer lines. Requested by espie@ long ago due
to the small zaurus screen size.


Revision tags: OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE
# 1.3 29-Nov-2006 miod

Kernel stack can be swapped. This means that stuff that's on the stack
should never be referenced outside the context of the process to which
this stack belongs unless we do the PHOLD/PRELE dance. Loads of code
doesn't follow the rules here. Instead of trying to track down all
offenders and fix this hairy situation, it makes much more sense
to not swap kernel stacks.

From art@, tested by many some time ago.


Revision tags: OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE SMP_SYNC_A SMP_SYNC_B
# 1.2 19-May-2004 drahn

de __P of sys/arch/arm.


Revision tags: OPENBSD_3_5_BASE
# 1.1 01-Feb-2004 drahn

branches: 1.1.2;
Arm port, NetBSD codebase stripped down, 32bit only support.


# 1.15 11-Sep-2020 mpi

Include <sys/systm.h> directly instead of relying on hidden UVM includes.

The header is being pulled via db_machdep.h -> uvm_extern.h -> uvm_map.h


Revision tags: OPENBSD_6_7_BASE
# 1.14 07-Nov-2019 patrick

Remove get_pc_str_offset(), which has been unused since we switched
to clang, where the stack frame format changed significantly.

Prompted by guenther@ noticing deprecated ASM warnings
ok drahn@


# 1.13 07-Nov-2019 mpi

Convert db_addr_t -> vaddr_t but leave the typedef for now.


# 1.12 07-Nov-2019 mpi

Substitute boolean_t/TRUE/FALSE by int/1/0.


Revision tags: OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE
# 1.11 11-Feb-2018 patrick

Rework the DDB trace handling for armv7. By switching to clang the
stack frame format has changed. Apparently AAPCS doesn't specify
at all what a stack frame looks like. We end up with much simpler
code, but also with a lot less information in the trace.

ok kettenis@


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.10 24-Jan-2017 mpi

Rename pfind(9) into tfind(9) to reflect that it deals with threads.

While here document prfind(9.

with and ok guenther@


# 1.9 20-Sep-2016 jasper

one too many close parentheses

spotted by Markus Hennecke


# 1.8 19-Sep-2016 jasper

ansify function definitions

ok guenther@ millert@


# 1.7 19-Sep-2016 jasper

fix whitespace at EOL


Revision tags: OPENBSD_6_0_BASE
# 1.6 20-Apr-2016 mpi

Don't use DDB_REGS, ok patrick@


Revision tags: OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE
# 1.5 20-Sep-2011 miod

Late spring cleaning of the arm code for old dusty bits we do not want to
keep:
- remove bootconfig parameter passing feature (unused).
- unifdef __PROG32 and remove all remains of arm26 code.
- remove ARMFPE support (unused).
- remove support for ARM2, ARM2AS, ARM3, ARM6, ARM7, ARM7TDMI and StrongARM
processor families, and the related silicon bug workarounds (especially
the SA-110 STM^ bug).
- remove cpu_functions no longer necessary after previous removals.
- remove ARM32_DISABLE_ALIGNMENT_FAULTS option (unused).
- make FIQ support conditional on option FIQ (unused, but may be eventually).

Discussed with drahn@ and jasper@ long ago, I was sitting on this commit for
no good reason.


Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE
# 1.4 27-Nov-2010 miod

Rework the way saved registers are displayed in arm backtraces, to yield a
more compact layout, and use fewer lines. Requested by espie@ long ago due
to the small zaurus screen size.


Revision tags: OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE
# 1.3 29-Nov-2006 miod

Kernel stack can be swapped. This means that stuff that's on the stack
should never be referenced outside the context of the process to which
this stack belongs unless we do the PHOLD/PRELE dance. Loads of code
doesn't follow the rules here. Instead of trying to track down all
offenders and fix this hairy situation, it makes much more sense
to not swap kernel stacks.

From art@, tested by many some time ago.


Revision tags: OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE SMP_SYNC_A SMP_SYNC_B
# 1.2 19-May-2004 drahn

de __P of sys/arch/arm.


Revision tags: OPENBSD_3_5_BASE
# 1.1 01-Feb-2004 drahn

branches: 1.1.2;
Arm port, NetBSD codebase stripped down, 32bit only support.


# 1.14 07-Nov-2019 patrick

Remove get_pc_str_offset(), which has been unused since we switched
to clang, where the stack frame format changed significantly.

Prompted by guenther@ noticing deprecated ASM warnings
ok drahn@


# 1.13 07-Nov-2019 mpi

Convert db_addr_t -> vaddr_t but leave the typedef for now.


# 1.12 07-Nov-2019 mpi

Substitute boolean_t/TRUE/FALSE by int/1/0.


Revision tags: OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE
# 1.11 11-Feb-2018 patrick

Rework the DDB trace handling for armv7. By switching to clang the
stack frame format has changed. Apparently AAPCS doesn't specify
at all what a stack frame looks like. We end up with much simpler
code, but also with a lot less information in the trace.

ok kettenis@


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.10 24-Jan-2017 mpi

Rename pfind(9) into tfind(9) to reflect that it deals with threads.

While here document prfind(9.

with and ok guenther@


# 1.9 20-Sep-2016 jasper

one too many close parentheses

spotted by Markus Hennecke


# 1.8 19-Sep-2016 jasper

ansify function definitions

ok guenther@ millert@


# 1.7 19-Sep-2016 jasper

fix whitespace at EOL


Revision tags: OPENBSD_6_0_BASE
# 1.6 20-Apr-2016 mpi

Don't use DDB_REGS, ok patrick@


Revision tags: OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE
# 1.5 20-Sep-2011 miod

Late spring cleaning of the arm code for old dusty bits we do not want to
keep:
- remove bootconfig parameter passing feature (unused).
- unifdef __PROG32 and remove all remains of arm26 code.
- remove ARMFPE support (unused).
- remove support for ARM2, ARM2AS, ARM3, ARM6, ARM7, ARM7TDMI and StrongARM
processor families, and the related silicon bug workarounds (especially
the SA-110 STM^ bug).
- remove cpu_functions no longer necessary after previous removals.
- remove ARM32_DISABLE_ALIGNMENT_FAULTS option (unused).
- make FIQ support conditional on option FIQ (unused, but may be eventually).

Discussed with drahn@ and jasper@ long ago, I was sitting on this commit for
no good reason.


Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE
# 1.4 27-Nov-2010 miod

Rework the way saved registers are displayed in arm backtraces, to yield a
more compact layout, and use fewer lines. Requested by espie@ long ago due
to the small zaurus screen size.


Revision tags: OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE
# 1.3 29-Nov-2006 miod

Kernel stack can be swapped. This means that stuff that's on the stack
should never be referenced outside the context of the process to which
this stack belongs unless we do the PHOLD/PRELE dance. Loads of code
doesn't follow the rules here. Instead of trying to track down all
offenders and fix this hairy situation, it makes much more sense
to not swap kernel stacks.

From art@, tested by many some time ago.


Revision tags: OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE SMP_SYNC_A SMP_SYNC_B
# 1.2 19-May-2004 drahn

de __P of sys/arch/arm.


Revision tags: OPENBSD_3_5_BASE
# 1.1 01-Feb-2004 drahn

branches: 1.1.2;
Arm port, NetBSD codebase stripped down, 32bit only support.


# 1.11 11-Feb-2018 patrick

Rework the DDB trace handling for armv7. By switching to clang the
stack frame format has changed. Apparently AAPCS doesn't specify
at all what a stack frame looks like. We end up with much simpler
code, but also with a lot less information in the trace.

ok kettenis@


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.10 24-Jan-2017 mpi

Rename pfind(9) into tfind(9) to reflect that it deals with threads.

While here document prfind(9.

with and ok guenther@


# 1.9 20-Sep-2016 jasper

one too many close parentheses

spotted by Markus Hennecke


# 1.8 19-Sep-2016 jasper

ansify function definitions

ok guenther@ millert@


# 1.7 19-Sep-2016 jasper

fix whitespace at EOL


Revision tags: OPENBSD_6_0_BASE
# 1.6 20-Apr-2016 mpi

Don't use DDB_REGS, ok patrick@


Revision tags: OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE
# 1.5 20-Sep-2011 miod

Late spring cleaning of the arm code for old dusty bits we do not want to
keep:
- remove bootconfig parameter passing feature (unused).
- unifdef __PROG32 and remove all remains of arm26 code.
- remove ARMFPE support (unused).
- remove support for ARM2, ARM2AS, ARM3, ARM6, ARM7, ARM7TDMI and StrongARM
processor families, and the related silicon bug workarounds (especially
the SA-110 STM^ bug).
- remove cpu_functions no longer necessary after previous removals.
- remove ARM32_DISABLE_ALIGNMENT_FAULTS option (unused).
- make FIQ support conditional on option FIQ (unused, but may be eventually).

Discussed with drahn@ and jasper@ long ago, I was sitting on this commit for
no good reason.


Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE
# 1.4 27-Nov-2010 miod

Rework the way saved registers are displayed in arm backtraces, to yield a
more compact layout, and use fewer lines. Requested by espie@ long ago due
to the small zaurus screen size.


Revision tags: OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE
# 1.3 29-Nov-2006 miod

Kernel stack can be swapped. This means that stuff that's on the stack
should never be referenced outside the context of the process to which
this stack belongs unless we do the PHOLD/PRELE dance. Loads of code
doesn't follow the rules here. Instead of trying to track down all
offenders and fix this hairy situation, it makes much more sense
to not swap kernel stacks.

From art@, tested by many some time ago.


Revision tags: OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE SMP_SYNC_A SMP_SYNC_B
# 1.2 19-May-2004 drahn

de __P of sys/arch/arm.


Revision tags: OPENBSD_3_5_BASE
# 1.1 01-Feb-2004 drahn

branches: 1.1.2;
Arm port, NetBSD codebase stripped down, 32bit only support.


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.10 24-Jan-2017 mpi

Rename pfind(9) into tfind(9) to reflect that it deals with threads.

While here document prfind(9.

with and ok guenther@


# 1.9 20-Sep-2016 jasper

one too many close parentheses

spotted by Markus Hennecke


# 1.8 19-Sep-2016 jasper

ansify function definitions

ok guenther@ millert@


# 1.7 19-Sep-2016 jasper

fix whitespace at EOL


Revision tags: OPENBSD_6_0_BASE
# 1.6 20-Apr-2016 mpi

Don't use DDB_REGS, ok patrick@


Revision tags: OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE
# 1.5 20-Sep-2011 miod

Late spring cleaning of the arm code for old dusty bits we do not want to
keep:
- remove bootconfig parameter passing feature (unused).
- unifdef __PROG32 and remove all remains of arm26 code.
- remove ARMFPE support (unused).
- remove support for ARM2, ARM2AS, ARM3, ARM6, ARM7, ARM7TDMI and StrongARM
processor families, and the related silicon bug workarounds (especially
the SA-110 STM^ bug).
- remove cpu_functions no longer necessary after previous removals.
- remove ARM32_DISABLE_ALIGNMENT_FAULTS option (unused).
- make FIQ support conditional on option FIQ (unused, but may be eventually).

Discussed with drahn@ and jasper@ long ago, I was sitting on this commit for
no good reason.


Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE
# 1.4 27-Nov-2010 miod

Rework the way saved registers are displayed in arm backtraces, to yield a
more compact layout, and use fewer lines. Requested by espie@ long ago due
to the small zaurus screen size.


Revision tags: OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE
# 1.3 29-Nov-2006 miod

Kernel stack can be swapped. This means that stuff that's on the stack
should never be referenced outside the context of the process to which
this stack belongs unless we do the PHOLD/PRELE dance. Loads of code
doesn't follow the rules here. Instead of trying to track down all
offenders and fix this hairy situation, it makes much more sense
to not swap kernel stacks.

From art@, tested by many some time ago.


Revision tags: OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE SMP_SYNC_A SMP_SYNC_B
# 1.2 19-May-2004 drahn

de __P of sys/arch/arm.


Revision tags: OPENBSD_3_5_BASE
# 1.1 01-Feb-2004 drahn

branches: 1.1.2;
Arm port, NetBSD codebase stripped down, 32bit only support.