From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A7F9815BA for ; Sun, 17 Sep 2023 08:01:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C6FE5C433C8; Sun, 17 Sep 2023 08:01:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1694937712; bh=KtyNyn4NLvVFuuvZBHaP1dYgJRTZxuTk9o6GHIYJ1Q8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=2Ysa0acW1YmvFL59v1B39xVKM1008Wu7m7qCThlfchMMcIoU4TRpp9JPalDbD9kEN YoJBsIAODlKrgRM5Gi8HfhfRt6jac0E267bTS7dvJo5Kms6LC5TLukobTG5MCvjYtU y4l+xsz8IRck31WaXlaQFxgd3QnXVhXpFWdK0O9I= Date: Sun, 17 Sep 2023 10:01:48 +0200 From: Greg Kroah-Hartman To: Linyu Yuan Cc: Thinh Nguyen , Alan Stern , linux-usb@vger.kernel.org Subject: Re: [PATCH v6 1/3] usb: gadget: add anonymous definition in some struct for trace purpose Message-ID: <2023091712-cahoots-saturate-dc9f@gregkh> References: <20230915052716.28540-1-quic_linyyuan@quicinc.com> <20230915052716.28540-2-quic_linyyuan@quicinc.com> Precedence: bulk X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230915052716.28540-2-quic_linyyuan@quicinc.com> On Fri, Sep 15, 2023 at 01:27:14PM +0800, Linyu Yuan wrote: > Some UDC trace event will save usb udc information, but it use one int > size buffer to save one bit information of usb udc, it waste trace buffer. How much waste exactly? > Add anonymous union which have u32 members can be used by trace event > during fast assign stage to save more entries with same trace ring buffer > size. Are you sure? > Also add some trace event purpose macro in this file for all possiable > use. When you say "also" in a changelog, that means the change should be split up into multiple patches. > +/*-------------------------------------------------------------------------*/ > +/* trace only, data in __le32 format at trace event fast assign stage */ > +#define USB_GADGET_SG_SUPPORTED BIT(0) This will not work well at all, and is probably broken as-is, sorry, please rethink all of this. greg k-h