How to write a kernel patch to expose a kernel-level function?

  • Permalink
  • submit to reddit
  • Email
  • Follow


I want to be able to call smp_processor_id() from user-space.  Of
course the patch would be used by only me.  (I am not asking someone to
write such to submit as an official patch.)

0
Reply hzmonte (100) 1/30/2006 6:11:36 PM

See related articles to this posting


hzmonte@hotmail.com writes:

> I want to be able to call smp_processor_id() from user-space.  Of
> course the patch would be used by only me.  (I am not asking someone to
> write such to submit as an official patch.)

Does this help:

http://altlinux.org/index.php?module=sisyphus&package=cpuid
0
Reply daneNO2 (702) 1/30/2006 8:05:50 PM

hzmonte@hotmail.com wrote:
> I want to be able to call smp_processor_id() from user-space.  Of
> course the patch would be used by only me.  (I am not asking someone to
> write such to submit as an official patch.)


In principle, there are two ways of doing it:

  - write a new system call
  - create an entry in the /proc pseudo-filesystem

In both cases you need a piece of kernel code,
a patch or a kernel module.

Please be warned that the result processor may be
changed when you return from the system call reading
the information.

-- 

Tauno Voipio
tauno voipio (at) iki fi

0
Reply tauno.voipio2 (905) 1/30/2006 8:08:20 PM

>http://altlinux.org/index.php?module=sisyphus&package=cpuid
Thx but no, it is not what I want.  This package displays the CPU spec
like who the manufacturer is and what model it is, etc.  What I want,
and what smp_processor_id() returns, is which logical processor the
calling thread is running on.  Is CPU0, CPU1, or CPU2, for example?

>In both cases you need a piece of kernel code, a patch or a kernel module
So my question is How to write a kernel patch?  Is it as simple as
adding a statement in the source like "EXPORT TO USER-SPACE
smp_processor_id"?  Any pointer to how to do it?  Ay more concrete
guideline?

0
Reply hzmonte (100) 1/31/2006 2:35:39 AM

hzmonte writes:
> What I want, and what smp_processor_id() returns, is which logical
> processor the calling thread is running on.  Is CPU0, CPU1, or CPU2, for
> example?

Why?  Of what possible use could that information be?  What problem are you
trying to solve?
-- 
John Hasler 
john@dhh.gt.org
Dancing Horse Hill
Elmwood, WI USA
0
Reply john4584 (1601) 1/31/2006 2:52:33 AM

hzmonte@hotmail.com wrote:
>>http://altlinux.org/index.php?module=sisyphus&package=cpuid
> 
> Thx but no, it is not what I want.  This package displays the CPU spec
> like who the manufacturer is and what model it is, etc.  What I want,
> and what smp_processor_id() returns, is which logical processor the
> calling thread is running on.  Is CPU0, CPU1, or CPU2, for example?
> 
>>In both cases you need a piece of kernel code, a patch or a kernel module
> 
> So my question is How to write a kernel patch?  Is it as simple as
> adding a statement in the source like "EXPORT TO USER-SPACE
> smp_processor_id"?  Any pointer to how to do it?  Ay more concrete
> guideline?


The kernel runs in a private address space compared to
the user code. You cannot use the kernel internal
address for anything in user code, and it's not allowed
to even look at the contents of the address.

For details, get the books

   Understanding the Linux Kernel

and

   Linux Device Drivers

and read and understand them before attempting own
kernel coding.

Both books are published by O'Reilly.

IMHO, creating a /proc file is the easiest way of
reading the identifier.

A different story is that the result is probably
invalid at the time your user code gets it. There
is no guarantee that the process is running on
the reported processor anymore.

-- 

Tauno Voipio
tauno voipio (at) iki fi

0
Reply tauno.voipio2 (905) 1/31/2006 7:29:59 AM

>Why?  Of what possible use could that information be?  What problem are you
>trying to solve?

>A different story is that the result is probably invalid at the time your user code gets it. There
>is no guarantee that the process is running on the reported processor anymore.

I am trying to make sure sched_setaffinity() works.  That system call
allows you to restrict the execution of the calling thread on a (set
of) particular logical processor(s).  So, after I call
sched_setaffinity(), I want to call smp_processor_id() to see if the
thread is indeed executing on a processor selected.

0
Reply hzmonte (100) 1/31/2006 8:03:38 AM

hzmonte@hotmail.com wrote:
>> Why?  Of what possible use could that information be?  What problem are you
>> trying to solve?
> 
>> A different story is that the result is probably invalid at the time your user code gets it. There
>> is no guarantee that the process is running on the reported processor anymore.
> 
> I am trying to make sure sched_setaffinity() works.  That system call
> allows you to restrict the execution of the calling thread on a (set
> of) particular logical processor(s).  So, after I call
> sched_setaffinity(), I want to call smp_processor_id() to see if the
> thread is indeed executing on a processor selected.
> 
Why not, instead, examine the kernel code related to this and see if it is
OK? Would that not be easier than tinkering with the kernel?

-- 
  .~.  Jean-David Beyer          Registered Linux User 85642.
  /V\  PGP-Key: 9A2FC99A         Registered Machine   241939.
 /( )\ Shrewsbury, New Jersey    http://counter.li.org
 ^^-^^ 05:15:00 up 10 days, 20:42, 5 users, load average: 4.08, 4.10, 4.09
0
Reply jeandavid8 (984) 1/31/2006 10:19:25 AM

John Hasler <john@dhh.gt.org> wrote:
> hzmonte writes:
>> What I want, and what smp_processor_id() returns, is which logical
>> processor the calling thread is running on.  Is CPU0, CPU1, or CPU2, for
>> example?

> Why?  Of what possible use could that information be?  What problem are you
> trying to solve?

Dunno. Probably some mistaken idea. But anyway it would be simple to do
- some ioctl which returns what he wants. But doesn't he have the info
in proc anyway?

 % cat /proc/self/cpu
 cpu  0 1
 cpu0 0 1

Peter
0
Reply ptb (2763) 1/31/2006 11:45:54 AM

Peter T. Breuer wrote:
> John Hasler <john@dhh.gt.org> wrote:
>> hzmonte writes:
>>> What I want, and what smp_processor_id() returns, is which logical
>>> processor the calling thread is running on.  Is CPU0, CPU1, or CPU2, for
>>> example?
> 
>> Why?  Of what possible use could that information be?  What problem are you
>> trying to solve?
> 
> Dunno. Probably some mistaken idea. But anyway it would be simple to do
> - some ioctl which returns what he wants. But doesn't he have the info
> in proc anyway?
> 
How would that do any good? When the process makes the kernel call on ioctl,
a process switch will occur and what would the ioctl return? The
processor-id that the process _used to_ run on, not the one it will run on
once the ioctl returns.

He is doomed. The only way I can think of that will work is to examine the
code of the kernel in the area where process switching occurs. I looked in
there a while ago, and it really tries to return a process to the same
processor it ran on before to try to maintain a high cache hit ratio, but
with the puny caches on my processors (1 Megabit L3 caches) compared to
process sizes (50Megabytes and up for some of the large ones), this may be
of only minor importance.

It depends on the working set size of all the processes currently running. I
have a dbms that runs many processes, and does a lot of IO. Runs pretty well
unless I let BOINC run 4 compute-limited processes at nice 19. Running BOINC
this way should take up all the otherwise unused CPU cycles and not
interfere with the higher priority processes, but it spoils the database
application(s). They try to do a disk write and suspend. Then a BOINC
process runs and dirtys up the caches, so when the IO for the dbms completes
and the dbms process resumes, the cache is completely dirty so it runs at
RAM speeds (533MHz) instead of processor speeds (3.06GHz).

-- 
  .~.  Jean-David Beyer          Registered Linux User 85642.
  /V\  PGP-Key: 9A2FC99A         Registered Machine   241939.
 /( )\ Shrewsbury, New Jersey    http://counter.li.org
 ^^-^^ 07:50:00 up 10 days, 23:17, 3 users, load average: 4.16, 4.11, 4.03
0
Reply jeandavid8 (984) 1/31/2006 1:01:58 PM

Jean-David Beyer wrote:
> Peter T. Breuer wrote:
> > John Hasler <john@dhh.gt.org> wrote:
> >> hzmonte writes:
> >>> What I want, and what smp_processor_id() returns, is which logical
> >>> processor the calling thread is running on.  Is CPU0, CPU1, or CPU2, for
> >>> example?
> >
> >> Why?  Of what possible use could that information be?  What problem are you
> >> trying to solve?
> >
> > Dunno. Probably some mistaken idea. But anyway it would be simple to do
> > - some ioctl which returns what he wants. But doesn't he have the info
> > in proc anyway?
> >
> How would that do any good? When the process makes the kernel call on ioctl,
> a process switch will occur and what would the ioctl return? The
> processor-id that the process _used to_ run on, not the one it will run on
> once the ioctl returns.
>
> He is doomed. The only way I can think of that will work is to examine the
> code of the kernel in the area where process switching occurs. I looked in
> there a while ago, and it really tries to return a process to the same
> processor it ran on before to try to maintain a high cache hit ratio, but
> with the puny caches on my processors (1 Megabit L3 caches) compared to
> process sizes (50Megabytes and up for some of the large ones), this may be
> of only minor importance.
>
> It depends on the working set size of all the processes currently running. I
> have a dbms that runs many processes, and does a lot of IO. Runs pretty well
> unless I let BOINC run 4 compute-limited processes at nice 19. Running BOINC
> this way should take up all the otherwise unused CPU cycles and not
> interfere with the higher priority processes, but it spoils the database
> application(s). They try to do a disk write and suspend. Then a BOINC
> process runs and dirtys up the caches, so when the IO for the dbms completes
> and the dbms process resumes, the cache is completely dirty so it runs at
> RAM speeds (533MHz) instead of processor speeds (3.06GHz).

Isn't some of this info the OP desires (considering HT, and/or Dual
Core CPUs) highly dependent upon "which" brand (Intel or AMD64) the OP
is using ??

I'm not up on this at all - and I don't yet have a great grasp on
explaining the technology and functions , but doesn't AMD64 incorporate
_NUMA_, the HTT Bus, and the A64  Memory Controller is OnDie, ["MOESI
protocol" (Modified, Owned, Exclusive, Shared, Invalid)] since their ,
as oppposed to the Intel Architecture (Xeon, Pentium-D, and HT -- I'm
don't know about Itanium though).
<http://en.wikipedia.org/wiki/Non-Uniform_Memory_Access>
more info about the diffs;
<http://www.xbitlabs.com/articles/cpu/print/dual-core.html>

hmmm..wonder how MShafts PAE crap figures into all this too ?

0
Reply floydstestemail (480) 1/31/2006 8:32:26 PM

> Why not, instead, examine the kernel code related to this and see if it is
OK? Would that not be easier than tinkering with the kernel?
Code examination is one way of making sure the code works as expected.
But I am not an expert at looking at kernel code. (It looks
intimidating.)  And who knows whether there are other code that may
affect the operation of the code I inspect. And if I can call that
smp_processor_id(), I can show it to others that the execution actually
occurs on a particular CPU as specified in sched_setaffinity() .  Also,
if I select a group of CPUs, rather than just one, in
sched_setaffinity(), code examination only tells me the execution will
happen on one of those CPUs, but smp_processor_id() tells me exactly
which one CPU is executing that thread.

0
Reply hzmonte (100) 2/1/2006 2:29:35 AM

hzmonte@hotmail.com wrote:
>> Why not, instead, examine the kernel code related to this and see if it is
> OK? Would that not be easier than tinkering with the kernel?
> Code examination is one way of making sure the code works as expected.
> But I am not an expert at looking at kernel code. (It looks
> intimidating.)  And who knows whether there are other code that may
> affect the operation of the code I inspect. And if I can call that
> smp_processor_id(), I can show it to others that the execution actually
> occurs on a particular CPU as specified in sched_setaffinity() .  Also,
> if I select a group of CPUs, rather than just one, in
> sched_setaffinity(), code examination only tells me the execution will
> happen on one of those CPUs, but smp_processor_id() tells me exactly
> which one CPU is executing that thread.
> 
No. It tells you which one WAS executing that thread. But as the kernel
relinquishes the processor, it may give a different processor to you. Well,
if you locked yourself to one of them with some affinity trick, you would
get the same one back when it is available, but that is what you wanted to
find out.

In the short run, why not look at the output of top with the Y mode enabled.
Or look at the code for top (which I suppose is simpler than the kernel) and
see how they do it.

-- 
  .~.  Jean-David Beyer          Registered Linux User 85642.
  /V\  PGP-Key: 9A2FC99A         Registered Machine   241939.
 /( )\ Shrewsbury, New Jersey    http://counter.li.org
 ^^-^^ 23:05:00 up 11 days, 14:32, 5 users, load average: 4.37, 4.22, 4.12
0
Reply jeandavid8 (984) 2/1/2006 4:10:02 AM

Jean-David Beyer <jeandavid8@verizon.net> wrote:
> Peter T. Breuer wrote:
>> John Hasler <john@dhh.gt.org> wrote:
>>> hzmonte writes:
>>>> What I want, and what smp_processor_id() returns, is which logical
>>>> processor the calling thread is running on.  Is CPU0, CPU1, or CPU2, for
>>>> example?
>> 
>>> Why?  Of what possible use could that information be?  What problem are you
>>> trying to solve?
>> 
>> Dunno. Probably some mistaken idea. But anyway it would be simple to do
>> - some ioctl which returns what he wants. But doesn't he have the info
>> in proc anyway?
>> 
> How would that do any good? When the process makes the kernel call on ioctl,
> a process switch will occur and what would the ioctl return? The

There is no special extra process switch on ioctl - he'll get whatever
cpu is running his ioctl.  Yes, it is another question if the kernel
decided to switch him to a different cpu on the i/o, but his chances of
that are low, or at least about as low as with anything he does if there
is any affinity at all. He can even change the schedule in his ioctl,
but that's harder.

> processor-id that the process _used to_ run on, not the one it will run on
> once the ioctl returns.

Indeed. But then the future is never predictable with certainty. The
real problem is that his experiment might provoke a change.

> He is doomed. The only way I can think of that will work is to examine the
> code of the kernel in the area where process switching occurs. I looked in
> there a while ago, and it really tries to return a process to the same
> processor it ran on before to try to maintain a high cache hit ratio, but
> with the puny caches on my processors (1 Megabit L3 caches) compared to
> process sizes (50Megabytes and up for some of the large ones), this may be
> of only minor importance.

One might be able to get general processor scheduler stats out on how
often a process is run by the same cpu.

> It depends on the working set size of all the processes currently running. I
> have a dbms that runs many processes, and does a lot of IO. Runs pretty well
> unless I let BOINC run 4 compute-limited processes at nice 19. Running BOINC
> this way should take up all the otherwise unused CPU cycles and not
> interfere with the higher priority processes, but it spoils the database
> application(s). They try to do a disk write and suspend. Then a BOINC
> process runs and dirtys up the caches, so when the IO for the dbms completes
> and the dbms process resumes, the cache is completely dirty so it runs at
> RAM speeds (533MHz) instead of processor speeds (3.06GHz).

Peter


0
Reply ptb (2763) 2/1/2006 8:26:52 AM

Jean-David Beyer <jeandavid8@verizon.net> wrote:
> No. It tells you which one WAS executing that thread. But as the kernel
> relinquishes the processor, it may give a different processor to you. Well,
> if you locked yourself to one of them with some affinity trick, you would
> get the same one back when it is available, but that is what you wanted to
> find out.

http://www.daimi.au.dk/~kasperd/comp.os.linux.development.faq.html

  In kernel version 2.6 user mode processes can use the
  sched_setaffinity and sched_getaffinity system calls. There is a
  patch which backports them to 2.4.

  All recent Linux versions will try to keep processes as long time as
  possible on the same CPU. But processes will be moved if the CPUs are
  not equally loaded. True CPU affinity was introduced in 2.4.0, but is
  only available in kernel mode. It can be used from kernel modules,
  but was not used by the kernel itself. Starting in 2.4.7-pre5 it is
  used by ksoftirqd to start one instance for each CPU. In 2.5.8-pre3 a
  systemcall to set CPU affinity was introduced.

Peter
0
Reply ptb (2763) 2/1/2006 11:02:54 AM

hzmonte@hotmail.com wrote:
> > Why not, instead, examine the kernel code related to this and see if it is
> OK? Would that not be easier than tinkering with the kernel?
> Code examination is one way of making sure the code works as expected.
> But I am not an expert at looking at kernel code. (It looks
> intimidating.)  And who knows whether there are other code that may
> affect the operation of the code I inspect. And if I can call that
> smp_processor_id(), I can show it to others that the execution actually
> occurs on a particular CPU as specified in sched_setaffinity() .  Also,
> if I select a group of CPUs, rather than just one, in
> sched_setaffinity(), code examination only tells me the execution will
> happen on one of those CPUs, but smp_processor_id() tells me exactly
> which one CPU is executing that thread.

FWIW -- RedHawk Linux
http://searchopensource.techtarget.com/specialEventsAnnouncement/0,289656,sid39_gci944356_egc946153,00.html

Nice info in PDFs, with kernel patch scripts;
http://www.informatik.uni-bremen.de/agbs/qualifikationsarbeiten/diplomarbeiten/2005_efkemann.pdf
http://www.ccur.com/isdmanuals/2RedHawk%20Linux/0898004-430_RedHawk_Linux_2.X_Users_Guide.pdf

0
Reply floydstestemail (480) 2/1/2006 3:55:48 PM
comp.os.linux.misc 33448 articles. 20 followers. Post

15 Replies
167 Views

Similar Articles

[PageSpeed] 30


  • Permalink
  • submit to reddit
  • Email
  • Follow


Reply:

Similar Artilces:

How to find the kernel patch level that has a specific patch?
I'm interested in the patch "mm: report the pagesize backing a VMA in / proc/pid/smaps" as seen at http://www.kernel.org/pub/linux/kernel/v2.6/snapshots/patch-2.6.28-git10.log The base filename of that URL implies the patch is included in kernel 2.6.28. But according to http://www.h-online.com/open/news/item/Kernel-Log-What-s-new-in-2-6-29-Part-8-Faster-start-up-and-other-behind-the-scenes-changes-740591.html it's actually in 2.6.29. I opened each of the 2.6.28.* and 2.6.29.* ChangeLogs at http://www.kernel.org/pub/linux/kernel/v2.6/ and searched for that patch but...

Supplemental Kernel Patch vs. Generic Kernel
Got a new server, an E280R, with Solaris8 and with kernel 114018-01 ( instead of the usual 108528-xx ). Looking at SunSolve, 114018 is Supplemental Kernel Update Patch for 108528-18. I want to apply the latest kernel, or latest cluster / recommended patch for Solaris8. However, it mentioned that for 114018-01: Patches which conflict with this patch: 108528-19 (or newer) How would one go about this if installing the latest kernel would conflict with the existing one ? noone wrote: > > Got a new server, an E280R, with Solaris8 and with kernel 114018-01 ( > instead of the usual ...

Kernel down ?? after kernel upgrade.
Hi. I have used 2.2.20 kernel. It was everything ok. - Debian. And I did upgrade to 2.4.22(I haven't used debian kernel package). Almost is OK. But kernel is down(??) after about 30min without any keyboard input. I thought that was power save mode or standby mode fist. But I couldn't see anyhing on my monitor and there are not any response from pc. So I did upgrade to 2.4.23. But It was same. I have trying to re-compile several times with change kernel option. But.... It's still same..... Any suggestion? Thank you. On Tue, 2 Dec 2003 00:01:42 -0800, john &...

kernel hangs after UNCOMPRESSING KERNEL OK BOOTING KERNEL.
I have compiled kernel 2.4.18 . I have followed the following sequence ... as make mrproper make xconfig make dep make make modules make modules_install then copied system.map and bzimage to boot directory.. after this I reboot system with kernel 2.4.18 the system gets hangs after UNCOMPRESSING KERNEL OK BOOTING KERNEL. can anyone tell me what should i do to boot kernel properly... yogesh_pune_pict wrote: > I have compiled kernel 2.4.18 . Just one heuristic...have you made any changes in the kernel source code? if yes, it just might be the place to look for. ...

PPS kernel patch for kernel 2.6.16-2
Hi all, Does anyone know where i can get a pps kernel patch for kernel 2.6.16-2. I've version for 2.6.15-1, but i don't think it will work for me and in fact i've seen it somewhere it stated that it was buggy and it would be incompatitable for me. Cheers, Sleek _______________________________________________ questions mailing list questions@lists.ntp.isc.org https://lists.ntp.isc.org/mailman/listinfo/questions "sleek daelite" wrote in message news:2cba4d150608100217t2f7c1f64jdf7fb5c37bf3363b@mail.gmail.com... > Hi all, > > Does anyone know where i can get a...

Kernel#autoload ignores custom monkey patched Kernel#require
Hi, I'm playing with FakeFS and want to fake Kernel#require. That's working quite well now, but somehow Kernel#autoload doesn't recognize my custom #require. The documentation says that #autoload would try to load the file via Kernel::require, which is contradictory, as there's only Kernel#require. The following snippet doesn't print "foo/bar", as I would expect. module Kernel def require fn puts fn end end module Foo autoload :Bar, "foo/bar" end Foo::Bar Does anyone have an idea on this? Best regards, Lars -- ...

Write a program to simulate the kernel of an OS in which there are only kernel threads, and no processes.
Problem: Write a program to simulate the kernel of an OS in which there are only kernel threads, and no processes. The kernel of the OS is to be simulated in the address space of a process. Input to the program are as follows. 1. A periodic 10 ms signal to invoke the scheduler of the kernel. 2. A user interface thread to create new periodic threads with a period which is a multiple of 10 ms. The periodic thread should execute for certain duration which is less than the period. At the time of creation, the priority of the thread is also specified. The threads are to be...

Is there some restriction (or "kernel"parameter) for the depth of subshells (and functions in ksh) on AIX5.3-64bit after which these switch between correct and incorrect from level to level ?
I have a very alarming (not to say "shocking!") behaviour on a customer's AIX (5.3-64 bit, the exact bos I haven't determined yet) that a ksh-script called from a deeper level (of shell-script-calls) inside of our Application fails to handle errorelvels correctly, in 2 different constructs, that is: receving the value of a return from a function wrongly and later getting the wrong errorlevel after the exit of a subshell, whereas the same script called directly from commandline behaves perfect. I try to make the situation simple but would be VERY happy for any ideas, so I cou...

Kernel RPM differences on RH9 using kernel.org kernel
Hello: Due to certain requirements we had to download and install a vanilla kernel on a RH9 system from kernel.org. It works great. However, I now need to install some software that requires the output of uname -r and the output from rpm -aq | grep kernel-source to be the same obviously. We downloaded the tarball from kernel.org and it installed properly in /usr/src. We created the sym link for linux-2.4 to point to the new tree. How do I get the output of rpm -aq | grep kernel-source to agree with uname -r.? uname -r returns: 2.4.21. rpm -aq | grep kernel-source returns: ...

kernel hangs after "UNCOMPRESSING KERNEL OK BOOTING KERNEL"
I have compiled kernel 2.4.18 . I have followed the following sequence ... as make mrproper make xconfig make dep make make modules make modules_install then copied system.map and bzimage to boot directory.. after this I reboot system with kernel 2.4.18 the system gets hangs after UNCOMPRESSING KERNEL OK BOOTING KERNEL. can anyone tell me what should i do to boot kernel properly... On 11 Feb 2006 09:23:35 -0800, in comp.lang.c , "yogesh" <yogesh_tillu2003@yahoo.co.in> wrote: >I have compiled kernel 2.4.18 . Unfortunately your question isn't anything to do with C....

Kernel patch level upgrade without OS reinstallation
Hi there, Is there any way to upgrade the kernel patch level (from the command `uname -a`) without the OS reinstallation? Since some software require certain kernel patch level to be meet and reinstallation of OS requires ton of efforts, I am looking for ways to upgrade with no OS reinstallation needed. Thanks and ciao Yulam "yulam" <tyulam@gmail.com> writes: >Hi there, >Is there any way to upgrade the kernel patch level (from the command >`uname -a`) without the OS reinstallation? Since some software require >certain kernel patch level to be meet and reinsta...

Zones and SMF with kernel patch level 127111-03?
Greetings. I've been using zones here for the past six months or so, and I have to say I find them to be, if not quite the greatest thing since sliced bread, then pretty close. However, I downloaded the latest RPC (127111-03 at the time of writing) and since applying that it's all gone horribly wrong! When I create a zone on a system with the new patch level, the zone will not boot fully. I appear to have no networking: # svcs -vx svc:/system/identity:domain (system identity (domainname)) State: disabled since Fri Nov 23 07:47:43 2007 Reason: Disabled by an administrator. See: ...

10 minute tutorial on how to apply a kernel level patch
10 minute tutorial on how to apply a kernel level patch ------------------------------------------------------- http://www.vimeo.com/8200182 ...

is there kenel level intrusion detection project or kernel patch?
Hello. there? is there kenel level intrusion detection project or kernel patch? snort is good for intrusion detection project. for better formance , I'm looking for kernel level intrusion detection. Have a day. "rambo88" <rambo@lsdata.co.kr> wrote in news:cb8q17$scp$1@news.hananet.net: > is there kenel level intrusion detection project or kernel patch? > snort is good for intrusion detection project. > And also Snort is network oriented. Without involving the kernel, you can investigate tools like Nabou and Tripwire at the host lev...

Patch kernel
Hi! I've made a patch to Minix kernel. This patch for GNU-patch. Download patch: http://www.minix3.narod.ru/kernel/0.1a/patch.txt Download kernel: http://www.minix3.narod.ru/kernel/0.1a/minix3-kernel-0.1a.tar.bz2 Download Changelog: http://www.minix3.narod.ru/kernel/0.1a/ChangeLog ...

kernel function
hi everyone, svm depends on the kernel function so many literature focusing on trying to change kernel function or their parameters... lastly, when i was wandering i found the following kernel function K=(Xi min_s (Xi min_s Xj)) &#8226;(Xj min_s (Xj min_s Xi)); knowing that "min_ s" referring to scalar minus operator. pls notice that there are two X (Xi, Xj). This new kernel function found by Yue Jiang et. al in the paper "Automatic SVM Kernel Function Construction Based on Gene Expre ssion Programming" for breast dataset. the confusing thing is when i a...

Patching the kernel
A recent post mentioned patching the kernel because the source was not available for modification. This looks like a can of worms. If two people create patches, will they interfere? Obviously the best way is to change the source code and recompile, so why not get the source and do that? Otherwise it looks like there needs to be a central point for co-ordinating patches or a dreadful mess could develop. Peter On Sep 12, 2:55=A0am, Peter J Seymour <mo...@pjsey.demon.co.uk> wrote: > A recent post mentioned patching the kernel because the source was not > available for m...

Kernel patches
Hi, I'm confused... I'm planning to install the stable Linux-kernel 2.4.23. But which kernel-patches should I install ? Can anyone give me some good advise on this issue ? Kind regards, Gorik On Thu, 04 Dec 2003 14:17:39 -0800, Gorik Vanderreken wrote: > I'm confused... I'm planning to install the stable Linux-kernel 2.4.23. Ok, that's easy. > But which kernel-patches should I install ? What things do you want that aren't part of the kernel itself? Sybren -- (o_ Q: God, root, what is difference? //\ A: God can change the byte order on the CPU, root...

kernel patch
I have kernel 2.4.18 on redhat linux. I downloaded patch-2.4.21 How can i patch my current kernel? "patch" command? how? On Thu, 10 Jul 2003 16:11:52 +0400, "Andrey Tapkin" <tapkin@rol.ru> wrote: >I have kernel 2.4.18 on redhat linux. >I downloaded patch-2.4.21 >How can i patch my current kernel? >"patch" command? how? First off, download patch-2.4.19 and patch-2.4.20 because you have to apply them serially. Patch files are incremental changes; to go from kernel 2.4.18 to kernel 2.4.21, you have to apply patch 2.4.19 (takes you to kernel 2.4...

Kernels and Micro-kernels--Basics
I'm trying to get some understanding of kernels as relevant to a realtime kernel that I use. Pretty much all I know about it is how to run a command line procedure to patch a RH Linux 9 kernel, to produce a rtlinux, and then install a rt app that runs under the rtlinux. Roughly the procedure 1. makes a patch to the RH kernel, configures resources (filesystems, devices, etc.), creates a rt kernel image, sets up LILO, configures rtlinux resources (fifos, etc.), installs the rt modules. My modest understanding is that most of the original kernel is still there, and a micro-kernel repr...

kernel patching
hi, on kernel.org i can see full kernel, and a patch, 2.6.12-rc2 2.6.12-rc2-mm2 could someone please tell me how patches are used? can i use this patc for 2.6.11.7?? thanks for help!!! - [pl]ic ----------------------------------------------------------------------- [pl]ice's Profile: http:/linuxcult.com/forum/member.php?action=getinfo&userid=1641 View this thread: http://linuxcult.com/forum/showthread.php?threadid=896 ...

about kernel patch?
Hi, I download new kernel 2.4.33.3 and also downloaded patch-2.4.33.3 #cat path-2.4.33.3 the content of patch files is as follows... diff --git a/Makefile b/Makefile index fd6884d..635682e 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ VERSION = 2 PATCHLEVEL = 4 SUBLEVEL = 33 -EXTRAVERSION = +EXTRAVERSION = .3 in the kernel source ( /tmp/linux-2.4.33 ) , I runned following command... gzip -cd ./patch-2.4.33 | patch -p1 And I met following error? patch...

How do a patch a kernel?
Hi, I downloaded linux-2.4.23.tar.gz and packed it up with 'tar zxvf linux-2.4.23*' Then I downloaded patch-2.4.23-bk3.bz2 and unpacked it with bunzip2. I then run "patch -p0 < patch-2.4.23-bk3" but is given the message: root@Cello:/usr/src# patch -p0 < patch-2.4.23-bk1 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 -Nru a/CREDITS b/CREDITS |--- a/CREDITS Mon Oct 27 05:35:37 2003 |+++ b/CREDITS Mon Nov 24 15:22:14 2003 ----------------...

kernel patches
Hi, I am wondering how I can check what patches are installed in the RH 8.0 2.4.18-14 kernel. In particular, lowlatency patch, preemption patch, and UTIME/KURT patch. Other than grabbing those patches and doing a diff, is there anyway to do it? On Wed, 10 Dec 2003 14:54:02 -0800, Jon Smith wrote: > Hi, > > I am wondering how I can check what patches are installed in the RH > 8.0 2.4.18-14 kernel. > > In particular, lowlatency patch, preemption patch, and UTIME/KURT > patch. > > Other than grabbing those patches and doing a diff, is there a...