Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#5675 - Missing files in kernel-header package

Attached to Project: Arch Linux
Opened by Berger (Berger) - Thursday, 26 October 2006, 14:37 GMT
Task Type Bug Report
Category System
Status Closed
Assigned To No-one
Architecture not specified
Severity High
Priority Normal
Reported Version 0.7.2 Gimmick
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

After upgrading to the new kernel-headers package from 2.6.12-1 to 2.6.18-3, some important files are missing. For example:

* asm/msr.h
* asm/bitops.h
* asm/atomic.h

Greets,
Berger
This task depends upon

Closed by  Jan de Groot (JGC)
Friday, 27 October 2006, 09:11 GMT
Reason for closing:  Won't fix
Comment by Jan de Groot (JGC) - Thursday, 26 October 2006, 20:39 GMT
asm/atomic.h:
http://lkml.org/lkml/2006/7/10/417

asm/bitops.h:
http://www.linuxrocket.net/index.cgi?a=MailArchiver&ma=ShowMail&Id=461528

For asm/msr.h, I don't know, can't find any reference about that.

Most applications use these broken headers, these are kernelheaders and should not be included. Most packages will compile fine just by removing the #include lines. As stated in the quoted URLs, userspace apps depending on these headers are broken anyways.
Comment by Berger (Berger) - Friday, 27 October 2006, 09:03 GMT
Alright, something learned. At least on i386 based architectures these functions seems to me to be atomic in usermode (because there are translated into single assembler instructions, without any kernel locking, except the find functions of asm/bitops.h). I'm writing a special profiler, who needs these functions in usermode. But it's special enough to make it architecture depend and it needs the kernel sources anyway. You can close this task, it's not a bug. By the way: With asm/msr.h you can read the Time Stamp Counter on i386.

Greets,
Berger

Loading...