lkml.org 
[lkml]   [2012]   [Jun]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: processes hung after sys_renameat, and 'missing' processes
    On Mon, Jun 04, 2012 at 12:49:48PM +0200, Peter Zijlstra wrote:

    > Something like the compile tested only patch below should do both
    > things.
    >
    ..
    > +#ifdef CONFIG_LOCK_STAT
    > +
    > +static void lockstat_contended(struct held_lock *hlock)
    > +{
    > + int contention_point, contending_point;
    > + struct lock_class_stats *stats;
    > +
    > + hlock->waittime_stamp = lockstat_clock();
    > +
    > + contention_point = lock_point(hlock_class(hlock)->contention_point, ip);
    > + contending_point = lock_point(hlock_class(hlock)->contending_point,
    > + lock->ip);
    > +
    > + stats = get_lock_stats(hlock_class(hlock));
    > + if (contention_point < LOCKSTAT_POINTS)
    > + stats->contention_point[contention_point]++;
    > + if (contending_point < LOCKSTAT_POINTS)
    > + stats->contending_point[contending_point]++;
    > + if (lock->cpu != smp_processor_id())
    > + stats->bounces[bounce_contended + !!hlock->read]++;
    > + put_lock_stats(stats);
    > +}


    kernel/lockdep.c: In function ‘lockstat_contended’:
    kernel/lockdep.c:3662:70: error: ‘ip’ undeclared (first use in this function)
    kernel/lockdep.c:3662:70: note: each undeclared identifier is reported only once for each function it appears in
    kernel/lockdep.c:3664:11: error: ‘lock’ undeclared (first use in this function)
    kernel/lockdep.c: In function ‘lockstat_acquired’:
    kernel/lockdep.c:3702:13: error: ‘ip’ undeclared (first use in this function)


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

    \
     
     \ /
      Last update: 2012-06-07 03:01    [W:0.024 / U:30.796 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site