fche changed the topic of #systemtap to: http://sourceware.org/systemtap; email systemtap@sourceware.org if answers here not timely, conversations may be logged
wcohen has joined #systemtap
hpt has joined #systemtap
srikar_away is now known as srikar
hkshaw has joined #systemtap
scox has joined #systemtap
irker335 has quit [Quit: transmission timeout]
ananth has joined #systemtap
srikar is now known as srikar_away
hkshaw1 has joined #systemtap
hkshaw has quit [Ping timeout: 260 seconds]
hkshaw1 is now known as hkshaw_
ravi_ has joined #systemtap
ego has joined #systemtap
ravi_ has quit [Quit: Leaving]
ravi_ has joined #systemtap
srikar_away is now known as srikar
naveen has joined #systemtap
ananth has quit [Ping timeout: 268 seconds]
hchiramm has quit [Ping timeout: 240 seconds]
przemoc has quit [Ping timeout: 260 seconds]
przemoc has joined #systemtap
naveen has quit [Ping timeout: 260 seconds]
hchiramm has joined #systemtap
hkshaw has joined #systemtap
hkshaw_ has quit [Ping timeout: 250 seconds]
ananth has joined #systemtap
naveen has joined #systemtap
hkshaw has quit [Quit: Leaving.]
hkshaw has joined #systemtap
hpt has quit [Ping timeout: 252 seconds]
scox has quit [Ping timeout: 260 seconds]
naveen has left #systemtap [#systemtap]
naveen has joined #systemtap
ego has quit [Ping timeout: 276 seconds]
nkambo1 has joined #systemtap
nkambo has quit [Ping timeout: 260 seconds]
mjw has joined #systemtap
ego has joined #systemtap
ego has quit [Ping timeout: 244 seconds]
scox has joined #systemtap
ravi_ has quit [Ping timeout: 276 seconds]
ego has joined #systemtap
ravi_ has joined #systemtap
scox has quit [Ping timeout: 250 seconds]
srikar is now known as srikar_away
srikar_away is now known as srikar
naveen has left #systemtap [#systemtap]
naveen has joined #systemtap
naveen has quit [Client Quit]
hkshaw has quit [Quit: Leaving.]
ravi_ has quit [Remote host closed the connection]
ananth has quit [Quit: Leaving]
ego has quit [Ping timeout: 260 seconds]
ego has joined #systemtap
srikar is now known as srikar_away
ravi_ has joined #systemtap
scox has joined #systemtap
wcohen has quit [Ping timeout: 276 seconds]
ego has quit [Ping timeout: 268 seconds]
srikar_away is now known as srikar
drsmith has joined #systemtap
naveen has joined #systemtap
effbiai_ is now known as effbiai
tromey has joined #systemtap
wcohen has joined #systemtap
brolley has joined #systemtap
CME has quit [Ping timeout: 264 seconds]
hkshaw has joined #systemtap
ravi_ has quit [Remote host closed the connection]
ppetraki has joined #systemtap
ravi_ has joined #systemtap
ppetraki has quit [Ping timeout: 250 seconds]
hchiramm has quit [Ping timeout: 244 seconds]
ravi_ has quit [Quit: Leaving]
imjorge has joined #systemtap
<imjorge> hi! trying this script with `stap test.stp`
<imjorge> root@vm-devops:~# cat test.stp
<imjorge> #! /usr/bin/env stap
<imjorge> probe oneshot { println("hello world") }
<imjorge> but getting this error:
<imjorge> root@vm-devops:~# stap test.stp
<imjorge> parse error: expected literal string or number
<imjorge> saw: operator ')' at test.stp:2:13
<imjorge> source: probe begin() {
<imjorge> ^
<imjorge> 1 parse error.
<imjorge> Pass 1: parse failed. [man error::pass1]
<imjorge> Tip: /usr/share/doc/systemtap/README.Debian should help you get started.
<imjorge> root@vm-devops:~# vim test.stp
<imjorge> root@vm-devops:~# stap test.stp
<imjorge> semantic error: while resolving probe point: identifier 'oneshot' at test.stp:2:7
<imjorge> source: probe oneshot { println("hello world") }
<imjorge> ^
<imjorge> semantic error: probe point mismatch (alternatives: __nd_syscall __nfs __scheduler __signal __tcpmib __vm _linuxmib _nd_syscall _signal _sunrpc _syscall _vfs begin begin(number) end end(number) error error(number) generic ioblock ioblock_trace ioscheduler ioscheduler_trace ipmib irq_handler kernel kprobe kprocess linuxmib module(string) nd_syscall netdev netfilter never nfs nfsd perf process process(number) process(string) procfs
<imjorge> procfs(string) scheduler scsi signal socket softirq stap staprun sunrpc syscall tcp tcpmib timer tty udp vfs vm workqueue): identifier 'oneshot' at :2:7
<imjorge> source: probe oneshot { println("hello world") }
<imjorge> ^
<imjorge> Pass 2: analysis failed. [man error::pass2]
<imjorge> Tip: /usr/share/doc/systemtap/README.Debian should help you get started.
<imjorge> root@vm-devops:~# lsb_release -a
<imjorge> No LSB modules are available.
<imjorge> Distributor ID: Ubuntu
<imjorge> Description: Ubuntu 14.04.4 LTS
<imjorge> Release: 14.04
<imjorge> Codename: trusty
<imjorge> root@vm-devops:~# arch
<imjorge> x86_64
<imjorge> what am i missing?
<imjorge> picked the example from systemtap website
<flu__> imjorge, what is your stap version?
<flu__> stap --version
<imjorge> Systemtap translator/driver (version 2.3/0.158, Debian version 2.3-1ubuntu1.4 (trusty))
<imjorge> flu__: ^
<imjorge> installed with `apt-get install systemtap`
<flu__> oneshot is only available after version 2.5
<imjorge> hmmm k
<flu__> try 'probe begin {println("hello world")}'
<flu__> no () after the begin
<imjorge> flu__: it works
<imjorge> now, a more convuluted one
<imjorge> # cat test.stp
<imjorge> #!/usr/bin/stap
<imjorge> if (sig_name == "SIGKILL")
<imjorge> probe signal.send {
<imjorge> printf("%s was sent to %s (pid:%d) by %s uid:%d\n", sig_name, pid_name, sig_pid, execname(), uid())
<imjorge> }
<imjorge> root@vm-devops:~# stap test.stp
<imjorge> WARNING: "__tracepoint_signal_generate" [/tmp/stapzy6pTl/stap_7d728fb18b0031e4ab338addb8e89e50_17439.ko] undefined!
<imjorge> ERROR: Couldn't insert module '/tmp/stapzy6pTl/stap_7d728fb18b0031e4ab338addb8e89e50_17439.ko': Unknown symbol in module
<imjorge> WARNING: /usr/bin/staprun exited with status: 1
<imjorge> Pass 5: run failed. [man error::pass5]
<imjorge> Tip: /usr/share/doc/systemtap/README.Debian should help you get started.
<imjorge> root@vm-devops:~# cat test.stp
<imjorge> #!/usr/bin/stap
<imjorge> probe signal.send {
<imjorge> if (sig_name == "SIGKILL")
<imjorge> printf("%s was sent to %s (pid:%d) by %s uid:%d\n", sig_name, pid_name, sig_pid, execname(), uid())
<imjorge> }
<imjorge> also some version thing?
<imjorge> these errors are hard to discern
<flu__> do you have debuginfo installed?
<imjorge> no
<flu__> you probably would want to install it
<imjorge> let me try, tx
naveen has quit [Quit: Leaving.]
<fche> imjorge, when the version of stap you run is significantly older than the version of the kernel you run, things start breaking
<imjorge> fche: how do you go on installing systemtap?
<imjorge> i did with apt-get, perhaps need to do differently?
<fche> apt-get gets you the version from your distro's maintainers
<fche> what version of debian are you running?
<imjorge> fche: Ubuntu 14.04.4 LTS
<imjorge> also, flu__ installing the debug info did not seem to work
<fche> on my ubuntu 14.04 lts vm
<fche> things basically work:
<fche> % uname -a
<fche> Linux vm-ubuntu14 4.2.0-27-generic #32~14.04.1-Ubuntu SMP Fri Jan 22 15:32:26 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
<fche> % stap -V
<fche> Systemtap translator/driver (version 2.3/0.158, Debian version 2.3-1ubuntu1.4 (trusty))
<fche> what kernel version are you running?
CME has joined #systemtap
sjas has quit [Quit: WeeChat 1.4]
<jistone> jeez, even stap-2.3 and linux-4.2 are 2 years apart
<jistone> actually, linux-4.2 is newer than "14.04" would imply -- do they rebase kernels in lts?
<fche> yup, sometimes
<jistone> scary
<fche> and they backport some newer-kernel-compatibility patches into older stap
<jistone> :)
<jistone> ah, ok, if they do patch stap then it could work
zodbot has quit [Disconnected by services]
zodbot has joined #systemtap
przemoc has quit [Quit: messing with stuff]
srikar is now known as srikar_away
sjas has joined #systemtap
hkshaw has quit [Quit: Leaving.]
przemoc has joined #systemtap
ppetraki has joined #systemtap
ppetraki has quit [Ping timeout: 250 seconds]
irker174 has joined #systemtap
<irker174> systemtap: flu systemtap.git:refs/heads/master * release-3.0-33-g51739ee / staprun/monitor.c: monitor mode: bugfix http://tinyurl.com/hr43aww
<irker174> systemtap: fche systemtap.git:refs/heads/master * release-3.0-34-g14a09f0 / staprun/staprun.c: staprun: reinstate -d '*' operation http://tinyurl.com/jb47389
tromey has quit [Quit: ERC (IRC client for Emacs 25.0.92.5)]
ppetraki has joined #systemtap
scox has quit [Ping timeout: 276 seconds]
drsmith has left #systemtap [#systemtap]
mjw has quit [Quit: Leaving]
brolley has left #systemtap [#systemtap]
wcohen has quit [Ping timeout: 250 seconds]
wcohen has joined #systemtap