The NetBSD Project

CVS log for src/tests/kernel/arch/amd64/Attic/t_ptrace_wait.c

[BACK] Up to [cvs.NetBSD.org] / src / tests / kernel / arch / amd64

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.8.2.4
Wed Apr 26 02:53:33 2017 UTC (7 years, 9 months ago) by pgoyette
Branches: pgoyette-localcount
FILE REMOVED
Changes since revision 1.8.2.3: +2 -2 lines
Sync with HEAD

Revision 1.9.2.1
Fri Apr 21 16:54:10 2017 UTC (7 years, 9 months ago) by bouyer
Branches: bouyer-socketcan
FILE REMOVED
Changes since revision 1.9: +2 -2 lines
Sync with HEAD

Revision 1.26
Sun Apr 2 01:49:52 2017 UTC (7 years, 10 months ago) by kamil
Branches: MAIN
CVS tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, pgoyette-localcount-20170426, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-socketcan-base1, HEAD
FILE REMOVED
Changes since revision 1.25: +2 -2 lines
Remove kernel/arch/{amd64,i386,x86} tests

These files were merged with kernel/t_ptrace_wait*

This removes MD test files.

Sponsored by <The NetBSD Foundation>

Revision 1.8.2.3: download - view: text, markup, annotated - select for diffs
Mon Mar 20 06:57:57 2017 UTC (7 years, 10 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.8.2.2: preferred, colored; branchpoint 1.8: preferred, colored
Changes since revision 1.8.2.2: +3 -1242 lines
Sync with HEAD

Revision 1.25: download - view: text, markup, annotated - select for diffs
Wed Feb 22 01:07:13 2017 UTC (7 years, 11 months ago) by kamil
Branches: MAIN
CVS tags: pgoyette-localcount-20170320
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +6 -7245 lines
Add kernel/arch/x86 ATF tests for CPU Debug Registers for amd64 and i386

This moves kernel/arch/amd64 tests, the ones to be shared between amd64 and
i386, into kernel/arch/x86. This covers all Debug Register tests.

kernel/arch/amd64 is reduced to regs1
kernel/arch/i386 is reduced to regs1

kernel/arch/x86 tests:
 - dbregs_print
 - dbregs_preserve_dr0
 - dbregs_preserve_dr1
 - dbregs_preserve_dr2
 - dbregs_preserve_dr3
 - dbregs_preserve_dr0_yield
 - dbregs_preserve_dr1_yield
 - dbregs_preserve_dr2_yield
 - dbregs_preserve_dr3_yield
 - dbregs_preserve_dr0_continued
 - dbregs_preserve_dr1_continued
 - dbregs_preserve_dr2_continued
 - dbregs_preserve_dr3_continued
 - dbregs_dr0_trap_variable_writeonly_byte
 - dbregs_dr1_trap_variable_writeonly_byte
 - dbregs_dr2_trap_variable_writeonly_byte
 - dbregs_dr3_trap_variable_writeonly_byte
 - dbregs_dr0_trap_variable_writeonly_2bytes
 - dbregs_dr1_trap_variable_writeonly_2bytes
 - dbregs_dr2_trap_variable_writeonly_2bytes
 - dbregs_dr3_trap_variable_writeonly_2bytes
 - dbregs_dr0_trap_variable_writeonly_4bytes
 - dbregs_dr1_trap_variable_writeonly_4bytes
 - dbregs_dr2_trap_variable_writeonly_4bytes
 - dbregs_dr3_trap_variable_writeonly_4bytes
 - dbregs_dr0_trap_variable_readwrite_write_byte
 - dbregs_dr1_trap_variable_readwrite_write_byte
 - dbregs_dr2_trap_variable_readwrite_write_byte
 - dbregs_dr3_trap_variable_readwrite_write_byte
 - dbregs_dr0_trap_variable_readwrite_write_2bytes
 - dbregs_dr1_trap_variable_readwrite_write_2bytes
 - dbregs_dr2_trap_variable_readwrite_write_2bytes
 - dbregs_dr3_trap_variable_readwrite_write_2bytes
 - dbregs_dr0_trap_variable_readwrite_write_4bytes
 - dbregs_dr1_trap_variable_readwrite_write_4bytes
 - dbregs_dr2_trap_variable_readwrite_write_4bytes
 - dbregs_dr3_trap_variable_readwrite_write_4bytes
 - dbregs_dr0_trap_variable_readwrite_read_byte
 - dbregs_dr1_trap_variable_readwrite_read_byte
 - dbregs_dr2_trap_variable_readwrite_read_byte
 - dbregs_dr3_trap_variable_readwrite_read_byte
 - dbregs_dr0_trap_variable_readwrite_read_2bytes
 - dbregs_dr1_trap_variable_readwrite_read_2bytes
 - dbregs_dr2_trap_variable_readwrite_read_2bytes
 - dbregs_dr3_trap_variable_readwrite_read_2bytes
 - dbregs_dr0_trap_variable_readwrite_read_4bytes
 - dbregs_dr1_trap_variable_readwrite_read_4bytes
 - dbregs_dr2_trap_variable_readwrite_read_4bytes
 - dbregs_dr3_trap_variable_readwrite_read_4bytes
 - dbregs_dr0_trap_code
 - dbregs_dr1_trap_code
 - dbregs_dr2_trap_code
 - dbregs_dr3_trap_code
 - dbregs_dr0_dont_inherit_lwp
 - dbregs_dr1_dont_inherit_lwp
 - dbregs_dr2_dont_inherit_lwp
 - dbregs_dr3_dont_inherit_lwp
 - dbregs_dr6_dont_inherit_lwp
 - dbregs_dr7_dont_inherit_lwp
 - dbregs_dr0_dont_inherit_execve
 - dbregs_dr1_dont_inherit_execve
 - dbregs_dr2_dont_inherit_execve
 - dbregs_dr3_dont_inherit_execve
 - dbregs_dr6_dont_inherit_execve
 - dbregs_dr7_dont_inherit_execve

Sponsored by <The NetBSD Foundation>

Revision 1.24: download - view: text, markup, annotated - select for diffs
Tue Feb 21 08:40:16 2017 UTC (7 years, 11 months ago) by kamil
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +627 -2 lines
Add new tests dbregs_dr*_dont_inherit_execve in arch/amd64

Added tests:
 - dbregs_dr0_dont_inherit_execve
 - dbregs_dr1_dont_inherit_execve
 - dbregs_dr2_dont_inherit_execve
 - dbregs_dr3_dont_inherit_execve
 - dbregs_dr6_dont_inherit_execve
 - dbregs_dr7_dont_inherit_execve

Debug Registers must no be inherited after exec() call.

Sponsored by <The NetBSD Foundation>

Revision 1.23: download - view: text, markup, annotated - select for diffs
Mon Feb 20 06:48:49 2017 UTC (7 years, 11 months ago) by kamil
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +15 -3 lines
Protect dbregs_dr*_dont_inherit_lwp in arch/amd64 with HAVE_DBREGS

The code for debug registers isn't in HEAD and it might break the build.

Sponsored by <The NetBSD Foundation>

Revision 1.22: download - view: text, markup, annotated - select for diffs
Mon Feb 20 06:18:48 2017 UTC (7 years, 11 months ago) by kamil
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +258 -2 lines
Add new tests dbregs_dr[67]_dont_inherit_lwp in arch/amd64

New tests:
 - dbregs_dr6_dont_inherit_lwp
 - dbregs_dr7_dont_inherit_lwp

Debug Registers are set always per-LWP and they are never inherited.
If a user wants to reuse them, there is need to set trap on thread creation
(PTRACE_LWP_CREATE) and set them from a debugger on newly created LWP.

Sponsored by <The NetBSD Foundation>

Revision 1.21: download - view: text, markup, annotated - select for diffs
Mon Feb 20 05:47:59 2017 UTC (7 years, 11 months ago) by kamil
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +2 -86 lines
Fix more issues with compat to i386 in arch/amd64 tests for Debug Registers

Stop compating the number of available registers with 16, it's amd64
specific. i386 ships with 8 Debug Registers.

Sponsored by <The NetBSD Foundation>

Revision 1.20: download - view: text, markup, annotated - select for diffs
Mon Feb 20 05:40:51 2017 UTC (7 years, 11 months ago) by kamil
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +536 -573 lines
Add new tests dbregs_dr*_dont_inherit_lwp and improve i386 compat

Add new tests:
 - dbregs_dr0_dont_inherit_lwp
 - dbregs_dr1_dont_inherit_lwp
 - dbregs_dr2_dont_inherit_lwp
 - dbregs_dr3_dont_inherit_lwp

Fix memcmp(3) usage when comparing registers. Comparing with len is
incorrect as it should be len*sizeof(register) or just sizeof(registers).

Don't check for 16 Debug Registers, it's amd64 specific and not portable
to i386.

Don't compare registers before and after triggering a trap, it's a bug that
was hidden by incorrect usage of memcmp(3).

Sponsored by <The NetBSD Foundation>

Revision 1.19: download - view: text, markup, annotated - select for diffs
Mon Feb 20 02:56:03 2017 UTC (7 years, 11 months ago) by kamil
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +559 -2 lines
Add new tests dbregs_dr[0123]_trap_code in arch/amd64

Add new tests:
 - dbregs_dr0_trap_code
 - dbregs_dr1_trap_code
 - dbregs_dr2_trap_code
 - dbregs_dr3_trap_code

This is the final set of tests for trap types that are supposed to be
supported by all amd64 CPUs.

Traps for code (instruction) execution must be set to 1 byte, otherwise
they are undefined. x86 code traps must point to the first byte of an
instruction.

Sponsored by <The NetBSD Foundation>

Revision 1.18: download - view: text, markup, annotated - select for diffs
Mon Feb 20 01:34:53 2017 UTC (7 years, 11 months ago) by kamil
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +1577 -2 lines
Add new tests dbregs_dr*_trap_variable_readwrite_read_*byte* in arch/amd64

Add new tests:
 - dbregs_dr0_trap_variable_readwrite_read_byte
 - dbregs_dr1_trap_variable_readwrite_read_byte
 - dbregs_dr2_trap_variable_readwrite_read_byte
 - dbregs_dr3_trap_variable_readwrite_read_byte
 - dbregs_dr0_trap_variable_readwrite_read_2bytes
 - dbregs_dr1_trap_variable_readwrite_read_2bytes
 - dbregs_dr2_trap_variable_readwrite_read_2bytes
 - dbregs_dr3_trap_variable_readwrite_read_2bytes
 - dbregs_dr0_trap_variable_readwrite_read_4bytes
 - dbregs_dr1_trap_variable_readwrite_read_4bytes
 - dbregs_dr2_trap_variable_readwrite_read_4bytes
 - dbregs_dr3_trap_variable_readwrite_read_4bytes

Sponsored by <The NetBSD Foundation>

Revision 1.17: download - view: text, markup, annotated - select for diffs
Mon Feb 20 01:21:47 2017 UTC (7 years, 11 months ago) by kamil
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +1614 -39 lines
Add new tests dbregs_dr*_trap_variable_readwrite_write_*byte* in arch/amd64

Add new tests:
 - dbregs_dr0_trap_variable_readwrite_write_byte
 - dbregs_dr1_trap_variable_readwrite_write_byte
 - dbregs_dr2_trap_variable_readwrite_write_byte
 - dbregs_dr3_trap_variable_readwrite_write_byte
 - dbregs_dr0_trap_variable_readwrite_write_2bytes
 - dbregs_dr1_trap_variable_readwrite_write_2bytes
 - dbregs_dr2_trap_variable_readwrite_write_2bytes
 - dbregs_dr3_trap_variable_readwrite_write_2bytes
 - dbregs_dr0_trap_variable_readwrite_write_4bytes
 - dbregs_dr1_trap_variable_readwrite_write_4bytes
 - dbregs_dr2_trap_variable_readwrite_write_4bytes
 - dbregs_dr3_trap_variable_readwrite_write_4bytes

Sponsored by <The NetBSD Foundation>

Revision 1.16: download - view: text, markup, annotated - select for diffs
Sun Feb 19 23:58:30 2017 UTC (7 years, 11 months ago) by kamil
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +1076 -22 lines
Extend dbregs_dr*_trap_variable tests to 1-2-4 byte traps in arch/amd64

Replace the following tests:
 - dbregs_dr0_trap_variable
 - dbregs_dr1_trap_variable
 - dbregs_dr2_trap_variable
 - dbregs_dr3_trap_variable

With new ones:
 - dbregs_dr0_trap_variable_writeonly_byte
 - dbregs_dr1_trap_variable_writeonly_byte
 - dbregs_dr2_trap_variable_writeonly_byte
 - dbregs_dr3_trap_variable_writeonly_byte
 - dbregs_dr0_trap_variable_writeonly_2bytes
 - dbregs_dr1_trap_variable_writeonly_2bytes
 - dbregs_dr2_trap_variable_writeonly_2bytes
 - dbregs_dr3_trap_variable_writeonly_2bytes
 - dbregs_dr0_trap_variable_writeonly_4bytes
 - dbregs_dr1_trap_variable_writeonly_4bytes
 - dbregs_dr2_trap_variable_writeonly_4bytes
 - dbregs_dr3_trap_variable_writeonly_4bytes

All tests pass with my local implementation of debug registers. Once the
interface will be verified, I will prepare it for commit to HEAD.

Sponsored by <The NetBSD Foundation>

Revision 1.15: download - view: text, markup, annotated - select for diffs
Sun Feb 19 22:09:29 2017 UTC (7 years, 11 months ago) by kamil
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +62 -2 lines
Add checks for si_code in dbregs_dr[0123]_trap_variable in ATF arch/amd64

Validate that debug register traps generate appropriate SIGTRAP signal with
TRAP_DBREG property in si_code.

Sponsored by <The NetBSD Foundation>

Revision 1.14: download - view: text, markup, annotated - select for diffs
Sat Feb 18 04:30:34 2017 UTC (7 years, 11 months ago) by kamil
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +140 -140 lines
Synchronize struct dbreg with FreeBSD - rename field member .dbregs to .dr

Currently this code is disabled in HEAD and the dbreg struct has to be
committed first in order to be used. Before enabling it I'm working on
reducing needless differences with FreeBSD and Linux.

Sponsored by <The NetBSD Foundation>

Revision 1.13: download - view: text, markup, annotated - select for diffs
Sat Feb 18 02:28:21 2017 UTC (7 years, 11 months ago) by kamil
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +14 -2 lines
Fix dbregs_dr[0123]_trap_variable in arch/amd64/t_ptrace_wait*

Add missing PT_CONTINUE between two wait(2)-like calls.

Sponsored by <The NetBSD Foundation>

Revision 1.12: download - view: text, markup, annotated - select for diffs
Thu Feb 16 15:57:45 2017 UTC (8 years ago) by kamil
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +817 -640 lines
Switch back arch/amd64/t_ptrace_wait.c to r1.6 and restore original DBREGS

This is preparation to replace watchpoint API to dbregs.

Sponsored by <The NetBSD Foundation>

Revision 1.11: download - view: text, markup, annotated - select for diffs
Wed Jan 18 05:14:34 2017 UTC (8 years, 1 month ago) by kamil
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +194 -2 lines
Use siginfo_t to validate tests/kernel/arch/amd64/t_ptrace_wait*

This change makes sure that the fired expected watchpoint with expected
property. It's done with PT_GET_SIGINFO and checking SIGTRAP codes.

Sponsored by <The NetBSD Foundation>

Revision 1.10: download - view: text, markup, annotated - select for diffs
Mon Jan 16 21:35:59 2017 UTC (8 years, 1 month ago) by kamil
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +28 -2 lines
Refactor ptrace_watchpoint structure to allow extensions

Add new field pw_type in the ptrace_watchpoint structure.

amd64 and i386 offer the current set of watchpoints as
PTRACE_PW_TYPE_DBREGS.

On other archs than x86, there are readily available different types of
hardware assisted watchpoints like for code-only or data-only registers on
ARM. Also in future there is an option to implement MMU-based watchpoints
and future per-port or per-cpu extensions.

Next step is to alter this interface on x86 to generate SIGTRAP with
si_code TRAP_HWWTRAP with additional information on occurred event:
 - which watchpoint fired,
 - additional watchpoint-type specific information, like on amd64 with
   PTRACE_PW_TYPE_DBREGS.:
   * only watchpoint fired
   * watchpoint fired and single step occurred

Adjust ATF tests for the pw_type change.

Sponsored by <The NetBSD Foundation>

Revision 1.9: download - view: text, markup, annotated - select for diffs
Fri Jan 13 21:30:41 2017 UTC (8 years, 1 month ago) by christos
Branches: MAIN
CVS tags: bouyer-socketcan-base
Branch point for: bouyer-socketcan
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +3 -3 lines
Don't play with "../.." in includes for h_macros.h; deal with it centrally.
Minor fixes.

Revision 1.8.2.2: download - view: text, markup, annotated - select for diffs
Sat Jan 7 08:56:54 2017 UTC (8 years, 1 month ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.8.2.1: preferred, colored; branchpoint 1.8: preferred, colored
Changes since revision 1.8.2.1: +1388 -0 lines
Sync with HEAD.  (Note that most of these changes are simply $NetBSD$
tag issues.)

Revision 1.8.2.1
Thu Dec 15 12:15:20 2016 UTC (8 years, 2 months ago) by pgoyette
Branches: pgoyette-localcount
FILE REMOVED
Changes since revision 1.8: +0 -1388 lines
file t_ptrace_wait.c was added on branch pgoyette-localcount on 2017-01-07 08:56:54 +0000

Revision 1.8: download - view: text, markup, annotated - select for diffs
Thu Dec 15 12:15:20 2016 UTC (8 years, 2 months ago) by kamil
Branches: MAIN
CVS tags: pgoyette-localcount-20170107
Branch point for: pgoyette-localcount
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +1242 -2 lines
Add ATF tests for hardware assisted watchpoints on amd64

Addedd tests:
 - watchpoint_count
 - watchpoint_read
 - watchpoint_write_unmodified
 - watchpoint_trap_code[0123]
 - watchpoint_trap_data_write[0123]
 - watchpoint_trap_data_rw[0123]

These code will be reused later for i386 and moved to a common place like
tests/kernel/arch/x86.

These tests are x86 specific only. The same API but different private
ptrace_watchpoint MD part has to be used on other ports.

All tests pass on amd64.

Sponsored by <The NetBSD Foundation>

Revision 1.7: download - view: text, markup, annotated - select for diffs
Tue Dec 13 13:09:00 2016 UTC (8 years, 2 months ago) by kamil
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +6 -1641 lines
Remove dbregs* in arch/amd64/t_ptrace_wait*

CPU Debug Registers won't be exposed as is to userland.

Hardware Watchpoints will be exported to userland dedicated interface
through the ptrace(2) interface.

Sponsored by <The NetBSD Foundation>

Revision 1.6: download - view: text, markup, annotated - select for diffs
Tue Dec 13 13:04:18 2016 UTC (8 years, 2 months ago) by kamil
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +86 -2 lines
Add regs1 in arch/amd64/t_ptrace_wait*

regs1:
    Call PT_GETREGS and iterate over General Purpose registers

Sponsored by <The NetBSD Foundation>

Revision 1.5: download - view: text, markup, annotated - select for diffs
Wed Dec 7 22:24:44 2016 UTC (8 years, 2 months ago) by kamil
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +19 -19 lines
Stop using atf_utils_fork() in tests/kernel/arch/amd64/t_ptrace_wait.c

Switch from:
    child = atf_utils_fork();
to:
    ATF_REQUIRE((child = fork()) != -1);

Prefer the latter as working as intended and not outputing to files with
danger to overwrite files' content after each fork in test-suite.

Discussed with Christos Zoulas.

Sponsored by <The NetBSD Foundation>

Revision 1.4: download - view: text, markup, annotated - select for diffs
Sun Dec 4 03:38:58 2016 UTC (8 years, 2 months ago) by kamil
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +484 -3 lines
Add dbregs_dr[0123]_trap_variable in arch/amd64/t_ptrace_wait*

Add new preliminary tests for testing that CPU Debug Registers can be used
to trap on a variable (write operation).

dbregs_dr0_trap_variable:
    Verify that setting trap with DR0 triggers SIGTRAP

dbregs_dr1_trap_variable:
    Verify that setting trap with DR1 triggers SIGTRAP

dbregs_dr2_trap_variable:
    Verify that setting trap with DR2 triggers SIGTRAP

dbregs_dr3_trap_variable:
    Verify that setting trap with DR3 triggers SIGTRAP

Sponsored by <The NetBSD Foundation>

Revision 1.3: download - view: text, markup, annotated - select for diffs
Sat Dec 3 01:41:15 2016 UTC (8 years, 2 months ago) by kamil
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +778 -22 lines
Define new tests for CPU Debug Registers in t_ptrace_wait{,3,4,6,id,pid}

Rename dbregs1 to dbregs_print
Rename dbregs[2345] to dbregs_preserve_dr[0123]

Add new tests dbregs_preserve_dr[0123]_yield.

dbregs_preserve_dr0_yield:
     Verify that setting DR0 is preserved across ptrace(2) calls with
     scheduler yield

dbregs_preserve_dr1_yield:
     Verify that setting DR1 is preserved across ptrace(2) calls with
     scheduler yield

dbregs_preserve_dr2_yield:
     Verify that setting DR2 is preserved across ptrace(2) calls with
     scheduler yield

dbregs_preserve_dr3_yield:
     Verify that setting DR3 is preserved across ptrace(2) calls with
     scheduler yield

Add new tests dbregs_preserve_dr[0123]_continued.

dbregs_preserve_dr0_continued:
    Verify that setting DR0 is preserved across ptrace(2) calls and with
    continued child

dbregs_preserve_dr1_continued:
    Verify that setting DR1 is preserved across ptrace(2) calls and with
    continued child

dbregs_preserve_dr2_continued:
    Verify that setting DR2 is preserved across ptrace(2) calls and with
    continued child

dbregs_preserve_dr3_continued:
    Verify that setting DR3 is preserved across ptrace(2) calls and with
    continued child

Use more meaningful names for these tests as they are MD specific and
testing precise functionality. Also there will be a growing number of
tests in this category and prefixing everything with plain dbregs and
trailing with a number cannot be verbose.

Sponsored by <The NetBSD Foundation>

Revision 1.2: download - view: text, markup, annotated - select for diffs
Fri Dec 2 06:49:00 2016 UTC (8 years, 2 months ago) by kamil
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +342 -2 lines
Add new tests dbregs[2345] in MD arch/amd64/ t_ptrace_wait{,3,4,6,id,pid}

dbregs2:
    Verify that setting DR0 is preserved across ptrace(2) calls

dbregs3:
    Verify that setting DR1 is preserved across ptrace(2) calls

dbregs4:
    Verify that setting DR2 is preserved across ptrace(2) calls

dbregs5:
    Verify that setting DR3 is preserved across ptrace(2) calls

These tests are deliberately fine-grained as they are expected to penetrate
precisely each functional aspect of CPU Debug Registers on amd64 one after
another.

These tests (and MI ones) might be generated or merged with helper
functions, however in order to copy-and-paste them out of a test-suite and
quickly port to other platform (in order to compare results) it's useful to
keep them as stand-alone as they are.

Code from these tests might be shared with other ports in future, for the
same reason keep them currently as they are.

Sponsored by <The NetBSD Foundation>

Revision 1.1: download - view: text, markup, annotated - select for diffs
Fri Dec 2 05:54:15 2016 UTC (8 years, 2 months ago) by kamil
Branches: MAIN
Refactor location of amd64-specific ATF tests to new dir kernel/arch/amd64

Rename
 - tests/kernel/t_ptrace_amd64_wait.c
to
 - tests/kernel/arch/amd64/t_ptrace_wait.c
and adapt appropriate files accordingly.

New directory will be used for more amd64-specific tests, verifying the
MD parts of the kernel.

Remove old entries from distrib/sets/lists as they were added a while ago.

Sponsored by <The NetBSD Foundation>

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <webmaster@jp.NetBSD.org>