summaryrefslogtreecommitdiffstats
path: root/tapset/ucontext-symbols.stp
diff options
context:
space:
mode:
Diffstat (limited to 'tapset/ucontext-symbols.stp')
-rw-r--r--tapset/ucontext-symbols.stp12
1 files changed, 7 insertions, 5 deletions
diff --git a/tapset/ucontext-symbols.stp b/tapset/ucontext-symbols.stp
index 5502f5cd..e884a36b 100644
--- a/tapset/ucontext-symbols.stp
+++ b/tapset/ucontext-symbols.stp
@@ -9,7 +9,7 @@
// <tapsetdescription>
// User context symbol functions provide additional information about
// addresses from an application. These functions can provide
-// information about the user space map (library) that the event occured or
+// information about the user space map (library) that the event occurred or
// the function symbol of an address.
// </tapsetdescription>
@@ -43,17 +43,18 @@ function usymname:string (addr: long) %{ /* pure */
* given address in the current task if known, plus the module name
* (between brackets) and the offset inside the module (shared library),
* plus the size of the symbol function. If any element is not known it
- * will be ommitted and if the symbol name is unknown it will return the
+ * will be omitted and if the symbol name is unknown it will return the
* hex string for the given address.
*/
-function usymdata:string (addr: long) %{ /* pure */
+function usymdata:string (addr: long) %{ /* pure */ /* unprivileged */
+ assert_is_myproc();
_stp_symbol_snprint(THIS->__retvalue, MAXSTRINGLEN, THIS->addr,
current, 1);
%}
/**
* sfunction print_ustack - Print out stack for the current task from string. EXPERIMENTAL!
- * @stk: String with list of hexidecimal addresses for the current task.
+ * @stk: String with list of hexadecimal addresses for the current task.
*
* Perform a symbolic lookup of the addresses in the given string,
* which is assumed to be the result of a prior call to
@@ -63,9 +64,10 @@ function usymdata:string (addr: long) %{ /* pure */
* name of the function containing the address, and an estimate of
* its position within that function. Return nothing.
*/
-function print_ustack(stk:string) %{
+function print_ustack(stk:string) %{ /* pure */ /* unprivileged */
char *ptr = THIS->stk;
char *tok = strsep(&ptr, " ");
+ assert_is_myproc();
while (tok && *tok) {
_stp_print_char(' ');
_stp_usymbol_print (simple_strtol(tok, NULL, 16), current);