Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 144560 - sys-apps/perfctr architecture/version confusion in Portage tree
Summary: sys-apps/perfctr architecture/version confusion in Portage tree
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High major
Assignee: Robin Johnson
URL: http://user.it.uu.se/~mikpe/linux/per...
Whiteboard: overdue
Keywords: PMASKED
Depends on:
Blocks:
 
Reported: 2006-08-20 14:52 UTC by M. Edward Borasky
Modified: 2007-02-08 06:44 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description M. Edward Borasky 2006-08-20 14:52:20 UTC
Portage only has sys-apps/perfctr 2.7.18. According to the author,
---------------------------------------------------------------------
Version 2.7.20 of perfctr, the Linux performance monitoring
counters kernel extension, is now available at the usual
place: http://www.csd.uu.se/~mikpe/linux/perfctr/2.7/

This is a kernel update release, to provide continued ppc64
support to the PAPI and IBM folks. The x86, x86-64, and ppc32
architectures are NOT supported in the perfctr-2.7 branch:
for those, please use the perfctr-2.6 branch instead.
---------------------------------------------------------------------
So Portage has an old version of perfctr, and one that only works on PPC 64. The correct version for the other architectures is the recently-announced 2.6.23:
---------------------------------------------------------------------
Version 2.6.23 of perfctr, the Linux performance monitoring
counters kernel extension, is now available at the usual
place: http://www.csd.uu.se/~mikpe/linux/perfctr/2.6/

Regarding Intel's Core processors: Intel's documentation
states that each EVNTSEL has its own enable bit, just like
P4s and AMD's processors. However, testing done by the PAPI
folks indicate that Intel Core 2 has a single master enable
bit in EVNTSEL0, just like previous P6 processors. For now,
perfctr follows the traditional P6 rules for Intel Core CPUs.

Version 2.6.23, 2006-08-20
- Intel Core 2 fixes: detect Core2 processors (Model 15) and
  allow them to be used in 64-bit builds.
- Updated kernel support: 2.6.18-rc4, 2.6.17, 2.6.9-34.0.2.EL (RHEL4),
  2.4.33, 2.4.34-pre1, and 2.4.21-47.EL (RHEL3).
- The update-kernel script is now able to automatically identify
  SuSE Linux kernel versions. A SuSE kernel MUST be configured
  (".config" exists) for the identification to work.

/ Mikael Pettersson
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2006-09-28 13:52:43 UTC
ok, this raises a difficult question.
upstream says to only use perfctr-2.7 for ppc64, and perfctr-2.6 for every other architecture.

I'm assuming that they are talking about hardware - so in my case, I have ppc64 hardware, running a 32-bit userland.

Can anybody see an easy way to enforce 2.7 usage on ppc64 hardware? KEYWORDS="~ppc64 ~ppc" is obviously the first part, but any ideas on a good check that the hardware is sane?
Comment 2 Markus Rothe (RETIRED) gentoo-dev 2006-10-03 12:11:03 UTC
well.. I would like to add ~ppc64, but I don't know what this programm does and just running it does not realy help ;-)

(gcc41) power1 ~ # perfex
perfctr_abi_check: No such file or directory
perfex: open perfctrs: Illegal seek
(gcc41) power1 ~ # perfex --help
perfctr_abi_check: No such file or directory
perfex: open perfctrs: Illegal seek
(gcc41) power1 ~ #
Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2006-10-03 14:27:58 UTC
znmeb/ppc: actually, I've just taken a harder look at this again, and I realized that while it was present in older -mm kernels, it has been dropped in favour of perfmon.

http://www.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.13/2.6.13-mm3/announce.txt
http://sourceforge.net/mailarchive/forum.php?thread_id=8102899&forum_id=2237

In line with this, I'm going to be dropping it from the tree (I originally added it to the tree because I was using it on old -mm kernels).
Comment 4 M. Edward Borasky 2006-10-03 19:50:56 UTC
(In reply to comment #3)
> znmeb/ppc: actually, I've just taken a harder look at this again, and I
> realized that while it was present in older -mm kernels, it has been dropped in
> favour of perfmon.
> 
> http://www.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.13/2.6.13-mm3/announce.txt
> http://sourceforge.net/mailarchive/forum.php?thread_id=8102899&forum_id=2237
> 
> In line with this, I'm going to be dropping it from the tree (I originally
> added it to the tree because I was using it on old -mm kernels).
> 
$ esearch -Snv perfmon

$ esearch -Fnv perfmon

I guess I should file an enhancement bug to get "perfmon" in Portage now. :)



DreamSong ~ # 

Comment 5 Jakub Moc (RETIRED) gentoo-dev 2007-02-08 06:44:24 UTC
# Robin H. Johnson <robbat2@gentoo.org> (3 Oct 2006)
# Bug 144560
# Upstream discontinued perfctr last year, in favour of perfmon:
# http://www.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.13/2.6.13-mm3/announce.txt
# http://sourceforge.net/mailarchive/forum.php?thread_id=8102899&forum_id=2237
# It was only available in mm kernels, up to 2.6.13-mm2.
# Scheduled for removal on 2006/11/03
sys-apps/perfctr

Please, remove.