Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758291AbYGRNkU (ORCPT ); Fri, 18 Jul 2008 09:40:20 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754458AbYGRNkE (ORCPT ); Fri, 18 Jul 2008 09:40:04 -0400 Received: from mx1.redhat.com ([66.187.233.31]:46714 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756115AbYGRNkD (ORCPT ); Fri, 18 Jul 2008 09:40:03 -0400 Date: Fri, 18 Jul 2008 09:37:59 -0400 From: "Frank Ch. Eigler" To: James Bottomley Cc: Peter Zijlstra , Andi Kleen , linux-kernel , systemtap@sourceware.org, jbeulich@novell.com Subject: Re: [RFC] systemtap: begin the process of using proper kernel APIs (part1: use kprobe symbol_name/offset instead of address) Message-ID: <20080718133759.GO18295@redhat.com> References: <1216146802.3312.95.camel@localhost.localdomain> <87ej5rsgk4.fsf@basil.nowhere.org> <1216373009.5232.130.camel@twins> <1216387284.3811.2.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1216387284.3811.2.camel@localhost.localdomain> User-Agent: Mutt/1.4.1i Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1174 Lines: 30 Hi - On Fri, Jul 18, 2008 at 08:21:24AM -0500, James Bottomley wrote: > [...] I'm not entirely convinced systemtap wants full stack > unwinding in the kernel. Sure we "want" it if we can get it. It enables richer data gathering. It lets scripts act on the contents of the call stack ("is this probe being run due to a callback from this or that shared library?"). > [...] However, systemtap in userspace sees all the relevant dwarf > information as well ... it could do a much better job of unwinding: > give file and line and arguments for function calls, for instance. > All it really needs is to have the relevant pieces of the stack > relayed back. The relevant bits of stack for a userspace program could include several megabytes per thread; without unwind info we can't be sure which parts are which. (A full gdb symbolic backtrace takes seconds to compute - something we can't possibly afford in situ.) - FChE -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/