Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp1052479pxx; Fri, 30 Oct 2020 00:07:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwU3j/nGdSwqP0yO7SQcPWpC5NKz1XFVUtbwu26Z5ROuX2G+AZj75GmiyNMUT1Mh+mHVye+ X-Received: by 2002:aa7:dd49:: with SMTP id o9mr788284edw.143.1604041625275; Fri, 30 Oct 2020 00:07:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604041625; cv=none; d=google.com; s=arc-20160816; b=ktPxNiOHBcl8BSu5ggR+qPTPs9/zRIsSTCpjCmGT49tWj1dGU4GQAF4HKLC4FTzQ2k nZo2P7pG19Qo27kGgm/mErCoBLN/srtoSC6W7HsScb83z+lpvSCNCvJsstAy+0EJmDQx EyDeAmf92RD8/d5N37bYbbluxRxsVu+s+YmB8aGvkVpeDQTwKv0DtXH1loBq64fYFo7t A2uORgzfA1mxvHCqsxWCBTFWi8pbThr2TubJHoP7NW6VPsK7xEvtiVzGk1nBZ1qY4qpv DPLPARHFkWAX/FAzJbzGnzau+WEWySdZZx5lMELgiv1Fz8UJEwokImhyAEvY/dKNqYWu qgXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:mime-version:message-id:date :sender:dkim-signature; bh=xLeGlN0cmSvZbkXIw9c7NBWmR8fqqfs8YoL242vrZNo=; b=szBXvVNgzLhmfvQXXUA9B29+QxoYBGJtyjIp8TnJFF2GXpcW1MMdnVKyzZM+Ttqdt8 mtZ7YXFQXAZ9VPvbtQqVLGzeRwkTbOAOnsHKWNFTlk99peuHubb5tj5O+5OSi+fLV12M /B4jUHSj5K1s5eXD6EG05agIiTAY83+S4NnXLqbEOunT1Ub8Y99dL0ZaRkFhSe9BqtwG QHUkue2GgBcaXpSUVJ0haHRZlsVkv+PfXKFkH3j+8wcq7FoG/izv95NC36jmvehzPI3a k/mtg3fErtr14MOKzwUPVzdfeDgY2Uu3qncmc+aqCse+kIyUM5SDD1VDJSpBQzmSyFtj pyEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=qdhGWwk6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qq8si2889819ejb.359.2020.10.30.00.06.42; Fri, 30 Oct 2020 00:07:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=qdhGWwk6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725823AbgJ3HFJ (ORCPT + 99 others); Fri, 30 Oct 2020 03:05:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725770AbgJ3HFI (ORCPT ); Fri, 30 Oct 2020 03:05:08 -0400 Received: from mail-qk1-x74a.google.com (mail-qk1-x74a.google.com [IPv6:2607:f8b0:4864:20::74a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6EA33C0613CF for ; Fri, 30 Oct 2020 00:05:08 -0700 (PDT) Received: by mail-qk1-x74a.google.com with SMTP id i2so3351355qkk.0 for ; Fri, 30 Oct 2020 00:05:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=sender:date:message-id:mime-version:subject:from:to:cc; bh=xLeGlN0cmSvZbkXIw9c7NBWmR8fqqfs8YoL242vrZNo=; b=qdhGWwk6UnQUPs2PolENlW0FqUj+MaPdST5ln1/FXWClxUP5NqqRJyPo6ruZ9/c828 GpqEUEcUQfTYgJCYqLI2Y/XhR9Gb+BUN+0FBXWPhRLdlUl83XE1noVl7V6VV28SYLnZu aZc7DYIgegTvD/C1fD9sIEVJRZY4UslPOkF1zp3vUhdMpuYFZLx2boTctK1id/zXbkGG buvz9EzTcqpVrUyc/CASTrRxQ3tUY2UAmHvSURmkBVHVrda7+sl/8mRg7X3O9R5h8CW1 lnf1p8NfC7NaezDpyJynxOSWgPdI+zsysXifIBBxPP/qpaBlg8JyydogbE7WCM9STxVX gx2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:message-id:mime-version:subject:from :to:cc; bh=xLeGlN0cmSvZbkXIw9c7NBWmR8fqqfs8YoL242vrZNo=; b=mYApYD+nQrDsXowfFDYudXpPKbeUT/Ve10BDVpfi42VVTLsztL6I6ap9/5WmmluHyP 17VlvawhNeoVHhn35J/nctUZpF057Uekee9QtErcFl/Lzt1fWKPAEi2kkAkSgSNBw5lN uOjxeyKWX6WWe/2l8GVLHuR1qtY8647TGEOwFZuXnDAWiiYQXhBi4vqKlxYVRZyWaBFx gBv9YGksmdebhXk3PRPmySBW/PAqNwso9xFJvlapViVRVwrA/dCVnCZUJHvFpLnY968Q VNyjMXgfZaFL8hLUPtGmUb1/eDi+u37xmV+JmriXJzZgz1KizCVSSBs2eYG9OnchsAQF 4dPw== X-Gm-Message-State: AOAM531qLIFb81lYz3LqbY9Etkr+hpbyjlJth3Vb5UsWwBP9lm62JI65 qElfMAFslPT1nJ3NqD8+qgsRY6lgb2T/68ygmGIQ95nFpbEPZQI/wYBXDKFf9U9ff0AaRkHDaAb SGSgakJsK4U7LL8qRzIxjWgvlCil7MY72sxMlIOv7FVHwBl4jdpTwWxlB7TvTu/EZ8ndyVxiZ Sender: "amistry via sendgmr" X-Received: from nandos.syd.corp.google.com ([2401:fa00:9:14:725a:fff:fe46:72ab]) (user=amistry job=sendgmr) by 2002:a0c:b664:: with SMTP id q36mr7700643qvf.6.1604041507270; Fri, 30 Oct 2020 00:05:07 -0700 (PDT) Date: Fri, 30 Oct 2020 18:04:41 +1100 Message-Id: <20201030070442.457739-1-amistry@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.29.1.341.ge80a0c044ae-goog Subject: [PATCH 0/1] debugfs: Add a helper to export atomic64_t values From: Anand K Mistry To: linux-kernel@vger.kernel.org Cc: Anand K Mistry , Greg Kroah-Hartman , "Rafael J. Wysocki" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Here's my story: Once upon a time, there lived a developer that wanted to export an atomic64_t value to userspace using debugfs to help with debugging. But that developer found there was no helper function to do so and was very sad. The End. Yeah, it's a sad story. Here's my patch, merge me maybe? Anand K Mistry (1): debugfs: Add a helper to export atomic64_t values fs/debugfs/file.c | 37 +++++++++++++++++++++++++++++++++++++ include/linux/debugfs.h | 6 ++++++ 2 files changed, 43 insertions(+) -- 2.29.1.341.ge80a0c044ae-goog