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: <20110621175421.GF21641@sun>
Date:	Tue, 21 Jun 2011 21:54:21 +0400
From:	Cyrill Gorcunov <gorcunov@...il.com>
To:	Stephane Eranian <eranian@...gle.com>
Cc:	Peter Zijlstra <a.p.zijlstra@...llo.nl>,
	Don Zickus <dzickus@...hat.com>, Ingo Molnar <mingo@...e.hu>,
	Lin Ming <ming.m.lin@...el.com>,
	Arnaldo Carvalho de Melo <acme@...hat.com>,
	Frederic Weisbecker <fweisbec@...il.com>,
	Vince Weaver <vweaver1@...s.utk.edu>,
	lkml <linux-kernel@...r.kernel.org>
Subject: Re: [RFC -tip] perf, x86: Add PERF_COUNT_HW_NMI_WATCHDOG event v2

On Tue, Jun 21, 2011 at 07:26:16PM +0200, Stephane Eranian wrote:
...
> >
> >  It doesn't change things much. Of course I can put some specifics into
> > .config but where is the guarantee some new generic event would not ever
> > intersect with it. I know (for example) we could reserve -1ULL for this
> > event but again where is the guarantee that it will never ever be used
> > system wide in future for some different event?
> >
> I am not talking about a new generic PMU event. I am talking about
> you hardcoding a raw event in the callback: type = PERF_TYPE_RAW,
> config=0x003c.
> 

watchdog.c is system-wide and even if it's not used by archs other
than x86 doesn't mean it'll not in future ;) So we could encode
this watchdog event as you mention (and I would check for this
values and map it internally to bits I need, this btw will require me
to check if this bits do not intersect with some already valid bits
combination but it's a different problem) but than we _must_ be sure it
never bring problems as new arch or consumer appear. So, no, I don't
like this approach, it's fragile. But gimme some time -- I'll re-check
all bits, probably there is some workaround.

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