Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp5387378imm; Tue, 19 Jun 2018 09:35:09 -0700 (PDT) X-Google-Smtp-Source: ADUXVKK6Uec1sIeZZL4ISFl11XGeC0UcveA0nSPOrwiCWkrawfYlKrwe4EPB8CD6XCkWf/aofCSB X-Received: by 2002:a62:50d6:: with SMTP id g83-v6mr18789285pfj.31.1529426109710; Tue, 19 Jun 2018 09:35:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529426109; cv=none; d=google.com; s=arc-20160816; b=rwYiq7I99KBk9ppxG0eIv/u18LZfthlXj8Qux+5ItbiQgBkDbNZlYek4kahKMy6XqS A0FM4T1QtyeHrW1RbzxAa/5sA5PQa8vWXQm5Nx3jKNJUuZq+WSOWH0/KWW2HloHi/QqH HsUili1+iTLMugEeydQ4yIQ2LnZHCokkjWOuXANEyHtf81h1LK032T7kQUXqxp050uQj isI4D4UjFDiK/jDhM6/Rn/iD1izrqUdXsvumGno2OUFSiK5bDyERX4DLBsuuBNL/794o F2j/JAuOqv/qCR5VGppvz3T2cA+KXTKxp3Vh/7YEjZRANKIf+RBkZMFCuk2nCe5P0uWd kyCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :arc-authentication-results; bh=gIQRAKe8uxckC8GXUDWgl7mYZC92uI8EK7Wt+fpWWAo=; b=ipbEAdYOR50Yd07w0wWQvT9MgPK4xp5TgYZuFrmB7Zn0pk/9rUNFyyMxEJPXW755/e YaYxFjXleQOuYsr3dU0Aa5w70BTGczk8SspQLYHGqkkIp+KyEPpduy76Xs5VyvXZHA73 4p7kWGsN0wikeEVVOx39srYpZOXldt6typS1jTMILZCZLOH9tHfnGsiU0yXdWdDAQpjo tP5StqqbhAGkYy3Vvyy2LSd8RuHmQobUAupW6c1+8bzWztlBoMCmKomwHoFh+kWK9ZE3 PY4pR4usgHt6k47IfhJ6d7uDePxb5EL4q2Ix5zTIulqtaLq0ALrUqLkTxX632rxVq8K/ Zmvw== ARC-Authentication-Results: i=1; mx.google.com; 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 p29-v6si84171pgc.199.2018.06.19.09.34.54; Tue, 19 Jun 2018 09:35:09 -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; 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 S967078AbeFSQdo (ORCPT + 99 others); Tue, 19 Jun 2018 12:33:44 -0400 Received: from mail.kernel.org ([198.145.29.99]:52032 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966692AbeFSQdc (ORCPT ); Tue, 19 Jun 2018 12:33:32 -0400 Received: from gandalf.local.home (cpe-66-24-56-78.stny.res.rr.com [66.24.56.78]) (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 34DFB20020; Tue, 19 Jun 2018 16:33:31 +0000 (UTC) Date: Tue, 19 Jun 2018 12:33:29 -0400 From: Steven Rostedt To: "Matwey V. Kornilov" Cc: hverkuil@xs4all.nl, mchehab@kernel.org, mingo@redhat.com, Mike Isely , Bhumika Goyal , Colin King , linux-media@vger.kernel.org, open list Subject: Re: [PATCH 1/2] Add TRACE_EVENTs in pwc_isoc_handler() Message-ID: <20180619123329.52bf6216@gandalf.local.home> In-Reply-To: References: <20180617143625.32133-1-matwey@sai.msu.ru> <20180618145854.2092c6e0@gandalf.local.home> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 19 Jun 2018 19:23:04 +0300 "Matwey V. Kornilov" wrote: > Hi Steven, > > Thank you for valuable comments. > > This is for measuring performance of URB completion callback inside PWC driver. > What do you think about moving events to __usb_hcd_giveback_urb() in > order to make this more generic? Like the following: > > local_irq_save(flags); > // trace urb complete enter > urb->complete(urb); > // trace urb complete exit > local_irq_restore(flags); > > If that can work for you, I'm fine with that. Trace events may be cheap, but they do come with some cost. I'd like to have all trace events be as valuable as possible, and limit the "special case" ones. -- Steve