From 4718b445d13b07448e71582f29ce1b0979b8dc50 Mon Sep 17 00:00:00 2001 From: Srikar Dronamraju Date: Wed, 4 Feb 2009 12:54:03 +0530 Subject: --author --- tapset/ChangeLog | 5 +++++ tapset/signal.stp | 37 ++++++++++++++++++++++++------------- 2 files changed, 29 insertions(+), 13 deletions(-) diff --git a/tapset/ChangeLog b/tapset/ChangeLog index 1a7df352..570d3697 100644 --- a/tapset/ChangeLog +++ b/tapset/ChangeLog @@ -1,3 +1,8 @@ +2009-02-04 K Prasad + + PR 7030. + * signal.stp: handle functions inlined in 2.6.27+ + 2009-02-03 Frank Ch. Eigler PR 6961/9810. diff --git a/tapset/signal.stp b/tapset/signal.stp index 7f932e77..8c125e80 100644 --- a/tapset/signal.stp +++ b/tapset/signal.stp @@ -84,21 +84,17 @@ probe _signal.send.part4 = kernel.function("specific_send_sig_info") %( kernel_v > "2.6.25" %? probe _signal.send.part1 = kernel.function("send_signal") { - name = "__group_send_sig_info" + if ($group == 1) { + name = "__group_send_sig_info" + shared = 1 + } + else if ($group == 0) { + name = "specific_send_sig_info" + shared = 0 + } sig = $sig task = $t sinfo = $info - shared = 1 - send2queue = 0 -} - -probe _signal.send.part4 = kernel.function("send_signal") -{ - name = "specific_send_sig_info" - sig = $sig - task = $t - sinfo = $info - shared = 0 send2queue = 0 } %) @@ -139,6 +135,22 @@ probe signal.send.return = _signal.send.*.return * and sent by user using something other than kill() * */ +%( kernel_v > "2.6.25" %? +probe _signal.send.part1.return = kernel.function("send_signal").return +{ + if ($group == 1) { + name = "__group_send_sig_info" + shared = 1 + } + else if ($group == 0) { + name = "specific_send_sig_info" + shared = 0 + } + send2queue = 0 +} +%) + +%( kernel_v <= "2.6.25" %? probe _signal.send.part1.return = kernel.function("__group_send_sig_info").return { name = "__group_send_sig_info" @@ -153,7 +165,6 @@ probe _signal.send.part4.return = kernel.function("specific_send_sig_info").retu send2queue = 0 } -%( kernel_v <= "2.6.25" %? /* * - return 0 if the signal is either sucessfully added into the * sigqueue of receiving process or a SI_TIMER entry is already -- cgit From 6b038f0039b6e0f08fdb2cf69765256896950d0c Mon Sep 17 00:00:00 2001 From: Srikar Dronamraju Date: Wed, 4 Feb 2009 14:52:07 +0530 Subject: Merge commit '4718b445d13b07448e71582f29ce1b0979b8dc50' --- tapset/ChangeLog | 5 ----- tapset/signal.stp | 37 +++++++++++++------------------------ 2 files changed, 13 insertions(+), 29 deletions(-) diff --git a/tapset/ChangeLog b/tapset/ChangeLog index 570d3697..1a7df352 100644 --- a/tapset/ChangeLog +++ b/tapset/ChangeLog @@ -1,8 +1,3 @@ -2009-02-04 K Prasad - - PR 7030. - * signal.stp: handle functions inlined in 2.6.27+ - 2009-02-03 Frank Ch. Eigler PR 6961/9810. diff --git a/tapset/signal.stp b/tapset/signal.stp index 8c125e80..7f932e77 100644 --- a/tapset/signal.stp +++ b/tapset/signal.stp @@ -84,17 +84,21 @@ probe _signal.send.part4 = kernel.function("specific_send_sig_info") %( kernel_v > "2.6.25" %? probe _signal.send.part1 = kernel.function("send_signal") { - if ($group == 1) { - name = "__group_send_sig_info" - shared = 1 - } - else if ($group == 0) { - name = "specific_send_sig_info" - shared = 0 - } + name = "__group_send_sig_info" sig = $sig task = $t sinfo = $info + shared = 1 + send2queue = 0 +} + +probe _signal.send.part4 = kernel.function("send_signal") +{ + name = "specific_send_sig_info" + sig = $sig + task = $t + sinfo = $info + shared = 0 send2queue = 0 } %) @@ -135,22 +139,6 @@ probe signal.send.return = _signal.send.*.return * and sent by user using something other than kill() * */ -%( kernel_v > "2.6.25" %? -probe _signal.send.part1.return = kernel.function("send_signal").return -{ - if ($group == 1) { - name = "__group_send_sig_info" - shared = 1 - } - else if ($group == 0) { - name = "specific_send_sig_info" - shared = 0 - } - send2queue = 0 -} -%) - -%( kernel_v <= "2.6.25" %? probe _signal.send.part1.return = kernel.function("__group_send_sig_info").return { name = "__group_send_sig_info" @@ -165,6 +153,7 @@ probe _signal.send.part4.return = kernel.function("specific_send_sig_info").retu send2queue = 0 } +%( kernel_v <= "2.6.25" %? /* * - return 0 if the signal is either sucessfully added into the * sigqueue of receiving process or a SI_TIMER entry is already -- cgit From 4af3dcbd440986b1ce56473c076d9d73fb436ef3 Mon Sep 17 00:00:00 2001 From: K Prasad Date: Wed, 4 Feb 2009 14:55:21 +0530 Subject: Correcting previous commit message and Author 7030: use send_signal instead of generic_send_sig_info and specific_send_sig_info --- tapset/ChangeLog | 5 +++++ tapset/signal.stp | 37 ++++++++++++++++++++++++------------- 2 files changed, 29 insertions(+), 13 deletions(-) diff --git a/tapset/ChangeLog b/tapset/ChangeLog index 1a7df352..570d3697 100644 --- a/tapset/ChangeLog +++ b/tapset/ChangeLog @@ -1,3 +1,8 @@ +2009-02-04 K Prasad + + PR 7030. + * signal.stp: handle functions inlined in 2.6.27+ + 2009-02-03 Frank Ch. Eigler PR 6961/9810. diff --git a/tapset/signal.stp b/tapset/signal.stp index 7f932e77..8c125e80 100644 --- a/tapset/signal.stp +++ b/tapset/signal.stp @@ -84,21 +84,17 @@ probe _signal.send.part4 = kernel.function("specific_send_sig_info") %( kernel_v > "2.6.25" %? probe _signal.send.part1 = kernel.function("send_signal") { - name = "__group_send_sig_info" + if ($group == 1) { + name = "__group_send_sig_info" + shared = 1 + } + else if ($group == 0) { + name = "specific_send_sig_info" + shared = 0 + } sig = $sig task = $t sinfo = $info - shared = 1 - send2queue = 0 -} - -probe _signal.send.part4 = kernel.function("send_signal") -{ - name = "specific_send_sig_info" - sig = $sig - task = $t - sinfo = $info - shared = 0 send2queue = 0 } %) @@ -139,6 +135,22 @@ probe signal.send.return = _signal.send.*.return * and sent by user using something other than kill() * */ +%( kernel_v > "2.6.25" %? +probe _signal.send.part1.return = kernel.function("send_signal").return +{ + if ($group == 1) { + name = "__group_send_sig_info" + shared = 1 + } + else if ($group == 0) { + name = "specific_send_sig_info" + shared = 0 + } + send2queue = 0 +} +%) + +%( kernel_v <= "2.6.25" %? probe _signal.send.part1.return = kernel.function("__group_send_sig_info").return { name = "__group_send_sig_info" @@ -153,7 +165,6 @@ probe _signal.send.part4.return = kernel.function("specific_send_sig_info").retu send2queue = 0 } -%( kernel_v <= "2.6.25" %? /* * - return 0 if the signal is either sucessfully added into the * sigqueue of receiving process or a SI_TIMER entry is already -- cgit From 3ad1e1ee26ea353c75bd03fbf5adbdc56048b840 Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Wed, 4 Feb 2009 13:51:04 +0100 Subject: Mention SystemTap Tapset Reference Manual in NEWS. --- ChangeLog | 4 ++++ NEWS | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/ChangeLog b/ChangeLog index 46046680..1ad7a7b1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2009-02-04 Mark Wielaard + + * NEWS: Mention SystemTap Tapset Reference Manual. + 2009-02-03 Frank Ch. Eigler PR6961/9810. diff --git a/NEWS b/NEWS index 443ec694..c9d13b78 100644 --- a/NEWS +++ b/NEWS @@ -1,5 +1,11 @@ * What's new +- Standard tapsets included with Systemtap were modified to include + extractable documentation information based on the kernel-doc + infrastructure. When configured --enabled-docs a HTML and PDF + version of the Tapset Reference Manual is produced explaining probes + defined in each tapset. + - The systemtap client and compile server are now available. These allow you to compile a systemtap module on a host other than the one which it will be run, providing the client and server -- cgit From 2a3213629454354201dee8adfd9449b992929cac Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Wed, 4 Feb 2009 14:59:03 +0100 Subject: Add beginner guide to NEWS. --- ChangeLog | 4 ++++ NEWS | 9 +++++++++ 2 files changed, 13 insertions(+) diff --git a/ChangeLog b/ChangeLog index 1ad7a7b1..4b7b39f2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2009-02-04 Mark Wielaard + + * NEWS: Add Beginner Guide. + 2009-02-04 Mark Wielaard * NEWS: Mention SystemTap Tapset Reference Manual. diff --git a/NEWS b/NEWS index c9d13b78..45f93c8d 100644 --- a/NEWS +++ b/NEWS @@ -1,5 +1,14 @@ * What's new +- Systemtap now comes with a new Beginners Guide that walks the user + through their first steps setting up stap, understanding how it all + works, introduces some useful scripts and describes some common + pitfalls. It isn't created by default since it needs a Publican + setup, but full build instructions can be found in the wiki: + http://sourceware.org/systemtap/wiki/PublicanQuikHowto + An online version can be found at: + http://sourceware.org/systemtap/SystemTap_Beginners_Guide.pdf + - Standard tapsets included with Systemtap were modified to include extractable documentation information based on the kernel-doc infrastructure. When configured --enabled-docs a HTML and PDF -- cgit From 62c977f56244d133a4723f29345f31f512931c3b Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Wed, 4 Feb 2009 15:17:09 +0100 Subject: Mention run-stap in NEWS. --- ChangeLog | 4 ++++ NEWS | 10 ++++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 4b7b39f2..358518a2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2009-02-04 Mark Wielaard + + * NEWS: Mention run-stap. + 2009-02-04 Mark Wielaard * NEWS: Add Beginner Guide. diff --git a/NEWS b/NEWS index 45f93c8d..c742a999 100644 --- a/NEWS +++ b/NEWS @@ -1,7 +1,13 @@ * What's new -- Systemtap now comes with a new Beginners Guide that walks the user - through their first steps setting up stap, understanding how it all +- For those that really want to run stap from the build tree there is + now the 'run-stap' script in the top-level build directory that sets + up the SYSTEMTAP_TAPSET, SYSTEMTAP_RUNTIME, SYSTEMTAP_STAPRUN, and + SYSTEMTAP_STAPIO environment variables (installing systemtap, in a + local prefix, is still recommended for common use). + +- Systemtap now comes with a new Beginners Guide that walks the user + through their first steps setting up stap, understanding how it all works, introduces some useful scripts and describes some common pitfalls. It isn't created by default since it needs a Publican setup, but full build instructions can be found in the wiki: -- cgit From 76d146ad87baab8ccf3c19cd460c8cf98fe5f9ee Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Wed, 4 Feb 2009 15:34:58 +0100 Subject: Add NEWS process().mark(), sys/sdt.h and dtrace compatibility script. --- ChangeLog | 4 ++++ NEWS | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/ChangeLog b/ChangeLog index 358518a2..8258c422 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2009-02-04 Mark Wielaard + + * NEWS: process().mark(), sys/sdt.h and dtrace compatibility script. + 2009-02-04 Mark Wielaard * NEWS: Mention run-stap. diff --git a/NEWS b/NEWS index c742a999..88e162ef 100644 --- a/NEWS +++ b/NEWS @@ -1,5 +1,12 @@ * What's new +- process().mark() probes are now possible to trace static user space + markers put in programs with the STAP_PROBE macro using the new + sys/sdt.h include file. This also provides dtrace compatible markers + through DTRACE_PROBE and an associated python 'dtrace' script that + can be used in builds based on dtrace that need dtrace -h or -G + functionality. + - For those that really want to run stap from the build tree there is now the 'run-stap' script in the top-level build directory that sets up the SYSTEMTAP_TAPSET, SYSTEMTAP_RUNTIME, SYSTEMTAP_STAPRUN, and -- cgit