From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756196Ab2HXLxo (ORCPT ); Fri, 24 Aug 2012 07:53:44 -0400 Received: from mail-iy0-f174.google.com ([209.85.210.174]:43366 "EHLO mail-iy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752806Ab2HXLxk (ORCPT ); Fri, 24 Aug 2012 07:53:40 -0400 MIME-Version: 1.0 In-Reply-To: <1345214379.3708.29.camel@gandalf.local.home> References: <1345043907-18299-1-git-send-email-elezegarcia@gmail.com> <1345151883.3708.7.camel@gandalf.local.home> <1345211714.3708.24.camel@gandalf.local.home> <1345214379.3708.29.camel@gandalf.local.home> Date: Fri, 24 Aug 2012 08:53:39 -0300 Message-ID: Subject: Re: [RFC PATCH 1/1] trace: Move trace event enable from fs_initcall to early_initcall From: Ezequiel Garcia To: Steven Rostedt Cc: linux-kernel@vger.kernel.org, Pekka Enberg , tim.bird@am.sony.com, lizefan@huawei.com, Frederic Weisbecker , Ingo Molnar , Jason Baron Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Steven, On Fri, Aug 17, 2012 at 11:39 AM, Steven Rostedt wrote: > > I don't think kmalloc is the issue. The big problem in front of you is > jump labels. That's what enables and disables trace points, and it gets > initialized just after memory is set up. You may have to force jump > labels off when doing early tracing :-/ Although I'm not sure it > requires allocations. > Well, I wasn't thinking *that* early actually. So, I'm trying to enable tracing at some point after jump_labels (could be near perf_event_init). Right now, the static ring buffer part is done and I'm having some problems copying this ring buffer into the *real* one. Mind giving me another hint? Thanks a lot for your help so far, Ezequiel.