From c1b970dec5bdc9a421e9e33dbfefce19edf52962 Mon Sep 17 00:00:00 2001 From: Phil Muldoon Date: Tue, 22 Jul 2008 13:22:23 +0100 Subject: Fix sw 6752. Alter condtional to check for >= 2.6.26. This accounts and fixes false positives in kernel_v strings that return xx.xx.xx.xx over xx.xx.xx. --- tapset/signal.stp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tapset/signal.stp b/tapset/signal.stp index 4fec7c13..1128e6fb 100644 --- a/tapset/signal.stp +++ b/tapset/signal.stp @@ -74,7 +74,7 @@ probe _signal.send.part2 = kernel.function("send_group_sigqueue") probe _signal.send.part3 = kernel.function("send_sigqueue") { name = "send_sigqueue" -%( kernel_v > "2.6.25" %? +%( kernel_v >= "2.6.26" %? task = $t sig = $q->info->si_signo %: -- cgit From 552fdd9f5a7eb3394888356301929c078173a22b Mon Sep 17 00:00:00 2001 From: James Bottomley Date: Wed, 9 Jul 2008 16:58:31 -0500 Subject: fix semantic error: no entrypc found using probe .statement(*@file:line) constructs At the moment, you can't specify probe module("scsi_mod").statement(*@drivers/scsi/scsi_lib.c:1443) because the compiler will fail with the above semantic error on the function scsi_end_bidi_request. It seems looking through the dwarf that this function is fully inlined and thus has no entrypc to catalogue. The solution therefore seems to simply return DWARF_CB_OK when we find such functions and continue cataloguing all the ones that do actually have non-inline versions. Signed-off-by: James Bottomley --- tapsets.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tapsets.cxx b/tapsets.cxx index 8c2bafb1..5a3fbdc8 100644 --- a/tapsets.cxx +++ b/tapsets.cxx @@ -3578,8 +3578,8 @@ query_dwarf_func (Dwarf_Die * func, void * arg) q->filtered_functions.push_back (func); } else - throw semantic_error("no entrypc found for function '" - + q->dw.function_name + "'"); + /* this function just be fully inlined, just ignore it */ + return DWARF_CB_OK; } else if (q->has_statement_num) { -- cgit