From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Wed, 16 Oct 2019 19:02:01 +0200 Subject: [U-Boot] [PATCH] lib: time: Add microsecond timer In-Reply-To: References: <20191015204341.23613-1-marek.vasut+renesas@gmail.com> <95720451-7b2e-5925-7e9b-78c7eaa515dd@gmail.com> <1751086f-8f4d-8622-6a71-1004f97d2ee7@gmail.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 10/16/19 6:58 PM, Simon Glass wrote: [...] >>> Have you tried bootstage? >> >> What for ? I need to debug the EHCI driver performance across the EHCI >> driver and USB storage implementation. Bootstage is not helpful here. > > It can track the time spent in particular parts of the code, > accumulating it over multiple calls, etc. E.g. how much is FS, how > much is driver, how much is waiting for replies... And how much overhead does it add compared to calling get_timer{,_us}() directly ? It was about uSecs in this case, so this was the best approach. -- Best regards, Marek Vasut