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-next>] [day] [month] [year] [list]
Date:	Mon, 04 May 2009 15:15:11 -0700
From:	Corey Ashford <cjashfor@...ux.vnet.ibm.com>
To:	linux-kernel@...r.kernel.org, Ingo Molnar <mingo@...e.hu>,
	Peter Zijlstra <a.p.zijlstra@...llo.nl>,
	Paul Mackerras <paulus@...ba.org>
Subject: perf_counter: resetting a event counter

Hi,

In implementing the PAPI_reset function, whose purpose is to reset all 
of the counters in an event set, I found that [it appears] there is no 
straight-forward way to implement this function using "Performance 
Couunters for Linux".  My current implementation just closes the 
counters and reopens them again.  This is not a elegant solution, nor is 
the other alternative that occurred to me: maintain a "virtual" counter 
in user space, maintained using a base count, which is subtracted off of 
the current perf_counter value of a particular counter.

Is there a way that I missed to reset an event counter?  If not, I'd 
like to request that a new ioctl command be added to support this ability.

Thanks for your consideration,

- Corey

Corey Ashford
Software Engineer
IBM Linux Technology Center, Linux Toolchain
Beaverton, OR
503-578-3507
cjashfor@...ibm.com

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