* Rusty Russell (rusty@rustcorp.com.au) wrote:I think your idea is good. immediate_init() could be used to update the immediate values at boot time _and_ at module load time, and we could use an architecture specific arch_immediate_update_init() to support it. As for "when" to use this, it should be used at boot time when interrupts are still disabled, still running in UP. It can also be used at module load time before any of the module code is executed, as long as the module code pages are writable (which they always are, for now..). Therefore, the flag seems inappropriate for module load arch_immediate_update_init. It cannot be put in __init section neither though if we use it like this. Yes, I thought about this, but since I use immediate values in the kernel markers, which can be put in exception handlers (including nmi, mce handler), which cannot be disabled without important side-effects, I don't think trying to stop the CPUs is a workable solution. GCC support is required if we want to embed inline functions inside unlikely branches depending on immediate values (no function call there). It also permits passing local variables as arguments to the function call (stack setup), which would be tricky, instrumentation site specific and non portable if done in assembly. Mathieu -- Mathieu Desnoyers Computer Engineering Ph.D. Student, Ecole Polytechnique de Montreal OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F BA06 3F25 A8FE 3BAE 9A68 -
| Linus Torvalds | Linux 2.6.21-rc5 |
| Linus Torvalds | Linux 2.6.26-rc4 |
| Christoph Hellwig | Re: [PATCH] Version 3 (2.6.23-rc8) Smack: Simplified Mandatory Access Control Kernel |
| Bryan Woods | Stardom SATA HSM violation |
git: | |
| Linus Torvalds | People unaware of the importance of "git gc"? |
| Jan Holesovsky | [PATCH] RFC: git lazy clone proof-of-concept |
| Linus Torvalds | cleaner/better zlib sources? |
| martin f krafft | Re: Track /etc directory using Git |
| Chris | OpenBSD 4.4 installation error: write failed; file system full |
| Brian A. Seklecki | sshd_config(5) PermitRootLogin yes |
| steve szmidt | Re: The Atheros story in much fewer words |
| David Newman | setting dscp or tos bits |
| Jim Winstead Jr. | Re: Root Disk/Book Disk Compatibility |
| Jan Nicolai Langfeldt | Re: Hypenation problems under LaTeX. |
| Linus Torvalds | Re: Missing linux/delay.h??? |
| Stew Ellis | Trouble with minicom scripts |
