Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3139668ybi; Tue, 2 Jul 2019 02:48:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqyb+8DS6T+zqJSLyxQJ1WbleAee5XqSiexsGo2NcfP2DhfExWUWHDq3dmVrry8DnbAPLlrR X-Received: by 2002:a63:c10d:: with SMTP id w13mr29313919pgf.28.1562060893155; Tue, 02 Jul 2019 02:48:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562060893; cv=none; d=google.com; s=arc-20160816; b=yZp2zZuCEA5Meb6fbb4owiF/+vj2JIZ2jlGBFSBFHvh4z+qccbeOPpE5Fxj4B4m4EB wpfU+nQvgfYcfEjSCj0/1mJobloseehYzlLVT6N7nyZXxtoVBhcDdbino8FF+wXGYRJD laYlzKDRumeDQHslX088/m6RW4ZkX5VjLDUBZd5jOW0XtvXhsGVo/4myDVTiZHxPSJdP E+faLZzwsBbrlmCftItYLhWT82ra9XsYZoH3FHqDEFvpiqdgBaWZ3dzMppQKS1mZQdMZ rPEhCaL0rNMleeq/02hMOmHk5rhTLB92qc3tjngOu2WXVJsb4N5z+0znF8YrFhCQcEJY 6YFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=CcP6Rp4uE8STbMJERY3+H4ME6ZYS4/eGGidTLJVkYBM=; b=V/TFa7BbEmcFx5KS/SNUPAQ7wgmtGrpMHOfdTzP6Xp91hBcS5HSMuoFrleUt+5tlFo OJb2koyb4jIq2sMADi5/uuiZJu0ROU1DM1vbE9MTddVZFszwnU8O04gRFXUs8UCmBdSX /5vY44S+V8uD8kvx01tzdfWlqg6mVEnnZLu9M8cUPiZifrNs8f9tSm3aWShCKN2ELhRa 8mppWrgjLfb4CCcFa1T9LeqTSKGWBFsmMKW1gJl47o5lhJPf0281GYx5XIZc4SbVtzLo mRPRxtQtgEDV1ORhgyIoONYq0nTTDDwQvculLzcIiJU7l0Vc8IOTEhXqoCcaNzlEmzvM Y/pw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=GGcqLRZL; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n10si11887459pgq.416.2019.07.02.02.47.57; Tue, 02 Jul 2019 02:48:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=GGcqLRZL; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726765AbfGBJrh (ORCPT + 99 others); Tue, 2 Jul 2019 05:47:37 -0400 Received: from mail.kernel.org ([198.145.29.99]:59518 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725851AbfGBJrh (ORCPT ); Tue, 2 Jul 2019 05:47:37 -0400 Received: from devnote2 (NE2965lan1.rev.em-net.ne.jp [210.141.244.193]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 96E85206A2; Tue, 2 Jul 2019 09:47:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1562060855; bh=XXGYqdnt+JvoUqIOPLoPD7ttjH4BJlU3ObVXMgm6v1U=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=GGcqLRZLgFspvPOTr+y81lZOjSwzvvwnwZzGLc4sKQWgx/I5675TzMvLmh1pzl/BP 3iVoRDPCRX3zDKsqwI+Ytlkt66IzrI1GKuzhcci5f0NdHR4QAQaQ7fNHckYcYYImHc fwsH5Wq38nV8djxEeGfAqBv4N8I8OAjfIpz1QA9g= Date: Tue, 2 Jul 2019 18:47:30 +0900 From: Masami Hiramatsu To: Masami Hiramatsu Cc: Rob Herring , Steven Rostedt , Frank Rowand , Tom Zanussi , Ingo Molnar , Namhyung Kim , Jiri Olsa , Arnaldo Carvalho de Melo , "linux-kernel@vger.kernel.org" , devicetree@vger.kernel.org Subject: Re: [RFC PATCH 00/11] tracing: of: Boot time tracing using devicetree Message-Id: <20190702184730.b0247eb780ffa48d40a61a81@kernel.org> In-Reply-To: <20190627195817.211ab4bea422f37e539e47e8@kernel.org> References: <156113387975.28344.16009584175308192243.stgit@devnote2> <20190627195817.211ab4bea422f37e539e47e8@kernel.org> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.32; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, On Thu, 27 Jun 2019 19:58:17 +0900 Masami Hiramatsu wrote: > Hi Rob, > > On Wed, 26 Jun 2019 15:58:50 -0600 > Rob Herring wrote: > > > On Fri, Jun 21, 2019 at 10:18 AM Masami Hiramatsu wrote: > > > > > > Hi, > > > > > > Here is an RFC series of patches to add boot-time tracing using > > > devicetree. > > > > > > Currently, kernel support boot-time tracing using kernel command-line > > > parameters. But that is very limited because of limited expressions > > > and limited length of command line. Recently, useful features like > > > histogram, synthetic events, etc. are being added to ftrace, but it is > > > clear that we can not expand command-line options to support these > > > features. > > > > > > Hoever, I've found that there is a devicetree which can pass more > > > structured commands to kernel at boot time :) The devicetree is usually > > > used for dscribing hardware configuration, but I think we can expand it > > > for software configuration too (e.g. AOSP and OPTEE already introduced > > > firmware node.) Also, grub and qemu already supports loading devicetree, > > > so we can use it not only on embedded devices but also on x86 PC too. > > > > Do the x86 versions of grub, qemu, EFI, any other bootloader actually > > enable DT support? I didn't think so. Certainly, an x86 kernel doesn't > > normally (other than OLPC and ce4100) have a defined way to even pass > > a dtb from the bootloader to the kernel and the kernel doesn't > > unflatten the dtb. > > Sorry, the grub part, I just found this entry. I need to check this > can work on x86 too. I've confirmed that grub-x86 doesn't support devicetree option. I tried to add it, and tested it. https://github.com/mhiramat/grub/commit/644c35bfd2d18c772cc353b74215344f8264923a This works if there is ACPI, if it includes /chosen/linux,ftrace node only. (Anyway, we don't need other nodes on x86) At this moment, grub doesn't support DT overlay, so on arm/arm64 user must decompile DTB, add linux,ftrace node for tracing and compile it again. But if it supports overlay, I think we can give an overlay for tracer setting on boot up, that will be handy on arm/arm64 too. :) Thank you, -- Masami Hiramatsu