Package: systemtap
Version: 1.7-1+deb7u1
Severity: normal

Dear Maintainer,

   * What led up to the situation?
I tried to compile a cache_hit_ratio.stp
----------------------------------------------
#!/usr/bin/env stap

global total_bytes, disk_bytes

probe vfs.read.return {
        if (bytes_to_read > 0 && devname != "N/A") {
                total_bytes += bytes_to_read
        }
}

probe ioblock.request {
        mydevname = substr(devname,0,3)
        if (rw == 0 && size > 0 && devname != "N/A" && mydevname != "dm-") {
                disk_bytes += size
        }
}

# stops the script
probe timer.s(30) {
        exit()
}

probe end {
        if(total_bytes == 0)
                hit_rate = 10000
        else if(total_bytes < disk_bytes)
                hit_rate = 0
        else
                hit_rate = 10000 * (total_bytes - disk_bytes) / total_bytes

        printf("%d.%02d\n", hit_rate/100, hit_rate%100)
}

----------------------------------------------
I used the following command to compile:
stap -vv -p 4 -m cache_hit_ratio cache_hit_ratio.stp

----------------------------------------------
I received the following output:
Systemtap translator/driver (version 1.7/0.152 Debian version 1.7-1+deb7u1 
(stable))
Copyright (C) 2005-2012 Red Hat, Inc. and others
This is free software; see the source for copying conditions.
enabled features: AVAHI LIBSQLITE3 NSS BOOST_SHARED_PTR TR1_UNORDERED_MAP NLS
Created temporary directory "/tmp/stapviBYQX"
Session arch: x86_64 release: 3.2.0-4-amd64
Searched: " /usr/share/systemtap/tapset/x86_64/*.stp ", found: 4, processed: 4
Searched: " /usr/share/systemtap/tapset/*.stp ", found: 77, processed: 77
Pass 1: parsed user script and 81 library script(s) using 
78036virt/22508res/2544shr kb, in 140usr/20sys/160real ms.
Attempting to extract kernel debuginfo build ID from 
/lib/modules/3.2.0-4-amd64/build/vmlinux.id
Attempting to extract kernel debuginfo build ID from /sys/kernel/notes
probe vfs_read@/build/linux-tzQDap/linux-3.2.63/fs/read_write.c:364 kernel 
reloc=.dynamic pc=0xffffffff810fb1a8
probe 
generic_make_request@/build/linux-tzQDap/linux-3.2.63/block/blk-core.c:1611 
kernel reloc=.dynamic pc=0xffffffff8119a054
probe 
generic_make_request@/build/linux-tzQDap/linux-3.2.63/block/blk-core.c:1611 
kernel reloc=.dynamic pc=0xffffffff8119a0a4
semantic error: failed to retrieve location attribute for local 'bio' 
(dieoffset: 0x1e58415): identifier '$bio' at 
/usr/share/systemtap/tapset/ioblock.stp:103:33
        source:         devname = __bio_devname($bio)
                                                ^
semantic error: failed to retrieve location attribute for local 'bio' 
(dieoffset: 0x1e58415): identifier '$bio' at :108:14
        source:         rw = $bio->bi_rw
                             ^
semantic error: failed to retrieve location attribute for local 'bio' 
(dieoffset: 0x1e58415): identifier '$bio' at :114:16
        source:         size = $bio->bi_size
                               ^
Pass 2: analyzed script: 6 probe(s), 33 function(s), 7 embed(s), 2 global(s) 
using 274228virt/119048res/7676shr kb, in 1540usr/220sys/1765real ms.
Pass 2: analysis failed.  Try again with another '--vp 01' option.
Running rm -rf /tmp/stapviBYQX
Spawn waitpid result (0x0): 0
Exit error code: 1
----------------------------------------------

I expected the module to compile, as did with all the previous version of 
kernels

Additionally to the packages listed below also the kernel debuginfo package is 
installed:
ii  linux-image-3.2.0-4-amd64-dbg      3.2.63-2


-- System Information:
Debian Release: 7.7
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages systemtap depends on:
ii  libavahi-client3   0.6.31-2
ii  libavahi-common3   0.6.31-2
ii  libc6              2.13-38+deb7u6
ii  libdw1             0.152-1+wheezy1
ii  libelf1            0.152-1+wheezy1
ii  libgcc1            1:4.7.2-5
ii  libnspr4           2:4.9.2-1+deb7u2
ii  libnss3            2:3.14.5-1+deb7u2
ii  libsqlite3-0       3.7.13-1+deb7u1
ii  libstdc++6         4.7.2-5
ii  make               3.81-8.2
ii  systemtap-common   1.7-1+deb7u1
ii  systemtap-runtime  1.7-1+deb7u1

systemtap recommends no packages.

Versions of packages systemtap suggests:
pn  linux-debug                                  <none>
ii  linux-headers-3.2.0-4-amd64 [linux-headers]  3.2.63-2
ii  linux-image-3.2.0-4-amd64 [linux-image]      3.2.63-2
pn  systemtap-doc                                <none>
pn  vim-addon-manager                            <none>

-- no debconf information


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to