[lkml]   [2013]   [Jul]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subject[ANNOUNCE] ktap 0.2 released

I'm pleased to announce that ktap released v0.2, the archive is available at:

= what's ktap?

A New Scripting Dynamic Tracing Tool For Linux

ktap have different design principles from Linux mainstream dynamic tracing
language in that it's based on bytecode, so it doesn't depend upon GCC,
doesn't require compiling kernel module for each script, safe to use in
production environment, fulfilling the embedd ecosystem's tracing needs.

ktap is released as GPL license.

More information can be found at ktap/doc directory.

= Highlight features

- support tracepoints, k(ret)probe, u(ret)probe, timer, function tracing, etc.
- support x86, x86-64, powerpc, arm, and preempt-rt kernel.
- support kernel 3.1 and later versions, include Linux mainline.

= Script highlight changes from v0.1

* new tracing block syntax (introduce keywords: trace, trace_end)
trace EVENTDEF function (e) { BODY }
trace_end function () { BODY }

* event became to a built-in type in language
print(e) will output string presentation of event.

for syscalls:sys_enter_write event, print(e) will output like:
sys_write(fd: 3, buf: b9369c78, count: 60)

* support trace filter
trace 'sched:sched_switch /prev_comm == foo || next_comm == foo/

* support kprobe/kretprobe (no debuginfo handing)
trace "probe:do_sys_open dfd=%di filename=%dx flags=%cx mode=+4($stack)"
trace "probe:do_sys_open%return fd=$retval"

* support uprobe/uretprobe (no debuginfo handling)
trace "probe:/lib/"
trace "probe:/lib/"

* support function tracing
trace "ftrace:function /ip == mutex*/"

* support oneline scripting
ktap -e 'trace "syscalls:*" function (e) { print(e) }'

* specific pid or cpu to tracing
ktap -C cpu *.kp
ktap -p pid *.kp

* more sample scripts

* support calling print_backtrace() in any context

* support calling exit() in any context

= Backend highlight changes from v0.1

* unified perf callback mechanism
* use ring buffer transport instead of relayfs
* reentrant in ktap tracing
* performance boost(use percpu data in many case)
* safe table/string manipulation
* safe ktap exit
* big code cleanups
* fixed a lot of bugs, more stable than v0.1

= Source code

Please get latest code from:

= Building & Running

[root@jovi]# git clone

[root@jovi]# cd ktap
[root@jovi]# make #generate ktapvm kernel module and ktap binary

[root@jovi]# insmod ./ktapvm.ko
[root@jovi]# ./ktap scripts/

= Samples scripts

There have many samples scripts in README and ktap/scripts.

= Documentation

Documentation is in ktap/doc/

= Mailing list
You can subscribe ktap mailing list at link:

= Feedback

ktap is still under active development, so any feedback, bug reports, patches,
feature requests, as always, is welcome.


 \ /
  Last update: 2013-07-31 05:01    [W:0.027 / U:0.196 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site