summaryrefslogtreecommitdiffstats
path: root/tapset/builtin_logging.stp
blob: 51fb97e4b7c84a07a116e8cf1f66e8cb97268a5c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
function _log (msg) %{
    _stp_log (THIS->msg);
%}

function log (msg) {
   _log (msg . "")
}
function _printk (msg) %{
    printk (KERN_INFO "%s\n", THIS->msg);
%}

function printk (msg) {
    _printk (msg . "")
}
function _warn (msg) %{
    _stp_warn (THIS->msg);
%}

function warn (msg) {
    _warn (msg . "")
}