[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Sheflug] Patches and the like
Dear All,
I've just downloaded this patch "High Res Timers" so that I can time
some code that I've written. Apologies for my ignorance, but I've no
idea how to patch it.
This is my feeble attempt at a patch
[root@bubby src]# patch -Np1 < /home/nicola/hrtimers-2.4.20-1.0.patch
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -urP -I '\$Id:.*Exp \$' -X /usr/src/patch.exclude
linux-2.4.20-kb/Documentation/Configure.help
linux/Documentation/Configure.help
|--- linux-2.4.20-kb/Documentation/Configure.help 2003-01-08
22:28:33.000000000 -0800
|+++ linux/Documentation/Configure.help 2003-01-08 22:51:05.000000000
-0800
--------------------------
File to patch:
The beginning of the patch looks like
[nicola@bubby nicola]$ more hrtimers-2.4.20-1.0.patch
diff -urP -I '\$Id:.*Exp \$' -X /usr/src/patch.exclude
linux-2.4.20-kb/Documenta
tion/Configure.help linux/Documentation/Configure.help
--- linux-2.4.20-kb/Documentation/Configure.help 2003-01-08
22:28:33.0000
00000 -0800
+++ linux/Documentation/Configure.help 2003-01-08 22:51:05.000000000
-0800
@@ -254,6 +254,102 @@
You will need a new lynxer.elf file to flash your firmware with -
send
email to Martin.Bligh [at] us.ibm.com
+
+Maximum number of POSIX timers
+CONFIG_MAX_POSIX_TIMERS
+ This option allows you to configure the system wide maximum number of
+ POSIX timers. Timers are allocated as needed so the only memory
+ overhead this adds is about 4 bytes for every 50 or so timers to keep
+ track of each block of timers. The system quietly rounds this number
+ up to fill out a timer allocation block. It is ok to have several
+ thousand timers as needed by your applications.
+
Do I have to email this bloke? and if so, what to I tell him?
Thanks in advance,
Nicola.
--
Dr. Nicola J. Richmond,
Department of Information Studies,
University of Sheffield,
Regent Court, 211 Portobello Street, S1 4DP.
___________________________________________________________________
Sheffield Linux User's Group -
http://www.sheflug.co.uk/mailfaq.html
GNU the choice of a complete generation.