Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753857AbYHSSWP (ORCPT ); Tue, 19 Aug 2008 14:22:15 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752593AbYHSSV5 (ORCPT ); Tue, 19 Aug 2008 14:21:57 -0400 Received: from tomts10.bellnexxia.net ([209.226.175.54]:61136 "EHLO tomts10-srv.bellnexxia.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752415AbYHSSV5 (ORCPT ); Tue, 19 Aug 2008 14:21:57 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AtIFAFepqkhMRKxB/2dsb2JhbACBYrRugVg Date: Tue, 19 Aug 2008 14:16:53 -0400 From: Mathieu Desnoyers To: Eduard - Gabriel Munteanu Cc: "Randy.Dunlap" , penberg@cs.helsinki.fi, linux-kernel@vger.kernel.org, linux-mm@kvack.org, mpm@selenic.com, tglx@linutronix.de, rostedt@goodmis.org, cl@linux-foundation.org, tzanussi@gmail.com Subject: Re: [PATCH 1/5] Revert "kmemtrace: fix printk format warnings" Message-ID: <20080819181652.GA29757@Krystal> References: <1219167807-5407-1-git-send-email-eduard.munteanu@linux360.ro> <20080819175440.GA5435@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline In-Reply-To: <20080819175440.GA5435@localhost> X-Editor: vi X-Info: http://krystal.dyndns.org:8080 X-Operating-System: Linux/2.6.21.3-grsec (i686) X-Uptime: 14:12:05 up 75 days, 22:52, 7 users, load average: 1.42, 0.80, 0.73 User-Agent: Mutt/1.5.16 (2007-06-11) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2020 Lines: 62 * Eduard - Gabriel Munteanu (eduard.munteanu@linux360.ro) wrote: > On Tue, Aug 19, 2008 at 10:51:32AM -0700, Randy.Dunlap wrote: > > On Tue, 19 Aug 2008, Eduard - Gabriel Munteanu wrote: > > > > > This reverts commit 79cf3d5e207243eecb1c4331c569e17700fa08fa. > > > > > > The reverted commit, while it fixed printk format warnings, it resulted in > > > marker-probe format mismatches. Another approach should be used to fix > > > these warnings. > > > > Such as what? > > > > Can marker probes be fixed instead? > > > > After seeing & fixing lots of various warnings in the last few days, > > I'm thinking that people don't look at/heed warnings nowadays. Sad. > > Maybe there are just so many that they are lost in the noise. > > Hi, > > Check the next patch in the series, it provides the alternate fix. > I favor this approach more because it involves fewer changes and we > don't have to use things like "%zu" (which make data type size less > apparent). > Question : Is this kmemtrace marker meant to be exposed to userspace ? I suspect not. In all case, not directly. I expect in-kernel probes to be connected on these markers which will get the arguments they need, and maybe access the inner data structures. Anyhow, tracepoints should be used for that, not markers. You can later put markers in the probes which are themselves connected to tracepoints. Tracepoints = in-kernel tracing API. Markers = Data-formatting tracing API, meant to export the data either to user-space in text or binary format. See http://git.kernel.org/?p=linux/kernel/git/compudj/linux-2.6-lttng.git;a=shortlog tracepoint-related patches. Mathieu > > Cheers, > Eduard > -- Mathieu Desnoyers OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F BA06 3F25 A8FE 3BAE 9A68 -- 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/