From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12231 invoked by alias); 3 Sep 2010 23:00:54 -0000 Mailing-List: contact archer-help@sourceware.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Subscribe: List-Id: Received: (qmail 12218 invoked by uid 22791); 3 Sep 2010 23:00:53 -0000 X-SWARE-Spam-Status: No, hits=-6.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Date: Fri, 03 Sep 2010 23:00:00 -0000 From: Oleg Nesterov To: "Frank Ch. Eigler" Cc: Jan Kratochvil , utrace-devel@redhat.com, archer@sourceware.org Subject: Re: gdbstub initial code, v7 Message-ID: <20100903225738.GB8917@redhat.com> References: <20100830185850.GA1132@redhat.com> <20100830192040.GA15431@host1.dyn.jankratochvil.net> <20100831072048.GA26362@host1.dyn.jankratochvil.net> <20100902200632.GA23692@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) X-SW-Source: 2010-q3/txt/msg00144.txt.bz2 On 09/03, Frank Ch. Eigler wrote: > > Oleg Nesterov writes: > > > [...] To the point, I had to add printk's to utrace.c to understand > > what is wrong. Hopefully tomorrow. > > You might wish to try out systemtap for such purposes. It's easy to > insert printk-like tracing at almost any point; monitor variables for > changes, pretty-print structs, etc. Probably I should try the new versions... Last time I tried systemtap more than year ago. It didn't work for me without the "properly installed" kernel/etc which I don't have. And, I doubt I can insert the probe at the needed line without DEBUG_INFO. > No recompilation/reboot. CONFIG_KPROBE ;) But anyway I agree, systemtap is the great tool. Oleg.