From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY,USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8F9F8C433DF for ; Tue, 28 Jul 2020 03:28:28 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 595EA2072E for ; Tue, 28 Jul 2020 03:28:28 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="U6x4PWx8"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b="QXbiNIT+" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 595EA2072E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=mediatek.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-ID:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=H3GxewTN7+xCFjZYmnx1wbEd4cHk7gCyu3UkYTCe9dk=; b=U6x4PWx8Ah0B9st1BQA/usYEq saq87jCnjkt2N1BuvnWh7ePp8Z7QKu3d9am91IDRMe7w6i6bBvCGu3CSgCw0M3O462+NzRjPhim0y yiltqdTN7PrHGKY3irxKWHe1+IAYOnaHdBkfLoEHpRpD0jaKJTVTaWJw+uewGvZaJMy2eZMOvf/XC 8fGgS9L3QA8h1ZArX0bdhby2rBIaVs6ZYv5O/p6vCvwRLIv5gFNCR9bmwLk9wV+uEd5j7G7OIOjw+ mP6a8AIhmqXh+uGuJdaqV6ohdS/bY+ngDkGs74HeYMHJv1Bl0gveF4Qzog/g2WjZXBFQ40xRPbe3A z+kGpfiEA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1k0GHp-00030Z-AL; Tue, 28 Jul 2020 03:28:17 +0000 Received: from mailgw02.mediatek.com ([216.200.240.185]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1k0GHm-0002zF-3S for linux-mediatek@lists.infradead.org; Tue, 28 Jul 2020 03:28:15 +0000 X-UUID: 1191f6047ce8456480205280cf820363-20200727 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=GjxkIM1k042UVhE+KHYwiPMh+DeoglMOkaNl5efUmuI=; b=QXbiNIT+Up++I36x6MMYeUvouI1EwT7CbXs2oLY7ymlHJRdiv32hLYMD3/en4Z0hWSBjFj3NTuJhI+iLUGgn8dycS9r83yUqHSNakW4r1ONxpK7L4iV6lZTye3dgclM/QWSjOODMJU369GRE9byFi7p13Aoy2KbZ8iNuUGsjebQ=; X-UUID: 1191f6047ce8456480205280cf820363-20200727 Received: from mtkcas66.mediatek.inc [(172.29.193.44)] by mailgw02.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLS) with ESMTP id 996890768; Mon, 27 Jul 2020 19:28:12 -0800 Received: from mtkmbs08n2.mediatek.inc (172.21.101.56) by MTKMBS62DR.mediatek.inc (172.29.94.18) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 27 Jul 2020 20:20:05 -0700 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 28 Jul 2020 11:20:03 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 28 Jul 2020 11:20:00 +0800 From: Frankie Chang To: Todd Kjos Subject: [PATCH v6] binder: transaction latency tracking for user build Date: Tue, 28 Jul 2020 11:19:58 +0800 Message-ID: <1595906401-11985-1-git-send-email-Frankie.Chang@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1595252430.5899.6.camel@mtkswgap22> References: <1595252430.5899.6.camel@mtkswgap22> MIME-Version: 1.0 X-TM-SNTS-SMTP: E6DE5ABF50AF220296EFE4677D610D98FF0928400BA42DD430BEBA16C5A5101E2000:8 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200727_232814_370936_B7CF08B8 X-CRM114-Status: UNSURE ( 8.45 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: wsd_upstream@mediatek.com, Greg Kroah-Hartman , linux-kernel@vger.kernel.org, =?UTF-8?q?Arve=20Hj=C3=B8nnev=C3=A5g?= , Jian-Min Liu , linux-mediatek@lists.infradead.org, Joel Fernandes , Frankie Chang , Martijn Coenen , Christian Brauner Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Change from v6: - change CONFIG_BINDER_TRANSACTION_LATENCY_TRACKING type from bool to tristate - add comments to @timestamp and @tv under struct binder_transaction - make binder_txn_latency threshold configurable - enhance lock protection Change from v5: - change config name to the proper one, CONFIG_BINDER_TRANSACTION_LATENCY_TRACKING. - change tracepoint name to more descriptive one, trace_binder_txn_latency_(alloc|info|free) - enhance some lock protection. Change from v4: - split up into patch series. Change from v3: - use tracepoints for binder_update_info and print_binder_transaction_ext, instead of custom registration functions. Change from v2: - create transaction latency module to monitor slow transaction. Change from v1: - first patchset. _______________________________________________ Linux-mediatek mailing list Linux-mediatek@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-mediatek