Re: [PATCH v0 13/71] perf tools: Add machine__get_thread_pid()

From: Andi Kleen
Date: Wed Dec 11 2013 - 16:18:58 EST


David Ahern <dsahern@xxxxxxxxx> writes:
>
> Are you looking up the current or next task? If the former why not use
> sample->pid rather than parsing the sched_switch tracepoint?

The itrace stream doesn't have a pid field, and it needs the exact
time stamp of the switch. There may not actually be any samples
before decoding.

-Andi
--
ak@xxxxxxxxxxxxxxx -- Speaking for myself only
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/