/usr/share/systemtap/tapset
NameSizeModeActions
arm/-0755rm
arm64/-0755rm
bpf/-0755rm
dyninst/-0755rm
i386/-0755rm
ia64/-0755rm
linux/-0755rm
mips/-0755rm
powerpc/-0755rm
riscv/-0755rm
s390/-0755rm
x86_64/-0755rm
ansi.stp41780644editdlrm
argv.stp27210644editdlrm
choose_defined.stpm2080644editdlrm
container_of.stpm2350644editdlrm
context.stp61030644editdlrm
errno.stp91180644editdlrm
floatingpoint.stp69360644editdlrm
indent-default.stp590644editdlrm
indent.stp45900644editdlrm
init.stp2690644editdlrm
input.stp2630644editdlrm
java.stp13460644editdlrm
libperl5.26.3-64.stp13390644editdlrm
libpython2.7-64.stp5220644editdlrm
livepatch.stp30060644editdlrm
logging.stp41320644editdlrm
macros.stpm5620644editdlrm
null.stp170644editdlrm
offsetof.stpm1830644editdlrm
oneshot.stp380644editdlrm
pn.stp15880644editdlrm
print_stats.stpm17190644editdlrm
private30.stpm800644editdlrm
prometheus.stp1290644editdlrm
prometheus.stpm83800644editdlrm
python.stp4740644editdlrm
python2.stp294350644editdlrm
python3.stp366550644editdlrm
queue_stats.stp94870644editdlrm
random.stp4320644editdlrm
README3710644editdlrm
regex.stp41070644editdlrm
registers.stp110810644editdlrm
sizeof.stpm2120644editdlrm
speculative.stp17460644editdlrm
sreg_arch.stpm2630644editdlrm
stap_staticmarkers.stp96700644editdlrm
stopwatch.stp30630644editdlrm
string.stp75140644editdlrm
switchfile.stp6120644editdlrm
system.stp5930644editdlrm
this.stp1600644editdlrm
timers.stp9240644editdlrm
tls.stp80990644editdlrm
tokenize.stp21240644editdlrm
try_assign.stpm7680644editdlrm
type_defined.stpm3740644editdlrm
tzinfo.stp9300644editdlrm
uconversions-guru.stp60780644editdlrm
uconversions.stp366400644editdlrm
Edit: /usr/share/systemtap/tapset/logging.stp (4132B)
// logging tapset // Copyright (C) 2005-2021 Red Hat Inc. // // This file is part of systemtap, and is free software. You can // redistribute it and/or modify it under the terms of the GNU General // Public License (GPL); either version 2, or (at your option) any // later version. // XXX this and other functions also implemented in tapset/bpf/logging.stp %( runtime != "bpf" %? /** * sfunction log - Send a line to the common trace buffer * * @msg: The formatted message string * * Description: This function logs data. log sends the * message immediately to staprun and to the bulk transport * (relayfs) if it is being used. If the last character given * is not a newline, then one is added. This function is not * as efficient as printf and should be used only for urgent * messages. */ function log (msg:string) %{ /* unprivileged */ /* unmodified-fnargs */ STAP_PRINTF ("%s\n", STAP_ARG_msg); %} /** * sfunction warn - Send a line to the warning stream * * @msg: The formatted message string * * Description: This function sends a warning message immediately to * staprun. It is also sent over the bulk transport (relayfs) if it is * being used. If the last characater is not a newline, the one is added. */ function warn (msg:string) %{ /* unprivileged */ /* unmodified-fnargs */ _stp_warn ("%s", STAP_ARG_msg); %} /** * sfunction exit - Start shutting down probing script. * * Description: This only enqueues a request to start * shutting down the script. New probes will not fire * (except "end" probes), but all currently * running ones may complete their work. */ function exit () %{ /* unprivileged */ atomic_set (session_state(), STAP_SESSION_STOPPING); _stp_exit (); %} %(systemtap_v >= "4.0" %? /** * sfunction abort - Immediately shutting down probing script. * * Description: This is similar to exit() but immediately aborts * the current probe handler instead of waiting for its * completion. Probe handlers already running on *other* CPU cores, * however, will still continue to their completion. Unlike error(), * this function call cannot be caught by 'try ... catch'. */ function abort () %{ /* unprivileged */ atomic_set (session_state(), STAP_SESSION_STOPPING); _stp_exit (); CONTEXT->aborted = 1; CONTEXT->last_stmt = NULL; %} %) /** * sfunction error - Send an error message * * @msg: The formatted message string * * Description: An implicit end-of-line is added. staprun prepends * the string "ERROR:". Sending an error message aborts the currently * running probe. Depending on the MAXERRORS parameter, it may * trigger an exit(). */ function error (msg:string) %{ /* unprivileged */ /* unmodified-fnargs */ /* NB: we used to reuse msg[] for an assignment to last_error; this is clearer & safer. */ strlcpy (CONTEXT->error_buffer, STAP_ARG_msg, MAXSTRINGLEN); CONTEXT->last_error = CONTEXT->error_buffer; CONTEXT->last_stmt = NULL; %} %) // XXX runtime != "bpf" /** * sfunction assert - evaluate assertion * * @expression: The expression to evaluate * * Description: This function checks the expression and aborts the * current running probe if expression evaluates to zero. Uses error() * and may be caught by try{} catch{}. A default message will be * displayed. */ function assert(expression:long) { /* bpf */ /* unprivileged */ if (!expression) { error("Assertion failed") } } /** * sfunction assert - evaluate assertion * * @expression: The expression to evaluate * @msg: The formatted message string * * Description: This function checks the expression and aborts the * current running probe if expression evaluates to zero. Uses error() * and may be caught by try{} catch{}. The specified message will be * displayed. */ function assert(expression:long, msg:string) { /* bpf */ /* unprivileged */ if (!expression) { error(msg) } } %( runtime != "bpf" %? function stp_print_binary(n:long, arg1:long, arg2:long, arg3:long, arg4:long) %{ _stp_print_binary (STAP_ARG_n, STAP_ARG_arg1, STAP_ARG_arg2, STAP_ARG_arg3, STAP_ARG_arg4); %} %)