On 02/21/11 14:37, Frederic Weisbecker wrote:
> The goal is actually to extend perf script to handle more than just raw data. > So that it can handle the rest of what we can find in an event: time, ip, > stacktraces... > > You've added 200 lines in perf report to add the dump support. It wouldn't > require more to extend perf script to do that. And the result is going to be > much more powerful. > > Look at struct scripting_ops::process_event(). I actually have a draft of perf-script - essentially duplicating sample processing done in perf-report. When it got to the point of having to add a lot of code -- other features essentially -- just to get it to the point of being ready for this feature I stopped. David > > What you need is too pass in the whole event instead of only the raw data, > cpu and so on... > > You don't even need to add the support in the scripts themselves, they can > just cope with the new parameter layout. You only need to handle the rest of > the event in the print_event() function (the default > scripting_ops::process_event()) > to print ip, time and stacktraces. > > This probably needs some option in perf script to avoid showing ip and other > new things. Although we probably want to print stacktraces by default > if there are present. -- To unsubscribe from this list: send the line "unsubscribe linux-perf-users" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
