Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp760068ybe; Wed, 4 Sep 2019 07:22:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqwFqrNyR8wzbuz0ZiCnz6p0X+Ql+Vkk6os+Czzn7brAQ6N+wAIGj1RuT45u/GqjLMya3x/V X-Received: by 2002:a63:550d:: with SMTP id j13mr35724231pgb.173.1567606956896; Wed, 04 Sep 2019 07:22:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567606956; cv=none; d=google.com; s=arc-20160816; b=pwcpLMm8eERJ9CxiQ995pUXkD5y0bWvSd7nBY4KOH237EuyUvkDVkhMeUXi76XnTcm FJfWDvXtgXuBi5PS8m1Sp1ecGDNZCrmZ1bxfd+Qj9O9I9SbjDoonj9bho726hd69e3sZ 4VelsX9PMWKzpH+8UDe8ichWsuxHIXKxHoNar9ggdEaUugCNISFiE6/DJfpoNBlF9apy mLDVureKMvwxeoHKGFAwPm3d6pcVkmBUSbSma9Z5jGsIYVgKoCDxOSR6HUsYyx8fcDWW xhNUhhIjrMDBvAwcFh+/FfcNdOEDVcamv3GGnMdMJLStVaWkcSX4Kr2P97Hn+hyc6Tlc HxdQ== 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=FqKo9AIGflfwe+nTOQbNK48Ono8rjC9vrryTFd757pg=; b=nAH/Ro8Gj9/IPxhO1lx2fCKug/sjfzKvSgwi6y96Pfq/Lgq2HOnuvcxpy0DHnj75Gw qYCSFHjVKcLm+295St1VPUOXjfYUwsDHuBq7INV65BsiVguuQ6i3Dg5LCyGlCGhx2sbn JgBTXJJ/Ec9xwVPw+qusrAuqaJARHTkh8JnqzqIA2z3dJ+bmHSrWLQ0kAnFCVYqo/IZR L9UGHYorgmBSaQFW0aOgJ63eHbdFuWmtoro5A/Qo2xwHynUD09b+AA3uxvdXotczm4E2 o538MDC3N1goZzFKV4M/ZaExUI93VQkedImnEwJ6M5a6Cf4xtcy26kctvTJ96rekxj1W b0vA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=H69Yl7Md; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h6si2399315pjq.93.2019.09.04.07.22.19; Wed, 04 Sep 2019 07:22:36 -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=@joelfernandes.org header.s=google header.b=H69Yl7Md; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730922AbfIDOUo (ORCPT + 99 others); Wed, 4 Sep 2019 10:20:44 -0400 Received: from mail-qt1-f195.google.com ([209.85.160.195]:33128 "EHLO mail-qt1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729993AbfIDOUo (ORCPT ); Wed, 4 Sep 2019 10:20:44 -0400 Received: by mail-qt1-f195.google.com with SMTP id r5so19315230qtd.0 for ; Wed, 04 Sep 2019 07:20:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joelfernandes.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=FqKo9AIGflfwe+nTOQbNK48Ono8rjC9vrryTFd757pg=; b=H69Yl7MdXX1X8aGR/Rpg8MdYTCNSKGXy9pVbcMfXsr7L2a0aDmcpaeHqy4GNr7NOsA Jw3APKJnYiiHhamaHUMB7yvwCeC+OgirN/UZBSyAj1rwFC6z8t27zjebWUe+DcYOctNo EVT9yWtbndHZiIfdoa8cvob9H9KQS6DxJSOHU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=FqKo9AIGflfwe+nTOQbNK48Ono8rjC9vrryTFd757pg=; b=VyCAmCtzPIcBMESBSYVYjVo2IL+t9aAbs72iOTPgRjfdxphQHMza8FwRTbuHK+L1gx UmGgydZ48YyUX5Qb/ypI3eJ3C7mxsrrTm9JPrTx/KTP9ZDeX3fdISVWPUnQmRhcO/tQe fLxg4jogPz/lyG3PBJxpa9ppBYacfx1KyDIzVPfP0ARJBEcLWB4k0yVgRJ9iwnhIgHIW r6eHMSbZiKtymKcDj/i5D3awXByc2TvVM82YnrEnhROlw7mBlShXSu/fvkF4q2P11WJa CcFJL5yHbmIWHO5WsHT6u5/9rHmekW7fifrNmBxJ28+lLSFI68hdvkknqDK8YgWwTghv tvUA== X-Gm-Message-State: APjAAAVRhaSAxw55eNmA6YVBhYvKlnZ3yBB7K5lVrsSUFQKt4kNpfeIu XBnwPxE3fTQvsTkWs6tFLfWO03eiQCOrOsskH8s6sg== X-Received: by 2002:a0c:99ee:: with SMTP id y46mr25823587qve.54.1567606843395; Wed, 04 Sep 2019 07:20:43 -0700 (PDT) MIME-Version: 1.0 References: <20190903161655.107408-1-hridya@google.com> <20190904111934.ya37tlzqjqvt7h6a@wittgenstein> In-Reply-To: <20190904111934.ya37tlzqjqvt7h6a@wittgenstein> From: Joel Fernandes Date: Wed, 4 Sep 2019 10:20:32 -0400 Message-ID: Subject: Re: [PATCH v3 0/4] Add binder state and statistics to binderfs To: Christian Brauner , Hridya Valsaraju Cc: Greg Kroah-Hartman , =?UTF-8?B?QXJ2ZSBIasO4bm5ldsOlZw==?= , Todd Kjos , Martijn Coenen , "open list:ANDROID DRIVERS" , LKML , kernel-team 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 September 4, 2019 7:19:35 AM EDT, Christian Brauner wrote: >On Tue, Sep 03, 2019 at 09:16:51AM -0700, Hridya Valsaraju wrote: >> 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 > >Acked-by: Christian Brauner > >Btw, I think your counting is off-by-one. :) We usually count the >initial send of a series as 0 and the first rework of that series as >v1. >I think you counted your initial send as v1 and the first rework as v2. Which is fine. I have done it both ways. Is this a rule written somewhere? >:) > If I am not mistaken, this is Hridya's first set of kernel patches. Congrats on landing it upstream and to everyone for reviews! (assuming nothing falls apart on the way to Linus tree). thanks, - Joel [TLDR] My first kernel patch was 10 years ago to a WiFi driver when I was an intern at University. I was thrilled to have fixed a bug in network bridging code in the 802.11s stack. This is always a special moment so congrats again! ;-) >Christian > >> >> 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 >>