diff options
author | Markus Metzger <markus.t.metzger@intel.com> | 2008-01-30 07:31:20 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 07:31:20 -0500 |
commit | e4811f2568c55e595a7bf15a3b9aba863b31fb94 (patch) | |
tree | 3ec3065b06cb5e083ff39b56d242b27e897a4b80 /include/asm-x86/ptrace-abi.h | |
parent | 3c68904fee1459b6d51040864e15d19098eedef7 (diff) |
x86, ptrace: change BTS GET ptrace interface
Change the ptrace interface to mimick an array from newst to oldest.
Signed-off-by: Markus Metzger <markus.t.metzger@intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/asm-x86/ptrace-abi.h')
-rw-r--r-- | include/asm-x86/ptrace-abi.h | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/include/asm-x86/ptrace-abi.h b/include/asm-x86/ptrace-abi.h index 6fadc5214e14..b473ad45e9ca 100644 --- a/include/asm-x86/ptrace-abi.h +++ b/include/asm-x86/ptrace-abi.h | |||
@@ -99,32 +99,27 @@ | |||
99 | ENXIO........no buffer allocated */ | 99 | ENXIO........no buffer allocated */ |
100 | #define PTRACE_BTS_GET_BUFFER_SIZE 42 | 100 | #define PTRACE_BTS_GET_BUFFER_SIZE 42 |
101 | 101 | ||
102 | /* Return the index of the next bts record to be written, | 102 | /* Read the DATA'th bts record into a ptrace_bts_record buffer |
103 | if successful; -1, otherwise. | 103 | provided in ADDR. |
104 | EOPNOTSUPP...processor does not support bts tracing | 104 | Records are ordered from newest to oldest. |
105 | ENXIO........no buffer allocated | ||
106 | After the first warp-around, this is the start of the circular bts buffer. */ | ||
107 | #define PTRACE_BTS_GET_INDEX 43 | ||
108 | |||
109 | /* Read the DATA'th bts record into a ptrace_bts_record buffer provided in ADDR. | ||
110 | Return 0, if successful; -1, otherwise | 105 | Return 0, if successful; -1, otherwise |
111 | EOPNOTSUPP...processor does not support bts tracing | 106 | EOPNOTSUPP...processor does not support bts tracing |
112 | ENXIO........no buffer allocated | 107 | ENXIO........no buffer allocated |
113 | EINVAL.......invalid index */ | 108 | EINVAL.......invalid index */ |
114 | #define PTRACE_BTS_READ_RECORD 44 | 109 | #define PTRACE_BTS_READ_RECORD 43 |
115 | 110 | ||
116 | /* Configure last branch trace; the configuration is given as a bit-mask of | 111 | /* Configure last branch trace; the configuration is given as a bit-mask of |
117 | PTRACE_BTS_O_* options in DATA; parameter ADDR is ignored. | 112 | PTRACE_BTS_O_* options in DATA; parameter ADDR is ignored. |
118 | Return 0, if successful; -1, otherwise | 113 | Return 0, if successful; -1, otherwise |
119 | EOPNOTSUPP...processor does not support bts tracing | 114 | EOPNOTSUPP...processor does not support bts tracing |
120 | ENXIO........no buffer allocated */ | 115 | ENXIO........no buffer allocated */ |
121 | #define PTRACE_BTS_CONFIG 45 | 116 | #define PTRACE_BTS_CONFIG 44 |
122 | 117 | ||
123 | /* Return the configuration as bit-mask of PTRACE_BTS_O_* options | 118 | /* Return the configuration as bit-mask of PTRACE_BTS_O_* options |
124 | if successful; -1, otherwise. | 119 | if successful; -1, otherwise. |
125 | EOPNOTSUPP...processor does not support bts tracing | 120 | EOPNOTSUPP...processor does not support bts tracing |
126 | ENXIO........no buffer allocated */ | 121 | ENXIO........no buffer allocated */ |
127 | #define PTRACE_BTS_STATUS 46 | 122 | #define PTRACE_BTS_STATUS 45 |
128 | 123 | ||
129 | /* Trace configuration options */ | 124 | /* Trace configuration options */ |
130 | /* Collect last branch trace */ | 125 | /* Collect last branch trace */ |