Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp1529436ybd; Wed, 26 Jun 2019 19:56:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqxBj6cvFKNj5uv3YNg8GL/rcesNknMfb7OKaRdqaVm9qbVeCcf1DyJN74QXhVulwINAee2x X-Received: by 2002:a63:f150:: with SMTP id o16mr1350708pgk.105.1561604201406; Wed, 26 Jun 2019 19:56:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561604201; cv=none; d=google.com; s=arc-20160816; b=FuwXpe95QcjAxb+2oX/DrIp0V+IrmpOpahoFoBJWu877U9pO3hW0nVZO4sacl+6TPn d1x4QuRW4Px7gvb36YxD9xcQDPA4ze091koNUFmkV1YAoNW26CFJH8cIeGacR2OrNHfR awmQZqxIHrUN9lW7ItboRPfXO73ZYv7IzgiXOXPRAd5FfVrgGDujYs1ZesYdZ56L78GU vLJybypw9l1SnHBr0mLRYcWHD8xFGJjlR9eyvKIGqJxMynoV5HE1l0O2X9rMiLTJ0fGG k1Xnap2DSE0QsmCVf0f2AZJPoPxTo/l+7ROJGzuzjUldaJ+Q9g9nLPC7VQmRDHpWoHZD KUiA== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=lswDpvtKF8o6UZb/0KjUEuigeQB8Cet2e2NAoq7mH9Q=; b=J4E84c0AXfrm9NngDCuSClN+iDMTiGceuBe8WIJWDGZPLuFoa1swnwTD0Z+xBBWaMI lOcjwG0D6/Ts4QybD+7mSdWKa3EdGkzToFXiRtitWfdwOxeOX8DBZ4yxlXzd0h7HcbK4 akArp7hLtr7xUrqVov6i/R2khNrJianjAh5VOnaUVRnIvaLQ3VVHHUaY+MPGMJNfpmH7 RHu3zoUey1GvQ+7JbgXgSeXVin1vezS5s1rrVp4yDRD64pkYYfK+jxqDA4JkE1no0uWb DKh9xJ9Fc0dsHJLqNAhsSnO3mhXp5KtpXiqd6NZIH4OcFIwJFri38GuJITVLw8cM5Nnv M98A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=VMMUaqVA; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b3si997034plb.367.2019.06.26.19.56.25; Wed, 26 Jun 2019 19:56:41 -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=@gmail.com header.s=20161025 header.b=VMMUaqVA; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726910AbfF0Cz6 (ORCPT + 99 others); Wed, 26 Jun 2019 22:55:58 -0400 Received: from mail-qk1-f195.google.com ([209.85.222.195]:35009 "EHLO mail-qk1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726760AbfF0Cz5 (ORCPT ); Wed, 26 Jun 2019 22:55:57 -0400 Received: by mail-qk1-f195.google.com with SMTP id l128so505395qke.2; Wed, 26 Jun 2019 19:55:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=lswDpvtKF8o6UZb/0KjUEuigeQB8Cet2e2NAoq7mH9Q=; b=VMMUaqVAcu3KOBN461WvWtatLU/ToQeHDJCisXMAOnXI+Fp9kqy0nh4k+vmXkaewg1 xW5yNZLCwivwVRM37/sVSz20lfuTTC8gBviW4Zdb4ZJmcaBpuE/zV3q325F/IRNEzSft iTfy7hYRvB8H5bq+Uu+nGx8nxr8mqXRp++zoCdhDehk5uUFfAOBR8NsQF8EaYUdR4HRm CTkfXJFtZo7dkRT0f3pVrlGbpNSD+Dc0pNHtB8jZP55i6peDnJll3s1ekFIo/30nN+ys 3mA/pie+tMxhko3P7ZWeHOaxuY5wJiiPb7xOa34JQoasa3PPsZDSvVhUOWTpdI2funAG QTbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=lswDpvtKF8o6UZb/0KjUEuigeQB8Cet2e2NAoq7mH9Q=; b=szz+mDsDmniykiCpWbHUKTBu//4VtSbHBDn5hlsF2mFm7ulOxiUOKpsM75Em6kayOl RQnytAZRk0vzwsXF/3pvqYkXXg6VEO4JzhaPOk00/+Ci5xyF8JSTJTTVwlqeeB+JABoo eOHIQb/7doDy4Stv5qMd98KtB/LjKgllBRwbaDID9YM9QjVcg9tk1rETWsutt+k3XsaA ZoNX5cdUfRYseLCSeh71zFwu/GUDKoG8mnK2NXzV5g2d+jQ74unjaYRSvhjvFyCyukCd icSkk3TsxTugROk7YMksO4tfJLP9GMgi+z8MAwlE3viEFQ1s3K1Bhxe/faoWqBzNaZJc nFHA== X-Gm-Message-State: APjAAAVRGi23nRrBfqDUGg7gE0WYjnza6jL0w8d/uB/kaPCSuzRqemXV nBOgNHqdnTCdpObLgtN1iqo= X-Received: by 2002:a37:815:: with SMTP id 21mr1231815qki.257.1561604156989; Wed, 26 Jun 2019 19:55:56 -0700 (PDT) Received: from [192.168.43.210] (mobile-166-171-59-11.mycingular.net. [166.171.59.11]) by smtp.gmail.com with ESMTPSA id u4sm333202qkb.16.2019.06.26.19.55.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 26 Jun 2019 19:55:56 -0700 (PDT) Subject: Re: [RFC PATCH 00/11] tracing: of: Boot time tracing using devicetree To: Rob Herring , Masami Hiramatsu Cc: Steven Rostedt , Tom Zanussi , Ingo Molnar , Namhyung Kim , Jiri Olsa , Arnaldo Carvalho de Melo , "linux-kernel@vger.kernel.org" , devicetree@vger.kernel.org References: <156113387975.28344.16009584175308192243.stgit@devnote2> From: Frank Rowand Message-ID: <9f0cfc20-213a-b8ad-5a7f-ce811d0d5513@gmail.com> Date: Wed, 26 Jun 2019 19:55:54 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/26/19 2:58 PM, 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. > > For arm64, the bootloader to kernel interface is DT even for ACPI > based systems. So unlike Frank, I'm not completely against DT being > the interface, but it's hardly universal across architectures and > something like this should be. Neither making DT the universal kernel > boot interface nor creating some new channel as Frank suggested seems > like an easy task. > > Rob > Agreed, creating a new generic channel is not a small or easy task. And if it does get added it should support several different use cases that have been expressed over the last few years. Or have enough good architecturfe such thatvit is easy to add support for other use cases without impacting previously existing cases. -Frank