This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug runtime/10605] New: Unknown symbol in module error (Unknown symbol si_swapinfo)


I have this script.
#cat test.stp
%{
#include <linux/swap.h>
%}

function get_swap_total:long()
%{
        struct sysinfo i;
        si_swapinfo(&i);
        THIS->__retvalue = i.totalswap;

%}

probe timer.s(1)
{
        printf("%d\n", get_swap_total())
        exit()
}

Errors I get are,
#stap -v -g test.stp
Pass 1: parsed user script and 45 library script(s) in 210usr/0sys/217real ms.
Pass 2: analyzed script: 1 probe(s), 2 function(s), 1 embed(s), 0 global(s) in
0usr/0sys/4real ms.
Pass 3: translated to C into
"/tmp/stap8S0mHK/stap_511a6ca4d792dbeb7a947b7bb78723aa_470.c" in
60usr/250sys/310real ms.
Pass 4: compiled C into "stap_511a6ca4d792dbeb7a947b7bb78723aa_470.ko" in
2290usr/360sys/2594real ms.
Pass 5: starting run.
Error inserting module
'/tmp/stap8S0mHK/stap_511a6ca4d792dbeb7a947b7bb78723aa_470.ko': Unknown symbol
in module
Pass 5: run completed in 0usr/10sys/7real ms.
Pass 5: run failed.  Try again with more '-v' (verbose) options.

#dmesg
stap_511a6ca4d792dbeb7a947b7bb78723aa_470: Unknown symbol si_swapinfo


How to call this function(si_swapinfo)?

Thanks,
WK.

-- 
           Summary: Unknown symbol in module error (Unknown symbol
                    si_swapinfo)
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: runtime
        AssignedTo: systemtap at sources dot redhat dot com
        ReportedBy: wangkai at noahsi dot com dot cn


http://sourceware.org/bugzilla/show_bug.cgi?id=10605

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]