lkml.org 
[lkml]   [2012]   [Jun]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [RFC] [PATCH 0/5] Teach perf tool to profile sleep times (V4)
    From
    Date
    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();
    > + }


    \
     
     \ /
      Last update: 2012-06-04 15:21    [W:0.028 / U:0.276 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site