Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751431AbdFBMXH (ORCPT ); Fri, 2 Jun 2017 08:23:07 -0400 Received: from mail-vk0-f48.google.com ([209.85.213.48]:33006 "EHLO mail-vk0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751126AbdFBMXF (ORCPT ); Fri, 2 Jun 2017 08:23:05 -0400 MIME-Version: 1.0 In-Reply-To: <874lvyvgag.fsf@linux.intel.com> References: <87a86bx5vx.fsf@linux.intel.com> <874lvyvgag.fsf@linux.intel.com> From: Chunyan Zhang Date: Fri, 2 Jun 2017 20:22:59 +0800 Message-ID: Subject: Re: Ftrace Data Export To: Felipe Balbi Cc: Alexander Shishkin , Steven Rostedt , Ingo Molnar , "linux-kernel@vger.kernel.org" , Mathieu Poirier , Arnd Bergmann , Mark Brown Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2194 Lines: 66 On 2 June 2017 at 18:24, Felipe Balbi wrote: > > Hi, > > (sorry for the long delay, just back from vacations) > > Chunyan Zhang writes: >> Hi Felipe, >> >> On 17 May 2017 at 16:08, Felipe Balbi wrote: >>> >>> Hi Chunyan, >>> >>> When you wrote your patchset to provide ftrace exports, why did you >>> choose to export only function trace? Why not tracepoints, >> >> In fact, I tried submitting patches[1] to do exporting tracepoint to >> STM, but Ingo and Steven commented that would introduce certain amount >> of overhead, and that was not acceptable. I also used >> 'benchmark_event' to see the additional overhead caused by printing >> tracepoint message to STM. I cannot remember the exact data though, >> the increased time consuming indeed was non-ignorable. >> >> So at the end I gave up that idea, and later on switched to the way of >> implementation you see in the kernel now. > > Were you decoding the data before off-loading it to the trace export? Indeed :) > > Maybe that's why they consider it an extra overhead? Have you considered > off-loading raw data for further post processing? Yes, that's also the way off-loading function trace has been implemented now. And like you said below, I also believe we can do the similar things to other tracers. I'd like to do this, but I have some other tasks in hands recently :-( > >>> function_graph, hwlat, irqsoff and all the other possibilities? >> >> I haven't thought about these clear enough :) >> Any suggestion? > > I think we should be able to export everything and anything :-p But, of > course, we would need tooling to decode it after the fact. Yes, tools for decoding these raw data with kernel binary is one thing, and how large storage STM can use to collect traces will also affect how much value doing this will bring in and perhaps will influence how we implement off-loading ftrace to trace export. Since I haven't played Intel STM, how large are the storages connected to STM on Intel platforms in general? Thanks, Chunyan > >> [1] https://lkml.org/lkml/2015/7/7/230 > > hmm, lkml.org seems to be down. > > -- > balbi