Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp1291151ybd; Wed, 26 Jun 2019 14:59:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqwgPStwQt/NwEjkAgtgOEnG7Xz3EhZMypa3rLAmc1joJrjpcUY84EF17hwFIs/8pQCkw7Ub X-Received: by 2002:a17:902:b093:: with SMTP id p19mr346862plr.141.1561586378848; Wed, 26 Jun 2019 14:59:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561586378; cv=none; d=google.com; s=arc-20160816; b=Y7kGIMizNdy5mp3ojiamT6rO6AG0ChcJu05s3LerkI+g9xGwlo5V2HXWthL1/jObIR E50JneF9GreFyxtlJOEM/+UurmtKeIjpqul2SSsEbuRlQmpsDljI3pql7qty0NMXhAZ7 01qmZfv3LESIGZUY1H1t9t71IFPN+8wkI/d6mNp5hv1V1JGw/lFeDit8nRgJ3578mL1f c4DRsQSMAEuaDUwggPrgiXsjXM15X+NXe5bnfcZZIk0oQnYuvF56Xew3nguYfbJx2LS6 WqxBP2HnDKSjS5QsxJvCX0AWGEEPj6TfPDNsowWv7qKulqHNiK927ICOZntFaL4uYOWc 2ORQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=dp3wSsPNYah0quSfVuxFUWJYCawQNw3wrHk37cc0CCk=; b=Y0DS04QcGSQbMsD+994vDgN3dteE2Lr9wd9KWAQ0H+FGtp1dkWg/0fT8Zda6YlRaSx kJcZeWfQnOMXJUAELJAbcu+PgNtbm0+6lY3xcLtc2J8vgpiCHyC3VlzvIGGup0+tqyqk IsXaHnqb4gi0HFJ9rSAh8vY4FyvJJUpMaGxEevsR20KID6zoe7yGTuO72bt37W3moWBR K6C7d7wnZ1obWZfWa8U1/qU0wX7QJUVjIBw+IF6SVeskZIC7qmTuDt/3m0iQJIVJcyP9 MFH9Kcs1NTDOb7nu46zqKBia4ZjJnG7rPp559FXEpkHK/vZbqBy34pSDtKw72YV8r6M+ afAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=QlRu2S4G; 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 u6si170600pga.360.2019.06.26.14.59.21; Wed, 26 Jun 2019 14:59:38 -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=QlRu2S4G; 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 S1726413AbfFZV7F (ORCPT + 99 others); Wed, 26 Jun 2019 17:59:05 -0400 Received: from mail.kernel.org ([198.145.29.99]:35744 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726359AbfFZV7E (ORCPT ); Wed, 26 Jun 2019 17:59:04 -0400 Received: from mail-qk1-f172.google.com (mail-qk1-f172.google.com [209.85.222.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A555221743; Wed, 26 Jun 2019 21:59:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1561586343; bh=dp3wSsPNYah0quSfVuxFUWJYCawQNw3wrHk37cc0CCk=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=QlRu2S4GcDicDAUHvW8Ndm1sD/BnM/FPYr0MPJZMarYL6aDAnEnluttBu1crIOsAo f1HvVyY+iRLJO80XuK8Vgt65SuXS0mersjGCOS9vqSK6+F0QyBE1VlbjIOMaPAUGPj uMtQC0vPqTLPFsGhF1/ArzSWy0+OfVyQDwip7T/w= Received: by mail-qk1-f172.google.com with SMTP id l128so39018qke.2; Wed, 26 Jun 2019 14:59:03 -0700 (PDT) X-Gm-Message-State: APjAAAUbnrgGsRH3sAz+kvnZ7/Po+WSOu+9jgDWCIocZZL6I3mA6fycA l+O67UDZd63r010yuNHQwA0aA7XY5CexGv65ng== X-Received: by 2002:a05:620a:1447:: with SMTP id i7mr316379qkl.254.1561586342888; Wed, 26 Jun 2019 14:59:02 -0700 (PDT) MIME-Version: 1.0 References: <156113387975.28344.16009584175308192243.stgit@devnote2> In-Reply-To: <156113387975.28344.16009584175308192243.stgit@devnote2> From: Rob Herring Date: Wed, 26 Jun 2019 15:58:50 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC PATCH 00/11] tracing: of: Boot time tracing using devicetree To: Masami Hiramatsu Cc: 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 Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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