From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761287AbZDQR2Q (ORCPT ); Fri, 17 Apr 2009 13:28:16 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757550AbZDQR2A (ORCPT ); Fri, 17 Apr 2009 13:28:00 -0400 Received: from casper.infradead.org ([85.118.1.10]:51241 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755962AbZDQR17 (ORCPT ); Fri, 17 Apr 2009 13:27:59 -0400 Subject: Re: [PATCH] tracing/lockdep: turn lock->name into an array From: Peter Zijlstra To: Jeremy Fitzhardinge Cc: Ingo Molnar , KOSAKI Motohiro , Frederic Weisbecker , Steven Rostedt , Zhaolei , Tom Zanussi , Li Zefan , LKML In-Reply-To: <49E8BB98.3090901@goop.org> References: <1239662166-13208-1-git-send-email-fweisbec@gmail.com> <20090414153035.C662.A69D9226@jp.fujitsu.com> <20090414065303.GA24626@elte.hu> <49E8BB98.3090901@goop.org> Content-Type: text/plain Date: Fri, 17 Apr 2009 19:27:40 +0200 Message-Id: <1239989260.23397.4848.camel@laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.26.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2009-04-17 at 10:25 -0700, Jeremy Fitzhardinge wrote: > Ingo Molnar wrote: > > We could zap all pending trace entries on module unload (it is a > > rare operation) > > ....Unless you're trying to trace something across a module unload. I > don't know if its at all practical, but it would be nice to just zap the > pointers within the buffer, rather than the whole buffer. I think the new __string() thing that's in the works will avoid the whole problem by copying the string into the buffer, instead of keeping a reference.