teawater / kgtp

KGTP is a comprehensive dynamic tracer for analysing Linux kernel and application (including Android) problems on production systems in real time.
http://teawater.github.io/kgtp/
85 stars 36 forks source link

while-stepping twice will got $step_count #14

Open teawater opened 11 years ago

teawater commented 11 years ago

trace vfs_read passcount 1

commands collect $bt collect $step_count while-stepping 2000 collect $bt collect $step_count end end

(gdb) tfind 0 Found trace frame 0, tracepoint 2

0 get_current ()

at /build/buildd/linux-3.2.0/arch/x86/include/asm/current.h:14

14 return percpu_read_stable(current_task); 1: $step_count = 235

teawater commented 10 years ago

Maybe fixed by https://github.com/teawater/kgtp/commit/868d14c621c8a674a1338caa4c5f0ac6b9641cb7