Received: by 10.213.65.68 with SMTP id h4csp179069imn; Thu, 15 Mar 2018 13:22:33 -0700 (PDT) X-Google-Smtp-Source: AG47ELttCKdKJQ32CNrG3CknMqpUXsUbS4PG/4kM6uspU/lWfRHNbCbZqToAzjD+xdB+EBbLuZQ7 X-Received: by 10.98.205.140 with SMTP id o134mr8829481pfg.34.1521145353046; Thu, 15 Mar 2018 13:22:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521145353; cv=none; d=google.com; s=arc-20160816; b=SMQdTcCRN/TPSksVB4QMU27kRg7V5NhUICR47jRHVClbwrtJ0PZ94utnuWzNABCZLj uNSNAh9vwBFiElqrNxqg5HWR/PO0J9FIAQoDImeAn3KYhALjzQtj21Kv+ynREsjytt5d 0hvR6nFSmIXlrmt1KMxQVQ4nkzW6XyvMXOTRngMDh3gdKWM4qwa9q3niKSHG4Xo9fncj pd/lRNiqOuWlg/nlz5TNjISUvAhxspwZa6IMU7NAdMAp7vvpUAk/0B9spCrSmCF0lwzb qUHoLU2R/pi0n7HBOcEkvILWAiNQxignSClyXih9w9fIJ1agNoGmAllBJ5yH0z2Xb+EO fObA== 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:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject:dkim-signature:arc-authentication-results; bh=35SdAnsAJVDqIlmLJsH4UBvDkHec4eo/S9iSQiao5x4=; b=Ic5w34A4Q55owU6isJjUCxLCV/cM9hWms4V3eiXcbA4mULDHDkXJTYBDdRcS3LCGsO VUkyEwaTXI6UhXXD47DIEmRBugwkTcEvVN6zfPjMNLWTLKoeN4v0AbdUYxFWHTI61vqK G8Cyy53KhhN7LRuiWmSuo9Wbx7qoa86nzj79Ww59w3z7lgDC/5+U6d8rDJjr0RO8FfNx 9CbbNnflj531IzMMU890WY0WSUVS+zLG0mA67Xt5LonRP7ps1QZ5N2oSnRTGdbbfqV9g s5zM0j93FME9Nwh/TzKx3h3yXlSCW+EAEYxMzSeSKL1u/p1/a+5kr6j16vzbsOU6yPGz 5B7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=Pkz2RrzC; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g6-v6si4267117plj.431.2018.03.15.13.22.18; Thu, 15 Mar 2018 13:22:33 -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=@broadcom.com header.s=google header.b=Pkz2RrzC; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932445AbeCOUUq (ORCPT + 99 others); Thu, 15 Mar 2018 16:20:46 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:34612 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752337AbeCOUUp (ORCPT ); Thu, 15 Mar 2018 16:20:45 -0400 Received: by mail-wm0-f65.google.com with SMTP id a20so24682442wmd.1 for ; Thu, 15 Mar 2018 13:20:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=35SdAnsAJVDqIlmLJsH4UBvDkHec4eo/S9iSQiao5x4=; b=Pkz2RrzCaZykmbc/Rva/rRlgjYk3WieDBaBMLi3NpsYsFRZqDfGW6oy5Yb+/GP0poW AD9lgrAxGAmN9CryBcn4IVbmDwMq8MOCl0zfdhJT88oCIHD2AU0QE5B8xGwItqIZsfno 19ZTozov0I++5LciwMOnrAySgAviyElHIoK34= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=35SdAnsAJVDqIlmLJsH4UBvDkHec4eo/S9iSQiao5x4=; b=XE+38ei24vXlnbbub2/alT4xyU6m00BGVLcpbc0AS6Wo5NVmZ3QmR0fTfbzhX4xMWD sdc7TbehWdjt9ZjERw9+b1MYeOpxrBb31JS+MQDFvcjtoXjovkbmO3xSCfMCGx7IZ0JU /wHCy4ARp92C4bRjQppMb6sYYmdJyDcnMboZS5hLPp0bE0lZerEwDjNLqYjn22mU4CnJ u3/OzQ8tgIPWBVmMhj+ihWv5OuWlvpI9jsp2pprp9+oPRb/9pbNqgdFcbFnNle5HYIXI e47ZJOieF3BWKEpO3MV7BAb+92UKacyJQCB/KtbaGhopmmLj4a6pRfU/CswkSO0O+3KN rghg== X-Gm-Message-State: AElRT7G37R3YrRflIqYypErmTJV1ihYqodOVGeXqkGkwCpFYEoeUaGWD xN4WsFizuWxJgMBSq8ybsbqAYHkM X-Received: by 10.80.173.238 with SMTP id b43mr9910433edd.203.1521145244193; Thu, 15 Mar 2018 13:20:44 -0700 (PDT) Received: from [192.168.178.129] (f140230.upc-f.chello.nl. [80.56.140.230]) by smtp.gmail.com with ESMTPSA id c7sm2637082edn.15.2018.03.15.13.20.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 15 Mar 2018 13:20:43 -0700 (PDT) Subject: Re: [PATCH for-4.16 1/3] sysfs: improve devices-coredump description with user-space perspective To: Brian Norris , Arend van Spriel References: <1521107725-25027-1-git-send-email-aspriel@gmail.com> <1521107725-25027-2-git-send-email-aspriel@gmail.com> <20180315170459.GA120116@rodete-desktop-imager.corp.google.com> Cc: Greg Kroah-Hartman , LKML , Johannes Berg , Kees Cook From: Arend van Spriel Message-ID: <5AAAD59B.7060503@broadcom.com> Date: Thu, 15 Mar 2018 21:20:43 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 MIME-Version: 1.0 In-Reply-To: <20180315170459.GA120116@rodete-desktop-imager.corp.google.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/15/2018 6:05 PM, Brian Norris wrote: > On Thu, Mar 15, 2018 at 10:55:23AM +0100, Arend van Spriel wrote: >> Instead of referring to kernel internals, describe the ABI from user-space >> perspective to clarify what can be expected when using it. >> >> Signed-off-by: Arend van Spriel >> --- >> Documentation/ABI/testing/sysfs-devices-coredump | 14 +++++++++----- >> 1 file changed, 9 insertions(+), 5 deletions(-) >> >> diff --git a/Documentation/ABI/testing/sysfs-devices-coredump b/Documentation/ABI/testing/sysfs-devices-coredump >> index e459368..d5a4c75 100644 >> --- a/Documentation/ABI/testing/sysfs-devices-coredump >> +++ b/Documentation/ABI/testing/sysfs-devices-coredump >> @@ -2,9 +2,13 @@ What: /sys/devices/.../coredump >> Date: December 2017 >> Contact: Arend van Spriel >> Description: >> - The /sys/devices/.../coredump attribute is only present when the >> - device is bound to a driver, which provides the .coredump() >> - callback. The attribute is write only. Anything written to this >> - file will trigger the .coredump() callback. >> + When present the /sys/devices/.../coredump attribute can be used >> + to trigger a coredump of the device. The coredump contents are >> + device driver specific and thus vary. The coredump attribute is >> + writeonly. Anything written to this file will trigger creation >> + of the coredump. When the coredump is made available under >> + /sys/class/devcoredump it will generate a uevent. When the >> + coredump can not be successfully generated no ueven will occur. > > s/ueven/uevent/ crap. I mean: Thanks ;-) >> >> - Available when CONFIG_DEV_COREDUMP is enabled. >> + Available when CONFIG_DEV_COREDUMP is enabled and the device >> + driver supports coredump generation. > > What about /sys/class/devcoredump/disabled? Maybe we just need a > sysfs-class-devcoredump too, now that there's a formal method for > triggering devcoredumps. I am not sure about this. Not my daily routine so I can use some opinions here. Not that yours does not count, but I would like to be sure before respinning. Regards, Arend