Javi Roman wrote:
Date: Wed, 31 Jan 2007 18:23:06 +0800
From: "Yanbo Li" <dreamfly281@xxxxxxxxx>
Subject: Re: How to make a tag in task_struct.
On 1/31/07, Mulyadi Santosa <mulyadi.santosa@xxxxxxxxx> wrote:
> Hi
> > But I can't modify the task_struct , in another word , I can't
change
> > the kernel.
> > What I can do is just using a module.
> I am afraid you can't do that via module. In fact you must be
careful on
> where to insert that new tag, because some properties in
task_struct are
> accessed via offset, so if you change the order, it is likely made
> another codes broken. Conclusion: do it by directly patching the
kernel,
> or use another way to tag the task. I think creating a linked list
> containing the PIDs could be a favorable choice.
>
> regards,
>
> Mulyadi
I think it's possible add new struct entries without problems with
offsets if you use this tool:
http://oops.ghostprotocols.net:81/blog/?p=49
http://lwn.net/Articles/206805/
regards,
javi roman
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/
Thank you very much. Maybe it is a good method to add tag and avoid add new
field to task_struct , we can use the bytes hole.
BR
LiYanbo
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/