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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C9C33CA0EC3 for ; Mon, 11 Sep 2023 21:41:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241100AbjIKVjy (ORCPT ); Mon, 11 Sep 2023 17:39:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45054 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238008AbjIKNcv (ORCPT ); Mon, 11 Sep 2023 09:32:51 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 284A7CD7 for ; Mon, 11 Sep 2023 06:32:47 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2CD29C433C7; Mon, 11 Sep 2023 13:32:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1694439166; bh=MPApL/+gobvCuCmAJt3xzTUKMEoLbO4uIhWk8WoHyAE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=v8IxIOA6VhQ6Er5h4+zcyWFFR7odSqJFqTEvjLH5sXWDXndeDFacwk8S6txpuy+Qd gHCWill+O78Ux8OCMrVHyTAHc2MZTKr/DEJTDNXZnPy/ZFEkLyFTTDcMMXvKx2YoMn vstSL5uNC+Pn6siSuTqgbKZEeDAU0TzTYqRuXyRA= Date: Mon, 11 Sep 2023 15:32:42 +0200 From: Greg Kroah-Hartman To: Linyu Yuan Cc: Thinh Nguyen , Peter Chen , Pawel Laszczak , Roger Quadros , Linus Walleij , Chunfeng Yun , Neal Liu , Cristian Birsan , Bin Liu , Kevin Cernekee , Justin Chen , Al Cooper , Li Yang , Vladimir Zapolskiy , Daniel Mack , Haojian Zhuang , Robert Jarzmik , Philipp Zabel , Herve Codina , hierry Reding , Jonathan Hunter , Michal Simek , Rui Miguel Silva , Valentina Manea , Shuah Khan , Hongren Zheng , linux-usb@vger.kernel.org Subject: Re: [PATCH v2 00/11] usb: gadget: reduce usb gadget trace event buffer usage Message-ID: <2023091141-outbound-turmoil-edda@gregkh> References: <20230911112446.1791-1-quic_linyyuan@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230911112446.1791-1-quic_linyyuan@quicinc.com> Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org On Mon, Sep 11, 2023 at 07:24:35PM +0800, Linyu Yuan wrote: > some trace event use an interger to to save a bit field info of gadget, > also some trace save endpoint name in string forat, it all can be > chagned to other way at trace event store phase. > > bit field can be replace with a union interger member which include > multiple bit fields. > > ep name stringe can be replace to a interger which contaion number > and dir info. Ok, but how much memory did you actually save here? Is the memory saved only if tracing is enbaled, or it is always? Is there a speed penality for these changes or is it the same? You are doing a lot of code reorginization without any real explaination of why this is needed, nor proof about it. thanks, greg k-h