Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932200AbYARSrL (ORCPT ); Fri, 18 Jan 2008 13:47:11 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1764631AbYARSqy (ORCPT ); Fri, 18 Jan 2008 13:46:54 -0500 Received: from mail.isolaweb.it ([80.247.74.3]:34537 "EHLO tavolara.isolaweb.it" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1765324AbYARSqw (ORCPT ); Fri, 18 Jan 2008 13:46:52 -0500 X-Greylist: delayed 1165 seconds by postgrey-1.27 at vger.kernel.org; Fri, 18 Jan 2008 13:46:52 EST X-Mailer: QUALCOMM Windows Eudora Version 7.1.0.9 Date: Fri, 18 Jan 2008 19:46:22 +0100 To: Arjan van de Ven From: Roberto Fichera Subject: Re: [Announce] Development release 0.1 of the LatencyTOP tool Cc: Linux Kernel Mailing List , Linus Torvalds , Ingo Molnar , Andrew Morton In-Reply-To: <4790F172.5070907@linux.intel.com> References: <4790E3A6.7060807@linux.intel.com> <20080118182714.2DA32498006@tavolara.isolaweb.it> <4790F172.5070907@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Message-Id: <20080118184620.0D571498027@tavolara.isolaweb.it> X-IsolaWeb-MailScanner-Watermark: 1201286788.30586@V1qXp2BWwF3mmmDbwLWddg X-IsolaWeb-MailScanner-Information: Please contact the ISP for more information X-IsolaWeb-MailScanner: Found to be clean X-MailScanner-From: kernel@tekno-soft.it Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1695 Lines: 52 At 19.35 18/01/2008, Arjan van de Ven wrote: >Roberto Fichera wrote: >> At 18.36 18/01/2008, Arjan van de Ven wrote: >>> The Intel Open Source Technology Center is pleased to announce the >>> release of version 0.1 of LatencyTOP, a tool for developers to visualize >>> system latencies. >>> >>> http://www.latencytop.org >>> >> >> [...snip...] >> >>> The most basic annotation looks like this (in the patches more complex >>> versions can be seen): >>> >>> asmlinkage long sys_sync(void) >>> { >>> + struct latency_entry reason; >>> + set_latency_reason("sync system call", &reason); >>> do_sync(1); >>> + restore_latency_reason(&reason); >>> + >>> return 0; >>> } >>> >> >> I really like this patch :-)! Just a little note, why don't make >> the parameter 'char *reason' as simple integer (reason_t)? >> Making it as integer will automatically drop the strncmp() >> and speeding up all the things. Could be also interesting to >> define _externally_ the mapping of the reason so the >> userspace tool could handle it easily. >> > >I thought about that, but the strncmp is still somewhat needed to deal >with the argument >(the instrumentation above doesn't use that, but the mutex one does >for example) >If we get rid of the argument entirely it'd be easier >(but then we get "blocking on mutex" rather than "blocking on inode->mutex") Duh! I didn't notice it! Now I see ;-)! > Roberto Fichera. -- 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/