lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20120607001340.GA22223@redhat.com>
Date:	Wed, 6 Jun 2012 20:13:40 -0400
From:	Dave Jones <davej@...hat.com>
To:	Peter Zijlstra <peterz@...radead.org>
Cc:	Linus Torvalds <torvalds@...ux-foundation.org>,
	Al Viro <viro@...iv.linux.org.uk>,
	Linux Kernel <linux-kernel@...r.kernel.org>, mingo@...nel.org
Subject: Re: 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@...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

Powered by Openwall GNU/*/Linux Powered by OpenVZ