fche changed the topic of #systemtap to: http://sourceware.org/systemtap; email systemtap@sourceware.org if answers here not timely, conversations may be logged
khaled has quit [Quit: Konversation terminated!]
hpt has joined #systemtap
irker901 has quit [Quit: transmission timeout]
Amy1 has quit [Ping timeout: 256 seconds]
Amy1 has joined #systemtap
orivej has joined #systemtap
hpt has quit [Ping timeout: 250 seconds]
hpt has joined #systemtap
Majo_2 has joined #systemtap
Majo_2 has left #systemtap [#systemtap]
yogananth has joined #systemtap
khaled has joined #systemtap
yogananth has quit [Remote host closed the connection]
yogananth has joined #systemtap
yogananth has quit [Remote host closed the connection]
yogananth has joined #systemtap
yogananth has quit [Remote host closed the connection]
yogananth has joined #systemtap
orivej has quit [Ping timeout: 264 seconds]
hpt has quit [Ping timeout: 256 seconds]
mjw has joined #systemtap
yogananth has quit [Remote host closed the connection]
yogananth has joined #systemtap
yogananth has quit [Remote host closed the connection]
yogananth has joined #systemtap
drsmith has left #systemtap [#systemtap]
drsmith has joined #systemtap
_whitelogger has joined #systemtap
lindi- has joined #systemtap
tromey has joined #systemtap
sapatel has joined #systemtap
yogananth has quit [Quit: Leaving]
orivej has joined #systemtap
amerey has joined #systemtap
pviktori has quit [Quit: No Ping reply in 180 seconds.]
pviktori has joined #systemtap
gavinguo_ has quit [*.net *.split]
gavinguo_ has joined #systemtap
<Amy1> how to print current line number?
<Amy1> I test this "usymline(uaddr())" work.
<fche> Amy1, hm should work
gromero has joined #systemtap
<Amy1> fche: what is hm?
<fche> just thinking noise :)
<fche> usymline(uaddr()) should work
<fche> how are you testing?
<Amy1> Set a mark, and print the line
<Amy1> Many ways can achieve this.
<Amy1> I learned stp for a week when last time I spoke in here. Today, I help others and I can use stp freely.
<fche> nice!
<Amy1> lol
<Amy1> fche: thank you very much. Give us this excellent good tool.
<Amy1> Save us life time.
<fche> heh
<fche> am testing usymline(uaddr()) now and seeing it not work right,
<fche> sudo ./stap -e 'probe process.function("main") { print(usymline(uaddr())) }' -d ./stap -c ./stap with a freshly built stap
<fche> bad stap bad bad sta
<Amy1> do you compile program using -g?
<Amy1> and usysline only work in user space.
<Amy1> If you trace kernel space , it should symfileline(addr())
<fche> yes
<Amy1> Did it work now?
<fche> nah, there is something wrong with at least the userspace side
<Amy1> Did you try statement?
<Amy1> wait a minute, I test it using "process".
<Amy1> wait a minute, I test it using "function"
<Amy1> I test it work
<Amy1> probe process("*").function("main")
<Amy1> {
<Amy1> printf("%s\n",usymline(uaddr()));
<Amy1> }
<Amy1> sudo stap p.stp -c ./a.out
<fche> you want process.function("main") rather than process("*")
<fche> the * is too wide
<Amy1> yeah, I have use stap -L to see probe point. There only one point, and it is my desired.
<Amy1> When I try again, an error occured...
<Amy1> no, again error not occured.
<Amy1> Oh, I had try many times in diffrent machine, it works.
<Amy1> The error is occured when I use full path in process(“/xxx/xx/a.out”).function("main@/xxx/xx/main.c:3") in one machine. The machine seems problem of permission.
<fche> ok
<Amy1> Now I test again, all machines and path work
<Amy1> cool
tromey has quit [Quit: ERC (IRC client for Emacs 28.0.50)]
gromero has quit [Ping timeout: 246 seconds]
gromero has joined #systemtap
orivej has quit [Ping timeout: 240 seconds]
orivej has joined #systemtap
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #systemtap
orivej_ has joined #systemtap
orivej has quit [Ping timeout: 260 seconds]
amerey has quit [Quit: Leaving]
khaled has quit [Quit: Konversation terminated!]