[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1338814210.28282.47.camel@twins>
Date: Mon, 04 Jun 2012 14:50:10 +0200
From: Peter Zijlstra <peterz@...radead.org>
To: Andrew Vagin <avagin@...nvz.org>
Cc: Arun Sharma <asharma@...com>, Oleg Strikov <OSTRIKOV@...dia.com>,
Steven Rostedt <rostedt@...dmis.org>,
Frederic Weisbecker <fweisbec@...il.com>,
Ingo Molnar <mingo@...nel.org>, linux-kernel@...r.kernel.org
Subject: Re: [RFC] [PATCH 0/5] Teach perf tool to profile sleep times (V4)
On Mon, 2012-06-04 at 14:40 +0200, Peter Zijlstra wrote:
> + if (task) {
> + struct perf_event_context *ctx;
> +
> + rcu_read_lock();
> + ctx = rcu_dereference(task->perf_event_ctxp[perf_sw_context]);
> + list_for_each_entry_rcu(event, &ctx->event_list, event_entry) {
Ah, this needs a little something like the below:
if (!(event->attr.type == PERF_TYPE_TRACEPOINT &&
event->attr.config == $something))
continue;
Not exactly sure where we hid the tracepoint_id at this point..
> + if (perf_tp_event_match(event, &data, regs))
> + perf_swevent_event(event, count, &data, regs);
> + }
> + rcu_read_unlock();
> + }
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists