Skip to content

Instantly share code, notes, and snippets.

@agentzh
Created August 14, 2020 20:35
Show Gist options
  • Save agentzh/daba38cfdb1863c54bf7c6a95c512721 to your computer and use it in GitHub Desktop.
Save agentzh/daba38cfdb1863c54bf7c6a95c512721 to your computer and use it in GitHub Desktop.
diff --git a/tapset/linux/context-unwind.stp b/tapset/linux/context-unwind.stp
index 44980d3e3..30d67f880 100644
--- a/tapset/linux/context-unwind.stp
+++ b/tapset/linux/context-unwind.stp
@@ -53,7 +53,7 @@ function print_backtrace_fileline () %{
* final backtrace string).
*/
function sprint_backtrace:string () %{
- /* pure */ /* stable */ /* pragma:unwind */ /* pragma:symbols */
+ /* pure */ /* pragma:unwind */ /* pragma:symbols */
_stp_stack_kernel_sprint (STAP_RETVALUE, MAXSTRINGLEN,
CONTEXT, _STP_SYM_SIMPLE);
%}
@@ -66,7 +66,7 @@ function sprint_backtrace:string () %{
* as per maximum string length (MAXSTRINGLEN). See
* ubacktrace() for user-space backtrace.
*/
-function backtrace:string () %{ /* pure */ /* stable */ /* pragma:unwind */
+function backtrace:string () %{ /* pure */ /* pragma:unwind */
_stp_stack_kernel_sprint (STAP_RETVALUE, MAXSTRINGLEN,
CONTEXT, _STP_SYM_NONE);
%}
diff --git a/tapset/linux/ucontext-unwind.stp b/tapset/linux/ucontext-unwind.stp
index 33e4ca7e2..f424b7e2a 100644
--- a/tapset/linux/ucontext-unwind.stp
+++ b/tapset/linux/ucontext-unwind.stp
@@ -89,7 +89,7 @@ function print_ubacktrace (pc:long, sp:long, fp:long) %{ /* pragma:unwind */ /*
* -d /path/to/exe-or-so and/or add --ldd to load all needed unwind data.
*/
function sprint_ubacktrace:string () %{ /* pragma:unwind */ /* pragma:symbols */
-/* pure */ /* stable */ /* myproc-unprivileged */ /* pragma:uprobes */ /* pragma:vma */
+/* pure */ /* myproc-unprivileged */ /* pragma:uprobes */ /* pragma:vma */
_stp_stack_user_sprint (STAP_RETVALUE, MAXSTRINGLEN, CONTEXT,
_STP_SYM_SIMPLE);
%}
@@ -185,7 +185,7 @@ function print_ubacktrace_fileline (pc:long, sp:long, fp:long) %{ /* pragma:unwi
* -d /path/to/exe-or-so and/or add --ldd to load all needed unwind data.
*/
function ubacktrace:string () %{ /* pragma:unwind */
-/* pure */ /* stable */ /* myproc-unprivileged */ /* pragma:uprobes */ /* pragma:vma */
+/* pure */ /* myproc-unprivileged */ /* pragma:uprobes */ /* pragma:vma */
_stp_stack_user_sprint (STAP_RETVALUE, MAXSTRINGLEN, CONTEXT,
_STP_SYM_NONE);
%}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment