Received: by 10.223.176.46 with SMTP id f43csp1748270wra; Wed, 24 Jan 2018 22:55:58 -0800 (PST) X-Google-Smtp-Source: AH8x225T+1RwHuBPOeVhFnCsKevveDzkG10suidSXfyeHWfMXwa+Du5ghPE4qeWLJ/c87lBRcX3B X-Received: by 10.98.225.7 with SMTP id q7mr14967770pfh.22.1516863358671; Wed, 24 Jan 2018 22:55:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516863358; cv=none; d=google.com; s=arc-20160816; b=u8E3vuqaTRsn0ajQ+HMyD9Z6aZf2VG3714/yWdDlhTKzd0/I6lRXlGyAJGhC5d/jKx KDZlHsn4adpEpKOjj2sw2OIJnUngxEW+mr8XW1FiWwL3IY308tHMHy/PIvXQYmU3wehP E9JcWpJjNpZ38LQNGnE7fylCiScBIDBMTKaPtb9i+o4CnjI9wYfPpSHvzDvujsrSLaE8 Kw153PkpNteneus3/CabiO3XHxdgAsjfpbaqUs8Q1gOXTQM/gJlsTAN+WK9kPGAVfT37 g7M9Z709vrn62ulFDGcjXgRK+AGHTMaXtNQl680Ogy753O/HxUl7li5PkzgWeTE9wIrt 4JkA== 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 :arc-authentication-results; bh=4l0A3b8WSLXKG2Y9wzHNgfOrdlOxCCsdEwjSYyzzKT0=; b=lXAVf+jTGyIBycySwrnak34nRyC/hi/xK6p3EIP+KR+DfgS0G2wGUpr2+UWDQgxNGz fKs6RUxy8MDodfZqaskGZk4eBU6hlWYiuOfK32q59kwU+3lkU36Sl+Hw/+NmpOFc7x22 xNEe7PcdMoct3mhs05F7P6Hd4pDl/879ZrbgU9P9DTs6ZY3edmG+K6CYxO2RvUsmHkZt f4kd5DbNJwDqKrhr15I1sUqF/q09yH3EHrYhd1gDFsW/OEbFnts/AQYPNrsODWiXGEmK +vPdF9lZDda7dpt8kqwLWBUAblGWVEXAhv+O4VPmDOTrQMLsAoLOUFuZZXA8dIxOFwSp MC6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=XNLZdcpV; 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=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s14si1165787pgf.748.2018.01.24.22.55.44; Wed, 24 Jan 2018 22:55:58 -0800 (PST) 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=XNLZdcpV; 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=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751250AbeAYGzS (ORCPT + 99 others); Thu, 25 Jan 2018 01:55:18 -0500 Received: from mail-it0-f68.google.com ([209.85.214.68]:38484 "EHLO mail-it0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751213AbeAYGzQ (ORCPT ); Thu, 25 Jan 2018 01:55:16 -0500 Received: by mail-it0-f68.google.com with SMTP id w14so8143306itc.3; Wed, 24 Jan 2018 22:55:16 -0800 (PST) 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=4l0A3b8WSLXKG2Y9wzHNgfOrdlOxCCsdEwjSYyzzKT0=; b=XNLZdcpVOPm9rM+pnuz9Pk7a4KRROxVkN/dQiZZOyTbXpIArscRvrsNqi1zf/mCo8Y eZDth4LSApbalz8O6T9pv9eyboNSreMNL9LyIQs7w9nNDZMyvMkn/8uoHb4Zpabd4Y5F 9UL9Sv3sS5rWD+sOtg4ycp8sUUlH1FaGA3ZJP8mT/BXkoUsTT9jJABr4jAB/p47bN+35 4F5r052jq7PMGf47djye1zz0sg9Jz/xIV3g89ZmfKgyOzb0KQxsY9us+kyxRvh1hPHCo KZcl5WktFPt0QacUFd3BGtSDVcxES8o8TNDFR8VSFdvk0VdwKAvjWCqExHjUQ2GSqpp/ RJcw== 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=4l0A3b8WSLXKG2Y9wzHNgfOrdlOxCCsdEwjSYyzzKT0=; b=DzjEseKvDnIDx6en5YPSc6lhWduU2LgkFNa7P+ViGkgsRBL2s6KZtfq5k1YqdPkoIF i5pm1SVJ5s3epvlSevNnamn46haPU9FVS24kHh2YcTbnReAWWTTmPerByS7iwYTe082A 2X3hmhVIiEgWOCcFs4UmE0IA0ZCu0ce1okHG0V9bTIiwVSy2JAvhaZHjGqs8/asyafHv xskDD6T24fLKe/CH2qhsUuzuTP41eioTOZt/RhDRsZJkN+1ohHCX9rJLUB3nkZYmtdVt yacqPikO4rVxpKG1u9Tb7M6akZwyH/wVgV9PY7q6ruisy4kSwnEZvVtt7DSLO5wGPKzr RU0g== X-Gm-Message-State: AKwxytfeok6AGkhLKBkIk7Nn6OzugXLNjdemeYBF4AbX8lLxrNJUD3Rj ppxe1FDVtsPcVqrSyRSUge4= X-Received: by 10.36.47.5 with SMTP id j5mr11347150itj.123.1516863315755; Wed, 24 Jan 2018 22:55:15 -0800 (PST) Received: from [192.168.1.70] (c-73-93-215-6.hsd1.ca.comcast.net. [73.93.215.6]) by smtp.gmail.com with ESMTPSA id r139sm417704itc.9.2018.01.24.22.55.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 24 Jan 2018 22:55:15 -0800 (PST) Subject: Re: [RFC PATCH v2 0/1] of: easier debugging for node life cycle issues To: Wolfram Sang , devicetree@vger.kernel.org, Steven Rostedt Cc: Tyrel Datwyler , Geert Uytterhoeven , linux-renesas-soc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, Rob Herring , linux-kernel@vger.kernel.org References: <20180121143117.19805-1-wsa+renesas@sang-engineering.com> From: Frank Rowand Message-ID: <00fc90ee-de26-f819-9c81-27d06918564d@gmail.com> Date: Wed, 24 Jan 2018 22:55:13 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <20180121143117.19805-1-wsa+renesas@sang-engineering.com> 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 Hi Steve, On 01/21/18 06:31, Wolfram Sang wrote: > I got a bug report for a DT node refcounting problem in the I2C subsystem. This > patch was a huge help in validating the bug report and the proposed solution. > So, I thought I bring it to attention again. Thanks Tyrel, for the initial > work! > > Note that I did not test the dynamic updates, only of_node_{get|put} so far. I > read that Tyrel checked dynamic updates extensively with this patch. And since > DT overlays are also used within our Renesas dev team, this will help there, as > well. > > Tested on a Renesas Salvator-XS board (R-Car H3). > > Changes since RFC v1: > * rebased to v4.15-rc8 > * fixed commit abbrev and one of the sysfs paths in commit desc > * removed trailing space and fixed pointer declaration in code > > I consider all the remaining checkpatch issues irrelevant for this patch. > > So what about applying it? > > Kind regards, > > Wolfram > > > Tyrel Datwyler (1): > of: introduce event tracepoints for dynamic device_node lifecyle > > drivers/of/dynamic.c | 32 ++++++---------- > include/trace/events/of.h | 93 +++++++++++++++++++++++++++++++++++++++++++++++ > 2 files changed, 105 insertions(+), 20 deletions(-) > create mode 100644 include/trace/events/of.h > Off the top of your head, can you tell me know early in the boot process a trace_event can be called and successfully provide the data to someone trying to debug early boot issues? Also, way back when version 1 of this patch was being discussed, a question about stacktrace triggers: >>> # echo stacktrace > /sys/kernel/debug/tracing/trace_options >>> # cat trace | grep -A6 "/pci@800000020000018" >> >> Just to let you know that there is now stacktrace event triggers, where >> you don't need to stacktrace all events, you can pick and choose. And >> even filter the stack trace on specific fields of the event. > > This is great, and I did figure that out this afternoon. One thing I was > still trying to determine though was whether its possible to set these > triggers at boot? As far as I could tell I'm still limited to > "trace_options=stacktrace" as a kernel boot parameter to get the stack > for event tracepoints. No not yet. But I'll add that to the todo list. Thanks, -- Steve Is this still on your todo list, or is it now available? Thanks, Frank