Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1586877ybz; Thu, 30 Apr 2020 01:54:54 -0700 (PDT) X-Google-Smtp-Source: APiQypJA+M1itbesoOWMw599Ou8GYgbCF3mAYhb/J6cjwd2WGKvBYnxUxTEpU9ry6/6BNvHu7Dj1 X-Received: by 2002:a17:907:214f:: with SMTP id rk15mr1720203ejb.301.1588236894775; Thu, 30 Apr 2020 01:54:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588236894; cv=none; d=google.com; s=arc-20160816; b=H8AlLKUL1c3tlNPZKdqsGv0Q+FOqouwT67EFUT6TQEr9fhQXeNN6GtrQXTuJCHvUrt 9ruy8gMDeRmvCv1o7CLRGDjqpsD2KIu+R6SwQvI/Zyk7mnLUytCgs9j5v9dSs71czBj2 HrzrtG5P9KYrzTkt8fxZ58OMWlJH5YxX2Aex/9D9QVJgioE/p2jZk6BO85RVKDDxwyY1 xYXU9QbcJtKQ5SdMwSomtg0OJD7ml7dDYQMp0O142BpcfW2gVLZyETaMo7V4l14BXioH DVuGxg0T8JNBUpPx27jsXLWF2LhajElteG2WT+elkNe4CL5OhFwHZOd9gER+LjMDSmtu EFUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=9cLf1Mtq8AKAZaVvdFI/qcKMG63/Rlta/MX0XuuQltA=; b=XYVA5HWrTNE/keYwiSSANbR/Qt/ozPrRy05UzOnJNOHKNEXH1dcqk6LAnX4ZjA0rkB DuYV3HvJfBgucTD3SLDChgQikuGKh7HkdtyApmdBBTHBjmJT+siAsyfKhgJpNHwGcA5G kmKc29oF7At1QRU5f29IpGdqPdyShMIhb72fvc3PYRiDsV76gLGWiTejrIOIFNilOT+8 sZXMlNbHKNyv6Xq9ZBsN5tKo9GoUZZ/eZXN6Rn620bcPJP+VB5x+H+VRJhRX6KaJl3O2 dHz1uZV3eAOf+Zql9UC/lR5c89yzw8ieuuzNVL+H93Vzg7G/Rfzxy1FX0A76kcNO4Bj1 7WNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=CQpj6MdP; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y10si5276915ejw.53.2020.04.30.01.54.31; Thu, 30 Apr 2020 01:54:54 -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=@kernel.org header.s=default header.b=CQpj6MdP; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726684AbgD3IvI (ORCPT + 99 others); Thu, 30 Apr 2020 04:51:08 -0400 Received: from mail.kernel.org ([198.145.29.99]:38732 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726412AbgD3IvI (ORCPT ); Thu, 30 Apr 2020 04:51:08 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0E54920787; Thu, 30 Apr 2020 08:51:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1588236667; bh=B25IdFkSF/Xe5nfhCVFQRFDEhKUayIXoiR5sj0+5jMs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=CQpj6MdPRT8b93Oyrn50O5QctFKfv7EG0MoIOkqp4mdOlo8hcVYXd65sWdV1zHoQt Os3vgxS45zA62gjVSPdyQVLKG9ePdxlAr9m9/oAGrrJKjpRWBilACWjfAhQ6z+pXO8 4Cnih2x/4oppwN83J/SciohdcrFoxsblbuWuope8= Date: Thu, 30 Apr 2020 10:51:05 +0200 From: Greg Kroah-Hartman To: Frankie Chang Cc: Todd Kjos , Joel Fernandes , Todd Kjos , Martijn Coenen , Arve =?iso-8859-1?B?SGr4bm5lduVn?= , Christian Brauner , LKML , linux-mediatek@lists.infradead.org, wsd_upstream , Jian-Min Liu Subject: Re: [PATCH v3 1/1] binder: transaction latency tracking for user build Message-ID: <20200430085105.GF2496467@kroah.com> References: <1586929044-12708-2-git-send-email-Frankie.Chang@mediatek.com> <1588234439-7959-1-git-send-email-Frankie.Chang@mediatek.com> <1588234439-7959-2-git-send-email-Frankie.Chang@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1588234439-7959-2-git-send-email-Frankie.Chang@mediatek.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 30, 2020 at 04:13:59PM +0800, Frankie Chang wrote: > Record start/end timestamp for binder transaction. > When transaction is completed or transaction is free, > it would be checked if transaction latency over threshold (2 sec), > if yes, printing related information for tracing. > > /* Implement details */ > - Add tracepoint/trace at free transaction. > Since the original trace_binder_transaction_received cannot > precisely present the real finished time of transaction, adding a > trace_binder_free_transaction at the point of free transaction > may be more close to it. > > - Add latency tracer module to monitor slow transaction. > The trace_binder_free_transaction would not be enabled > by default. Monitoring which transaction is too slow to > cause some of exceptions is important. So we hook the > tracepoint to call the monitor function. > > - Move some struct from core file to header file. > Need some struct defined in core file in latency trace module > In addition, moving all structs to header file makes module > more extendable, and make all these strcuts to be defined > in the same file. Also, this should be split up into a patch series, the first moving things around, and the rest of the patches each adding a single feature. As it is, this patch is almost impossible to review. thanks, greg k-h