Re: [PATCH 2/4] trace: prepare to collect call chains of non-currenttask.

From: Arun Sharma
Date: Fri Oct 14 2011 - 15:32:30 EST


On Mon, Sep 26, 2011 at 07:55:33PM +0400, Andrew Vagin wrote:
> This patch adds argument "task" to all functions between perf_tp_event()
> and perf_callchain(). All logic is in the next patch.
>
> We need "task" and "regs" simultaneously, because regs contains
> state of current task, before it entered in perf code. Task contains
> pointer to task_struct and it will be used for collecting call chains
> and filling event data, if task isn't current.
>
> Signed-off-by: Andrew Vagin <avagin@xxxxxxxxxx>

Acked-by: Arun Sharma <asharma@xxxxxx>

--
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/