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: <1270757081.2458.4.camel@edumazet-laptop>
Date:	Thu, 08 Apr 2010 22:04:41 +0200
From:	Eric Dumazet <eric.dumazet@...il.com>
To:	Frederic Weisbecker <fweisbec@...il.com>
Cc:	Peter Zijlstra <a.p.zijlstra@...llo.nl>,
	LKML <linux-kernel@...r.kernel.org>,
	Arnaldo Carvalho de Melo <acme@...hat.com>,
	Paul Mackerras <paulus@...ba.org>, Ingo Molnar <mingo@...e.hu>
Subject: Re: [PATCH v2] perf: Store active software events in a hashlist

Le jeudi 08 avril 2010 à 21:39 +0200, Frederic Weisbecker a écrit :

...

> @@ -5401,6 +5507,16 @@ static void __cpuinit perf_event_init_cpu(int cpu)
>  	spin_lock(&perf_resource_lock);
>  	cpuctx->max_pertask = perf_max_events - perf_reserved_percpu;
>  	spin_unlock(&perf_resource_lock);
> +
> +	mutex_lock(&cpuctx->hlist_mutex);
> +	if (&cpuctx->hlist_refcount > 0) {


	if (cpuctx->hlist_refcount > 0)

> +		struct swevent_hlist *hlist;
> +
> +		hlist = kzalloc(sizeof(*hlist), GFP_KERNEL);
> +		WARN_ON_ONCE(!hlist);
> +		rcu_assign_pointer(cpuctx->swevent_hlist, hlist);
> +	}
> +	mutex_unlock(&cpuctx->hlist_mutex);
>  }



--
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