Debian Codegraph @

testsuite/systemtap.examples/process/auditbt.stp

raw
1 #! /usr/bin/env stap
2
3 # Copyright (C) 2012 Red Hat, Inc.
4 #
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License version 2 as
7 # published by the Free Software Foundation.
8 #
9 # If suspecting particular processes triggering audit records,
10 # reinvoke with stap -d /bin/program -d /lib/library --ldd
11
12 probe kernel.function("audit_log_end") {
13 message_address = $ab->skb->head + 16; // audit data follows struct nlmsghdr
14 message = kernel_string(message_address)
15 printf("%s[%d] %s\n", execname(), tid(), message);
16 print_ubacktrace();
17 }