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>] [day] [month] [year] [list]
Date:	Mon, 04 May 2009 14:56:04 -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: question about the user page data_head field

Hi,

In working on the PAPI substrate using the "Performance Counters for 
Linux" implementation (code that's currently in linux-2.6-tip, commit: 
c786fa3dc42e8e898cf1a33f9f5a25b61c7043f5), I encountered an issue with 
the data_head field.

I am implementing the profiling part of the substrate, and am using the 
mmap'd data pages to capture IP samples.  This is working quite well, 
and I've been able to profile on multiple events simultaneously.

However, one thing I ran into is when my code examines the data_head 
field from user space, it's always a multiple of the page size.  So it's 
apparently updated only on mmap page overflow.  I think I understand 
that this is done for efficiency reasons, but it's a limitation for the 
user space app in that they can miss up to 255 records (4096 byte pages 
/ 16-byte records), because the following mmap page is non empty but not 
full.

Perhaps I'm missing something.  Is there a way to force data_head to be 
updated from user space?  If not, I'd like to request that a new 
mechanism for doing such, perhaps via an ioctl call.

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