On 10/22/11 3:49 AM, Frederic Weisbecker wrote:
That's not only a problem of semantics although that alone is a problem, people will seldom read the documentation for corner cases, we should really stay consistant here: if remote callchains are really needed, we want a specific interface for that, not abusing the existing one that would only confuse people.
A separate interface sounds good.
Now I still think doing remote callchains is asking for troubles: we need to ensure the target is really sleeping and is not going to be scheduled concurrently otherwise you might get weird or stale results. So the user needs to know which tracepoints are safe to perform this.
I expect this interface to be used in a small number of well known places in the kernel.
[...]
I think we should use something like a perf report plugin: perhaps something that can create a virtual event on top of real ones: compute the sched:sched_switch events, find the time tasks are sleeping and create virtual sleep events on top of that with a period weighted with the sleep time. Just a thought.
Right - whether we're doing wall-clock profiling or sleep profiling, it'll involve looking at multiple real events.
I still see one problem with doing: perf record -ag -e <bunch of events> and trying to sort through what happened. Unprivileged users who don't have permissions to system wide profiling, but have privileges to profile their own processes get locked out of this feature.
-Arun -- 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
