Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1764306AbZLQKJo (ORCPT ); Thu, 17 Dec 2009 05:09:44 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1761380AbZLQKJn (ORCPT ); Thu, 17 Dec 2009 05:09:43 -0500 Received: from mx2.mail.elte.hu ([157.181.151.9]:36520 "EHLO mx2.mail.elte.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751280AbZLQKJm (ORCPT ); Thu, 17 Dec 2009 05:09:42 -0500 Date: Thu, 17 Dec 2009 11:09:22 +0100 From: Ingo Molnar To: Peter Zijlstra Cc: Hitoshi Mitake , linux-kernel@vger.kernel.org, Paul Mackerras , Frederic Weisbecker Subject: Re: [PATCH 2/2] perf lock: Fix output of tracing lock events Message-ID: <20091217100922.GA23778@elte.hu> References: <1260934105-4472-1-git-send-email-mitake@dcl.info.waseda.ac.jp> <1260934105-4472-2-git-send-email-mitake@dcl.info.waseda.ac.jp> <1261041885.27920.110.camel@laptop> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1261041885.27920.110.camel@laptop> User-Agent: Mutt/1.5.20 (2009-08-17) X-ELTE-SpamScore: 0.0 X-ELTE-SpamLevel: X-ELTE-SpamCheck: no X-ELTE-SpamVersion: ELTE 2.0 X-ELTE-SpamCheck-Details: score=0.0 required=5.9 tests=none autolearn=no SpamAssassin version=3.2.5 _SUMMARY_ Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 848 Lines: 24 * Peter Zijlstra wrote: > > TP_STRUCT__entry( > > + __field(struct lockdep_map *, lockdep_addr) > > __field(unsigned int, flags) > > __string(name, lock->name) > > ), > > I feel a bit awkward explicitly leaking kernel pointers like that. All this > is accessible by root only (for now) so its not too harmfull, but sitll. What would you suggest as a 'natural lock class key'? The name? It might not be unique enough. Other kernel objects like tasks, cpus, inodes, pages all have some natural key that isnt a kernel pointer - but locks are a bit special. Ingo -- 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/