AQ Tast | 1 Jan 2011 05:30
Picon

How to use kgdb and kdb

Hello Everyone,

I am trying to get my hands dirty with kernel programming and came 
across kgdb and kdb.
Can someone point me to a tutorial which a newbie can easily get 
through. Also I was looking forward for using Qemu  / VBox for my 
experiments. Would be nice if there are tutorials on how to debug using 
these tools.

Regards,
Tast

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies <at> kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Mulyadi Santosa | 1 Jan 2011 06:38
Picon

Re: How to use kgdb and kdb

On Sat, Jan 1, 2011 at 11:30, AQ Tast <tasteaq <at> gmail.com> wrote:
> Can someone point me to a tutorial which a newbie can easily get
> through. Also I was looking forward for using Qemu  / VBox for my
> experiments. Would be nice if there are tutorials on how to debug using
> these tools.

I think you can use these (find more with Google, please):
http://blog.scottt.tw/2010/01/kgdb-tutorial.html

http://www.ibm.com/developerworks/linux/library/l-debug/

--

-- 
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies <at> kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Arreche | 1 Jan 2011 11:55
Picon

How to know when any process is trying to establish an internet connection?

Hi,


I have multiple network interfaces(Ethernet, GPRS and Modem). Is possible to setup them on demand? And to block a process until It gets connection by any interface?

Thanks.

--
.

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies <at> kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Mulyadi Santosa | 1 Jan 2011 12:55
Picon

Re: How to know when any process is trying to establish an internet connection?

On 01/01/2011, Arreche <arreche <at> gmail.com> wrote:
> Hi,
>
> I have multiple network interfaces(Ethernet, GPRS and Modem). Is possible to
> setup them on demand? And to block a process until It gets connection by any
> interface?

You mean, like dial up on deman back to old days? Sounds like the job
for NetworkManager to me...plus PolicyKit or something. But I am not
so sure abou it.

--

-- 
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies <at> kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Arreche | 1 Jan 2011 13:49
Picon

Re: How to know when any process is trying to establish an internet connection?

I mean to alternate between the interfaces until the connection could be established. I think NetworkManager don't have this behaviour.


On Sat, Jan 1, 2011 at 11:55 AM, Mulyadi Santosa <mulyadi.santosa <at> gmail.com> wrote:
On 01/01/2011, Arreche <arreche <at> gmail.com> wrote:
> Hi,
>
> I have multiple network interfaces(Ethernet, GPRS and Modem). Is possible to
> setup them on demand? And to block a process until It gets connection by any
> interface?

You mean, like dial up on deman back to old days? Sounds like the job
for NetworkManager to me...plus PolicyKit or something. But I am not
so sure abou it.

--
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com



--
.

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies <at> kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
YOUNGWHAN SONG | 1 Jan 2011 15:28
Picon
Gravatar

Re: How to know when any process is trying to establish an internet connection?

Hi,

On Jan 1, 2011, at 4:49 AM, Arreche wrote:

> I mean to alternate between the interfaces until the connection could be established. I think
NetworkManager don't have this behaviour.
> 
Can it be achieved by NetFilter?

> On Sat, Jan 1, 2011 at 11:55 AM, Mulyadi Santosa <mulyadi.santosa <at> gmail.com> wrote:
> On 01/01/2011, Arreche <arreche <at> gmail.com> wrote:
> > Hi,
> >
> > I have multiple network interfaces(Ethernet, GPRS and Modem). Is possible to
> > setup them on demand? And to block a process until It gets connection by any
> > interface?
> 
> You mean, like dial up on deman back to old days? Sounds like the job
> for NetworkManager to me...plus PolicyKit or something. But I am not
> so sure abou it.
> 
> --
> regards,
> 
> Mulyadi Santosa
> Freelance Linux trainer and consultant
> 
> blog: the-hydra.blogspot.com
> training: mulyaditraining.blogspot.com
> 
> 
> 
> -- 
> .
> 
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies <at> kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies <at> kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Prabhu nath | 1 Jan 2011 17:28
Picon

Adding a kobject in the device model hierarchy

Dear All,

        I have written one pseudo char driver. I have initialized the device generic structure
    with cdev_init function. This will initialize the kobject structure embedded within struct cdev
    with appropriate ktype. If I want to add this kobject in /sys/devices/virtual/misc/ location
    of sysfs, how is the following fields set
    * kobj->parent
    * kobj->kset
    * kobj->kset->obj.

    Also, in general how to look out for the parent kobject ? Would like to know, if there are
      mechanisms provisioned by Linux Kernel.

    Robert: My 2 cents as I am reading the LKD(3rd edition), it would be appropriate to add one
            example as a solution to the above problem. Generally, it has been told as
            kobj->kset = my_kset in Page # 353.
       
Note: Even in LDD(3rd editon page 369). It has been mentioned that "The kobject's kset field must be
     pointed at the kset of interest"


Thanks,
Prabhu


_______________________________________________
Kernelnewbies mailing list
Kernelnewbies <at> kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Greg KH | 2 Jan 2011 03:50
Gravatar

Re: Adding a kobject in the device model hierarchy

On Sat, Jan 01, 2011 at 09:58:11PM +0530, Prabhu nath wrote:
> Dear All,
> 
>         I have written one pseudo char driver. I have initialized the device
> generic structure
>     with cdev_init function. This will initialize the kobject structure
> embedded within struct cdev
>     with appropriate ktype.

But NEVER touch that kobject, it is not for your use at all.

> If I want to add this kobject in
> /sys/devices/virtual/misc/ location
>     of sysfs, how is the following fields set
>     * kobj->parent
>     * kobj->kset
>     * kobj->kset->obj.

Nope, you need your own struct device, do not use the kobject in the
cdev, again, it is NOT for use at all.  It is private to a cdev and
I need to figure out a way to make it so that you can't even see it one
day to keep people from trying to use it.

good luck,

greg k-h

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies <at> kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

loody | 2 Jan 2011 09:26
Picon

functions about dump backtrace function names in mips arch

 Dear all:
 If i remember correctly, when kernel panic there is a function I can
 use to dump all the names of backtrace functions.
 I have searched arch/mips/traps.c, but I only can see the dump
 functions of cpu registers,

 If my assumption is true, would anyone tell me what the name is or
 what Doc I can looking for?
 appreciate your help,
miloody

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies <at> kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

loody | 2 Jan 2011 09:27
Picon

functions about dump backtrace function names in mips arch

 Dear all:
 If i remember correctly, when kernel panic there is a function I can
 use to dump all the names of backtrace functions.
 I have searched arch/mips/traps.c, but I only can see the dump
 functions of cpu registers,

 If my assumption is true, would anyone tell me what the name is or
 what Doc I can looking for?
 appreciate your help,
miloody

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies <at> kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Gmane