This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[SYSTEMTAP/PATCH v2 0/6] RT aware systemtap patch set
- From: Santosh Shukla <sshukla at mvista dot com>
- To: dsmith at redhat dot com, jistone at redhat dot com
- Cc: systemtap at sourceware dot org, Santosh Shukla <sshukla at mvista dot com>
- Date: Tue, 16 Sep 2014 18:19:49 +0530
- Subject: [SYSTEMTAP/PATCH v2 0/6] RT aware systemtap patch set
- Authentication-results: sourceware.org; auth=none
Hi,
This is a v2 version of -rt aware systemtap patchset, tested for 3.14.12-rt9 and for 3.10.40-rt38 kernel version.
For v1->v2 related details refer [1]. Patchset based on stap upstream link [2] master branch.
Change summary;
v1->v2 :
- added Locking helper api. tested for -rt and voluntary mode, works fine.
- reverted v1 change of rd/wr lock with rcu to raw_spinlock in this patch, that
is beacuse for rcu to effectively get in use in stap modules like utrace.c
and task_finder.c, require to make desing change in general. However it would
improve the performance,
- Removed v1's adder_map patch set, as it wasn't troubling -rt mode.
Test script used for testing :
/usr/local/stap/bin/stap -v testsuite/systemtap.examples/network/netdev.stp
/usr/local/stap/bin/stap -v testsuite/systemtap.examples/network/tcpdumplike.stp
Few other test example script used :
cat ../test-indent.stp
probe kernel.function("*@net/socket.c").call
{
printf ("%s -> %s\n", thread_indent(1), probefunc())
}
probe kernel.function("*@net/socket.c").return
{
printf ("%s <- %s\n", thread_indent(-1), probefunc())
}
Like know feedback, comment on patch set. also Does it make sense to maintain
systemtap -rt version in upstream.. do we care?
[1] http://sourceware-org.1504.n7.nabble.com/SYSTEMTAP-PATCH-0-4-RT-aware-systemtap-patch-set-td282463.html
[2] git://sourceware.org/git/systemtap.git; branch master
Santosh Shukla (6):
stp: rt: locking helper api
stp: rt: replace __stp_tf_map_lock rd/wr lock with stp style raw lock
stp: rt: replace __stp_tf_vma_lock rd/wr lock with stp style of raw
lock
stp: rt: replace utrace->lock with stp style raw lock
stp: rt: replace utrace_struct lock to stp style raw lock
stp: rt: replace __stp_tf_task_work_list_lock to stp raw
runtime/linux/task_finder2.c | 14 +++---
runtime/linux/task_finder_map.c | 27 ++++++-----
runtime/stp_helper_lock.h | 80 +++++++++++++++++++++++++++++++
runtime/stp_utrace.c | 103 ++++++++++++++++++++--------------------
runtime/task_finder_vma.c | 33 ++++++-------
5 files changed, 170 insertions(+), 87 deletions(-)
create mode 100644 runtime/stp_helper_lock.h
--
1.8.3.1