Re: processes hung after sys_renameat, and 'missing' processes

From: Dave Jones
Date: Wed Jun 06 2012 - 20:13:58 EST


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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/