Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2875832ybl; Thu, 29 Aug 2019 14:19:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqzCGOZU/8qkqITcCQZp2P6MRH8ccgFqxsbBE3bcYmYxOr82vqz8IBRA946y68VyCxkReuDW X-Received: by 2002:a63:2157:: with SMTP id s23mr10444374pgm.167.1567113584437; Thu, 29 Aug 2019 14:19:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567113584; cv=none; d=google.com; s=arc-20160816; b=Noy8n4btAPIR0a/OvSmmgbUBZNglL7sg42cOEmSuLlIYVZUaVwHxjhj4gEs9Vxa9aA 1gxxXcra00YlHFBP9N7JYZA1SeSPQYrwVVCqgRAS8B9kevC1oGKu8Fcay54C1tKjMjsS Juqzm9ipV0eKcoAPBDLeArv/oZSYJW1PWSUrUI6UakgoXDpUzv78F2/uyiKPQpFIvV2K LGMayyl89MjsxAGmcpdLXQpUgNZB2e4Co1gGLtDkolSGaAQJ+zxlOvM2bF1GmSfPo+Z+ qs4O2j9AAISpbr2JC5pBaNvk/fHHwMvPnPpoEnGsvtjXWrfgqooBG+pji1G4lTChxnVR stjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:from:subject:mime-version :message-id:date:dkim-signature; bh=BW1c7IRnWjJoxQBtVPXO6COaVAzbUDcupsRP3+lK6WY=; b=0omQOEj+caemVKzNm7A8S2hAUziycp+E7hf33DPILtXl+Ij9kXFXe+s773hC3njv/+ szvENsZa2hc3PWkGnGlrao4+GowhZlLCs18xwor4kRZ14Q8hfl92oAcxlS7Hhjfi3DGs W8sE+KNlHbMdaFHhYZu4VcZP/TUmkffaCiRHYjLTdD78LLw4M84vPY2SuChtcPDhHhjo 4TBNb+ozBWRbxIs8lCJPXRPzdUJYegMFPIQ4prrbe0yCqIWKx1+ZqSkrzyHhocAeDlAw Pkvm5gHd5jCDTSAd1bRPRxUQ24QQZRtfp+WJ4LE3nr/sz6uMytQo5zJ/OkOAKENjogVg bLMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=DScvmQU+; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t189si3026602pgt.428.2019.08.29.14.19.28; Thu, 29 Aug 2019 14:19:44 -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=@google.com header.s=20161025 header.b=DScvmQU+; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728093AbfH2VSa (ORCPT + 99 others); Thu, 29 Aug 2019 17:18:30 -0400 Received: from mail-vk1-f202.google.com ([209.85.221.202]:57012 "EHLO mail-vk1-f202.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726935AbfH2VS3 (ORCPT ); Thu, 29 Aug 2019 17:18:29 -0400 Received: by mail-vk1-f202.google.com with SMTP id r17so1850553vkd.23 for ; Thu, 29 Aug 2019 14:18:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:message-id:mime-version:subject:from:to:cc; bh=BW1c7IRnWjJoxQBtVPXO6COaVAzbUDcupsRP3+lK6WY=; b=DScvmQU+89L+hniqEK44TU04uVyqUiGLL9u5xg2ckht5a7CYd7E2LbeJo2RTqqmNN2 ZRhaWXhwPL7tKn1cEgAFie5GiGnaKpFKFg7SmCIkGdQekr4q98LOlV4fMxG02PK9uHZC WoctCmJJGa70MK8ZZ8Yfnt/l05IgEzhqPuPhAoYrkOSF9AUUOhaxFwWJvtSGuxBCCHtP U1fE+DuLVt/48T4ldIdVCUv0RsvyvH8dPdH4mf9fwsVUAKa/eTGbKq5SspOi6yA43ngA QZ6+Jkrm7kE1CKneugmB5cVCaLDdPf5wlBnxZhkDwjN+uiCs23wBI3bg+qsQeY9EVGKG zqEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=BW1c7IRnWjJoxQBtVPXO6COaVAzbUDcupsRP3+lK6WY=; b=Za/ck7xguDhipcx0COq1sVsCYJkfRFZLlTsxE7Q+q4o9vzTOC9C+48ek6YfShYFaFJ pY5JDgyzIwTcyQTHOGjgVHiFkHHu4eiUVW0rxN4cZrulyMceH80XMVP7i+u5lTzh1f5V bP7q+Z4CR/q2YaO0vftq6L0634h1soT6c5O85lgl7mFKradkJD39KEX5C/a2dzP3YFbW YSj+Q4TvxJWf1nEvNhjOm4NBjcYGTqW2kaXhgjf062Ns3NIOKuuAKe3zXrWD70fPVWdg moOkny3BFuKLjrJFv/r0VbLEahJGVt4ZD8r4vxdtnyxBH4AcIlgz/KDhKJ7J9tDwiuIx DyiQ== X-Gm-Message-State: APjAAAXjA7PHv8XOs5jF/xMmzt5dY4oVVIHWuISTXPFqKYpP13ic8CMG NEgBvbk7MfIL25RzE4qfLtF4PTJihVY= X-Received: by 2002:ab0:6648:: with SMTP id b8mr5538718uaq.99.1567113508553; Thu, 29 Aug 2019 14:18:28 -0700 (PDT) Date: Thu, 29 Aug 2019 14:18:08 -0700 Message-Id: <20190829211812.32520-1-hridya@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.23.0.187.g17f5b7556c-goog Subject: [PATCH v2 0/4] Add binder state and statistics to binderfs From: Hridya Valsaraju To: Greg Kroah-Hartman , "=?UTF-8?q?Arve=20Hj=C3=B8nnev=C3=A5g?=" , Todd Kjos , Martijn Coenen , Joel Fernandes , Christian Brauner , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Cc: kernel-team@android.com, Hridya Valsaraju 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 Currently, the only way to access binder state and statistics is through debugfs. We need a way to access the same even when debugfs is not mounted. These patches add a mount option to make this information available in binderfs without affecting its presence in debugfs. The following debugfs nodes will be made available in a binderfs instance when mounted with the mount option 'stats=global' or 'stats=local'. /sys/kernel/debug/binder/failed_transaction_log /sys/kernel/debug/binder/proc /sys/kernel/debug/binder/state /sys/kernel/debug/binder/stats /sys/kernel/debug/binder/transaction_log /sys/kernel/debug/binder/transactions Hridya Valsaraju (4): binder: add a mount option to show global stats binder: Add stats, state and transactions files binder: Make transaction_log available in binderfs binder: Add binder_proc logging to binderfs drivers/android/binder.c | 95 ++++++----- drivers/android/binder_internal.h | 84 ++++++++++ drivers/android/binderfs.c | 255 ++++++++++++++++++++++++++---- 3 files changed, 362 insertions(+), 72 deletions(-) -- 2.23.0.187.g17f5b7556c-goog