Interested in Networking, Memory and Btrfs Subsystems

2014-12-01 Thread nick
Greetings Fellow Kernel Developers,
I am wondering if anyone would mind mentoring me in any of the three areas 
listed in my subject message. Further more
I understand if no one accepts this offer due to my bad rep. Finally, after 
wasting some many people's time I am starting to write good patches as people 
can see from the logs of LKML. :)
Thanks for the Help,
Nick 

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Greg Kroah-Hartman is doing an AMA on reddit :

2014-12-01 Thread Dave Tian
Thanks, Tom~ Fun to read and ask.

-daveti


> On Dec 2, 2014, at 4:25 AM, Thomas  wrote:
> 
> I know Greg K.H. used this mailing list.
> Maybe not everybody frequent reddit intensively.
> 
> Greg Kroah-Hartman is doing an Ask Me Anything on reddit :
> A chance to asked more personal questions. ;)
> 
> http://fr.reddit.com/r/linux/comments/2ny1lz/im_greg_kroahhartman_linux_kernel_developer_ama/
> 
> Thomas
> 
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: ktime_get() equivalent from user space

2014-12-01 Thread manty kuma
Hi all,

using clock_gettime
(CLOCK_MONOTONIC),
the problem is solved.

Best Regards,
Manty

On Mon, Dec 1, 2014 at 5:47 PM, manty kuma  wrote:

> Hi Vignesh,
>
> Thank you for your answer. I have chosen ktime_get() as it is in sync with
> the times logged in kernel log.
> Hence, doing it with ktime_get() will be my first choice.
>
> Regards,
> Manty
>
> On Mon, Dec 1, 2014 at 5:35 PM, Vignesh Radhakrishnan <
> vignesh1...@gmail.com> wrote:
>
>> An alternative that you can consider would be to expose the desired time
>> or value from your driver, using a sysfs entry so that they can be synced
>> to what you are doing in the driver level and  user space can read it using
>> 'cat'
>>
>> Thanks and regards,
>> Vignesh Radhakrishnan
>>
>> On Monday, December 1, 2014, manty kuma  wrote:
>> > Hi,
>> >
>> > I need to measure some timings in my system. At driver level, i am
>> using ktime_get() to log the times.
>> > I need to map this to something of the same unit at user space.
>> >
>> > I checked /proc/uptime. This value also includes the suspend time which
>> ktime_get() doesn't include. Hence this option is ruled out.
>> >
>> > Is there any other proc entry or any other source which is of same unit?
>> >
>> > Best Regards,
>> > manty
>> >
>>
>> --
>> http://vigneshradhakrishnan.blogspot.com/
>>
>>
>
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Greg Kroah-Hartman is doing an AMA on reddit :

2014-12-01 Thread Thomas
I know Greg K.H. used this mailing list.
Maybe not everybody frequent reddit intensively.

Greg Kroah-Hartman is doing an Ask Me Anything on reddit :
A chance to asked more personal questions. ;)

http://fr.reddit.com/r/linux/comments/2ny1lz/im_greg_kroahhartman_linux_kernel_developer_ama/

Thomas

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: [eudyptula] has anyone received a gift after completing the challenge ?

2014-12-01 Thread karthik nayak
Hello,
It is. Wait for a while, else send another mail.

On Tue Dec 02 2014 at 1:44:04 AM Jessica Ross 
wrote:

> Off topic, but is the Eudyptula challenge still on? I asked to join but
> haven't heard anything.
>
> Jessica R. Ross
> jessica.r.r...@gmail.com
>
> On Fri, Nov 28, 2014 at 3:22 AM, Denis Pithon 
> wrote:
>
>> Hi all,
>>
>> I have finished the challenge some month ago and wonder if somebody has
>> received something from the Linux Foundation ? :-)
>> Thanks
>>
>> Denis
>>
>> ___
>> Kernelnewbies mailing list
>> Kernelnewbies@kernelnewbies.org
>> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>>
>>
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: [eudyptula] has anyone received a gift after completing the challenge ?

2014-12-01 Thread Jessica Ross
Off topic, but is the Eudyptula challenge still on? I asked to join but
haven't heard anything.

Jessica R. Ross
jessica.r.r...@gmail.com

On Fri, Nov 28, 2014 at 3:22 AM, Denis Pithon 
wrote:

> Hi all,
>
> I have finished the challenge some month ago and wonder if somebody has
> received something from the Linux Foundation ? :-)
> Thanks
>
> Denis
>
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
>
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: [eudyptula] has anyone received a gift after completing the challenge ?

2014-12-01 Thread Raphael Philipe
Hi,

I've finished the challenge in the beginning of October and I haven't
received anything from the Linux Foundation as well.

By the way, in the challenge I had lots of fun. Does someone have any
remote freelance job for Kernel Development?

Thanks

On Mon, Dec 1, 2014 at 8:32 AM, Raghavendra  wrote:
> On Monday 01 December 2014 04:03 PM, Vinícius Tinti wrote:
>> On Mon, Dec 1, 2014 at 1:54 AM, Raghavendra  wrote:
>>> On Friday 28 November 2014 02:52 PM, Denis Pithon wrote:
>>>
>>> Hi all,
>>>
>>> I have finished the challenge some month ago and wonder if somebody has
>>> received something from the Linux Foundation ? :-)
>>> Thanks
>>>
>>> Denis
>>>
>>>
>>> ___
>>> Kernelnewbies mailing list
>>> Kernelnewbies@kernelnewbies.org
>>> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>>>
>>> Hi Denis,
>>>
>>> Same here. I've finished the challenge in the first week of October. At the
>>> end they have asked for the mailing address, and so I gave them. But, I
>>> haven't received any further intimation from them.
>>>
>>> Regards,
>>> Raghavendra
>>>
>>> ---
>>> [ C-DAC is on Social-Media too. Kindly follow us at:
>>> Facebook: https://www.facebook.com/CDACINDIA & Twitter: @cdacindia ]
>>>
>>> This e-mail is for the sole use of the intended recipient(s) and may
>>> contain confidential and privileged information. If you are not the
>>> intended recipient, please contact the sender by reply e-mail and destroy
>>> all copies and the original message. Any unauthorized review, use,
>>> disclosure, dissemination, forwarding, printing or copying of this email
>>> is strictly prohibited and appropriate legal action will be taken.
>>> ---
>> Hi Raghavendra,
>>
>> Congrats! How long did it take?
>> I am still waiting task05 answer.
>>
>> Regards.
>> Tinti
>>
>>> ___
>>> Kernelnewbies mailing list
>>> Kernelnewbies@kernelnewbies.org
>>> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>>>
>>
>>
> Hi Tinti,
>
> Well, I registered for the challenge on 24th April,14 and I received the
> final task's results on 3rd October,14. So, I may say about 5-6 months.
> But I see that the current responses have become even slower than before :(
>
> Any way, all the best for your remaining tasks.
>
> Regards,
> Raghavendra
>
> ---
> [ C-DAC is on Social-Media too. Kindly follow us at:
> Facebook: https://www.facebook.com/CDACINDIA & Twitter: @cdacindia ]
>
> This e-mail is for the sole use of the intended recipient(s) and may
> contain confidential and privileged information. If you are not the
> intended recipient, please contact the sender by reply e-mail and destroy
> all copies and the original message. Any unauthorized review, use,
> disclosure, dissemination, forwarding, printing or copying of this email
> is strictly prohibited and appropriate legal action will be taken.
> ---
>
>
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: The limit of kernel memory in 64bit system

2014-12-01 Thread Christoph Lameter
On Sat, 29 Nov 2014, nick wrote:

> Sorry Yiqun,
> I was thinking of virtual memory so you are correct. I also haven't looked 
> into
> the kernel memory subsystem(s) in a while so I may be a little behind in my 
> knownledge
> of them.
2^1
The amount of memory that can be handled by a processor is available via
/proc/cpuinfo:

processor   : 0
vendor_id   : GenuineIntel
cpu family  : 6
model   : 60
model name  : Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz
stepping: 3
microcode   : 0x16
cpu MHz : 3400.132
cache size  : 8192 KB
clflush size: 64
cache_alignment : 64
address sizes   : 39 bits physical, 48 bits virtual

so this processor support a physical memory space of 2^39 = 512GB and a
virtual address space of 256 TB.

A 64 bit kernel can support what the processor supports.


___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Debug Kernel Modules With KGDB

2014-12-01 Thread Freeman Zhang
Hi Raghavendra,

Yes, you are right, 'sudo' isn't implemented in android. However, `su`
enable me to read the .text as root. It's the same, 0x.

So I guess something else should be wrong.


Thanks anyway!

Freeman Zhang

 Original Message 
> Hi Zhang,
> 
> On Monday 01 December 2014 04:32 PM, Freeman Zhang wrote:
>> Hi Raghavendra,
>>
>> Thanks for your reply, but `sudo` doesn't solve the problem :(
> Well then I guess 'sudo' isn't implemented in android. Any way,
> ultimately you may wan't to login as root and then try reading the file
> in order to get the address.
> Regards,
> Raghavendra
>>
>> All the best!
>>
>> Freeman Zhang
>>
>>  Original Message 
>>> On Monday 01 December 2014 03:26 PM, Freeman Zhang wrote:
 Hi list,

 I've been trying to setup a debug environment for linux
 kernel(v3.4,Android,ARM) with kgdb. It worked fine untill I tried to
 use
 it to debug a module. Under the instruction from LDD, I add module
 debug
 info in gdb with command:

  add-symbol-file test-module.ko  address

 LDD uses `cat /sys/module/test-module/sections/.text` to get the
 address
 where the module has been loaded. However, I got:
   0x
>>> Try reading the file as a root.
>>> $ sudo cat /sys/module/test-module/sections/.text
 When I use `lsmod`, I got:

  test-module 15278 0 - Live 0x (O)

 Why nothing but 0x ??

 So I have to do some research in kernel/module.c, and find out that
 struct module -> module_core = 0xbf00. But when I try these in gdb:

  add-symbol-file test-module.ko  0xbf00
  break one_of_my_function

 I got:

  Cannot access memory at address 0xbf002350

 :(
 Could somebody help?


 All the best!
 Freeman Zhang

  



 ___
 Kernelnewbies mailing list
 Kernelnewbies@kernelnewbies.org
 http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>>>
>>> ---
>>>
>>>
>>> [ C-DAC is on Social-Media too. Kindly follow us at:
>>> Facebook: https://www.facebook.com/CDACINDIA & Twitter: @cdacindia ]
>>>
>>> This e-mail is for the sole use of the intended recipient(s) and may
>>> contain confidential and privileged information. If you are not the
>>> intended recipient, please contact the sender by reply e-mail and
>>> destroy
>>> all copies and the original message. Any unauthorized review, use,
>>> disclosure, dissemination, forwarding, printing or copying of this email
>>> is strictly prohibited and appropriate legal action will be taken.
>>> ---
>>>
>>>
>>>
>>>
>>>
>>>
>>> ___
>>> Kernelnewbies mailing list
>>> Kernelnewbies@kernelnewbies.org
>>> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>>>
> 
> 
> ---
> 
> [ C-DAC is on Social-Media too. Kindly follow us at:
> Facebook: https://www.facebook.com/CDACINDIA & Twitter: @cdacindia ]
> 
> This e-mail is for the sole use of the intended recipient(s) and may
> contain confidential and privileged information. If you are not the
> intended recipient, please contact the sender by reply e-mail and destroy
> all copies and the original message. Any unauthorized review, use,
> disclosure, dissemination, forwarding, printing or copying of this email
> is strictly prohibited and appropriate legal action will be taken.
> ---
> 
> 



signature.asc
Description: OpenPGP digital signature
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Debug Kernel Modules With KGDB

2014-12-01 Thread Raghavendra
Hi Zhang,

On Monday 01 December 2014 04:32 PM, Freeman Zhang wrote:
> Hi Raghavendra,
>
> Thanks for your reply, but `sudo` doesn't solve the problem :(
Well then I guess 'sudo' isn't implemented in android. Any way, 
ultimately you may wan't to login as root and then try reading the file 
in order to get the address.
Regards,
Raghavendra
>
> All the best!
>
> Freeman Zhang
>
>  Original Message 
>> On Monday 01 December 2014 03:26 PM, Freeman Zhang wrote:
>>> Hi list,
>>>
>>> I've been trying to setup a debug environment for linux
>>> kernel(v3.4,Android,ARM) with kgdb. It worked fine untill I tried to use
>>> it to debug a module. Under the instruction from LDD, I add module debug
>>> info in gdb with command:
>>>
>>>  add-symbol-file test-module.ko  address
>>>
>>> LDD uses `cat /sys/module/test-module/sections/.text` to get the address
>>> where the module has been loaded. However, I got:
>>>  
>>>  0x
>> Try reading the file as a root.
>> $ sudo cat /sys/module/test-module/sections/.text
>>> When I use `lsmod`, I got:
>>>
>>>  test-module 15278 0 - Live 0x (O)
>>>
>>> Why nothing but 0x ??
>>>
>>> So I have to do some research in kernel/module.c, and find out that
>>> struct module -> module_core = 0xbf00. But when I try these in gdb:
>>>
>>>  add-symbol-file test-module.ko  0xbf00
>>>  break one_of_my_function
>>>
>>> I got:
>>>
>>>  Cannot access memory at address 0xbf002350
>>>
>>> :(
>>> Could somebody help?
>>>
>>>
>>> All the best!
>>> Freeman Zhang
>>>
>>>  
>>>  
>>>
>>>
>>>
>>>
>>> ___
>>> Kernelnewbies mailing list
>>> Kernelnewbies@kernelnewbies.org
>>> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>>
>> ---
>>
>> [ C-DAC is on Social-Media too. Kindly follow us at:
>> Facebook: https://www.facebook.com/CDACINDIA & Twitter: @cdacindia ]
>>
>> This e-mail is for the sole use of the intended recipient(s) and may
>> contain confidential and privileged information. If you are not the
>> intended recipient, please contact the sender by reply e-mail and destroy
>> all copies and the original message. Any unauthorized review, use,
>> disclosure, dissemination, forwarding, printing or copying of this email
>> is strictly prohibited and appropriate legal action will be taken.
>> ---
>>
>>
>>
>>
>>
>> ___
>> Kernelnewbies mailing list
>> Kernelnewbies@kernelnewbies.org
>> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>>


---
[ C-DAC is on Social-Media too. Kindly follow us at:
Facebook: https://www.facebook.com/CDACINDIA & Twitter: @cdacindia ]

This e-mail is for the sole use of the intended recipient(s) and may
contain confidential and privileged information. If you are not the
intended recipient, please contact the sender by reply e-mail and destroy
all copies and the original message. Any unauthorized review, use,
disclosure, dissemination, forwarding, printing or copying of this email
is strictly prohibited and appropriate legal action will be taken.
---


___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Debug Kernel Modules With KGDB

2014-12-01 Thread Freeman Zhang
Hi Raghavendra,

Thanks for your reply, but `sudo` doesn't solve the problem :(


All the best!

Freeman Zhang

 Original Message 
> On Monday 01 December 2014 03:26 PM, Freeman Zhang wrote:
>> Hi list,
>>
>> I've been trying to setup a debug environment for linux
>> kernel(v3.4,Android,ARM) with kgdb. It worked fine untill I tried to use
>> it to debug a module. Under the instruction from LDD, I add module debug
>> info in gdb with command:
>>
>> add-symbol-file test-module.ko  address
>>
>> LDD uses `cat /sys/module/test-module/sections/.text` to get the address
>> where the module has been loaded. However, I got:
>> 
>> 0x
> Try reading the file as a root.
> $ sudo cat /sys/module/test-module/sections/.text
>>
>> When I use `lsmod`, I got:
>>
>> test-module 15278 0 - Live 0x (O)
>>
>> Why nothing but 0x ??
>>
>> So I have to do some research in kernel/module.c, and find out that
>> struct module -> module_core = 0xbf00. But when I try these in gdb:
>>
>> add-symbol-file test-module.ko  0xbf00
>> break one_of_my_function
>>
>> I got:
>>
>> Cannot access memory at address 0xbf002350
>>
>> :(
>> Could somebody help?
>>
>>
>> All the best!
>> Freeman Zhang
>>
>> 
>> 
>>
>>
>>
>>
>> ___
>> Kernelnewbies mailing list
>> Kernelnewbies@kernelnewbies.org
>> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
> 
> 
> ---
> 
> [ C-DAC is on Social-Media too. Kindly follow us at:
> Facebook: https://www.facebook.com/CDACINDIA & Twitter: @cdacindia ]
> 
> This e-mail is for the sole use of the intended recipient(s) and may
> contain confidential and privileged information. If you are not the
> intended recipient, please contact the sender by reply e-mail and destroy
> all copies and the original message. Any unauthorized review, use,
> disclosure, dissemination, forwarding, printing or copying of this email
> is strictly prohibited and appropriate legal action will be taken.
> ---
> 
> 
> 
> 
> 
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
> 



signature.asc
Description: OpenPGP digital signature
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: [eudyptula] has anyone received a gift after completing the challenge ?

2014-12-01 Thread Raghavendra
On Monday 01 December 2014 04:03 PM, Vinícius Tinti wrote:
> On Mon, Dec 1, 2014 at 1:54 AM, Raghavendra  wrote:
>> On Friday 28 November 2014 02:52 PM, Denis Pithon wrote:
>>
>> Hi all,
>>
>> I have finished the challenge some month ago and wonder if somebody has
>> received something from the Linux Foundation ? :-)
>> Thanks
>>
>> Denis
>>
>>
>> ___
>> Kernelnewbies mailing list
>> Kernelnewbies@kernelnewbies.org
>> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>>
>> Hi Denis,
>>
>> Same here. I've finished the challenge in the first week of October. At the
>> end they have asked for the mailing address, and so I gave them. But, I
>> haven't received any further intimation from them.
>>
>> Regards,
>> Raghavendra
>>
>> ---
>> [ C-DAC is on Social-Media too. Kindly follow us at:
>> Facebook: https://www.facebook.com/CDACINDIA & Twitter: @cdacindia ]
>>
>> This e-mail is for the sole use of the intended recipient(s) and may
>> contain confidential and privileged information. If you are not the
>> intended recipient, please contact the sender by reply e-mail and destroy
>> all copies and the original message. Any unauthorized review, use,
>> disclosure, dissemination, forwarding, printing or copying of this email
>> is strictly prohibited and appropriate legal action will be taken.
>> ---
> Hi Raghavendra,
>
> Congrats! How long did it take?
> I am still waiting task05 answer.
>
> Regards.
> Tinti
>
>> ___
>> Kernelnewbies mailing list
>> Kernelnewbies@kernelnewbies.org
>> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>>
>
>
Hi Tinti,

Well, I registered for the challenge on 24th April,14 and I received the 
final task's results on 3rd October,14. So, I may say about 5-6 months. 
But I see that the current responses have become even slower than before :(

Any way, all the best for your remaining tasks.

Regards,
Raghavendra

---
[ C-DAC is on Social-Media too. Kindly follow us at:
Facebook: https://www.facebook.com/CDACINDIA & Twitter: @cdacindia ]

This e-mail is for the sole use of the intended recipient(s) and may
contain confidential and privileged information. If you are not the
intended recipient, please contact the sender by reply e-mail and destroy
all copies and the original message. Any unauthorized review, use,
disclosure, dissemination, forwarding, printing or copying of this email
is strictly prohibited and appropriate legal action will be taken.
---


___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: [eudyptula] has anyone received a gift after completing the challenge ?

2014-12-01 Thread Vinícius Tinti
On Mon, Dec 1, 2014 at 1:54 AM, Raghavendra  wrote:
> On Friday 28 November 2014 02:52 PM, Denis Pithon wrote:
>
> Hi all,
>
> I have finished the challenge some month ago and wonder if somebody has
> received something from the Linux Foundation ? :-)
> Thanks
>
> Denis
>
>
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
> Hi Denis,
>
> Same here. I've finished the challenge in the first week of October. At the
> end they have asked for the mailing address, and so I gave them. But, I
> haven't received any further intimation from them.
>
> Regards,
> Raghavendra
>
> ---
> [ C-DAC is on Social-Media too. Kindly follow us at:
> Facebook: https://www.facebook.com/CDACINDIA & Twitter: @cdacindia ]
>
> This e-mail is for the sole use of the intended recipient(s) and may
> contain confidential and privileged information. If you are not the
> intended recipient, please contact the sender by reply e-mail and destroy
> all copies and the original message. Any unauthorized review, use,
> disclosure, dissemination, forwarding, printing or copying of this email
> is strictly prohibited and appropriate legal action will be taken.
> ---

Hi Raghavendra,

Congrats! How long did it take?
I am still waiting task05 answer.

Regards.
Tinti

> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>



-- 
Simplicity is the ultimate sophistication

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Debug Kernel Modules With KGDB

2014-12-01 Thread Raghavendra

On Monday 01 December 2014 03:26 PM, Freeman Zhang wrote:

Hi list,

I've been trying to setup a debug environment for linux
kernel(v3.4,Android,ARM) with kgdb. It worked fine untill I tried to use
it to debug a module. Under the instruction from LDD, I add module debug
info in gdb with command:

add-symbol-file test-module.ko  address

LDD uses `cat /sys/module/test-module/sections/.text` to get the address
where the module has been loaded. However, I got:

0x

Try reading the file as a root.
$ sudo cat /sys/module/test-module/sections/.text


When I use `lsmod`, I got:

test-module 15278 0 - Live 0x (O)

Why nothing but 0x ??

So I have to do some research in kernel/module.c, and find out that
struct module -> module_core = 0xbf00. But when I try these in gdb:

add-symbol-file test-module.ko  0xbf00
break one_of_my_function

I got:

Cannot access memory at address 0xbf002350

:(
Could somebody help?


All the best!
Freeman Zhang







___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies



---
[ C-DAC is on Social-Media too. Kindly follow us at:
Facebook: https://www.facebook.com/CDACINDIA & Twitter: @cdacindia ]

This e-mail is for the sole use of the intended recipient(s) and may
contain confidential and privileged information. If you are not the
intended recipient, please contact the sender by reply e-mail and destroy
all copies and the original message. Any unauthorized review, use,
disclosure, dissemination, forwarding, printing or copying of this email
is strictly prohibited and appropriate legal action will be taken.
---

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Debug Kernel Modules With KGDB

2014-12-01 Thread Freeman Zhang
Hi list,

I've been trying to setup a debug environment for linux
kernel(v3.4,Android,ARM) with kgdb. It worked fine untill I tried to use
it to debug a module. Under the instruction from LDD, I add module debug
info in gdb with command:

add-symbol-file test-module.ko  address

LDD uses `cat /sys/module/test-module/sections/.text` to get the address
where the module has been loaded. However, I got:

0x

When I use `lsmod`, I got:

test-module 15278 0 - Live 0x (O)

Why nothing but 0x ??

So I have to do some research in kernel/module.c, and find out that
struct module -> module_core = 0xbf00. But when I try these in gdb:

add-symbol-file test-module.ko  0xbf00
break one_of_my_function

I got:

Cannot access memory at address 0xbf002350

:(
Could somebody help?


All the best!
Freeman Zhang







signature.asc
Description: OpenPGP digital signature
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: ktime_get() equivalent from user space

2014-12-01 Thread manty kuma
Hi Vignesh,

Thank you for your answer. I have chosen ktime_get() as it is in sync with
the times logged in kernel log.
Hence, doing it with ktime_get() will be my first choice.

Regards,
Manty

On Mon, Dec 1, 2014 at 5:35 PM, Vignesh Radhakrishnan  wrote:

> An alternative that you can consider would be to expose the desired time
> or value from your driver, using a sysfs entry so that they can be synced
> to what you are doing in the driver level and  user space can read it using
> 'cat'
>
> Thanks and regards,
> Vignesh Radhakrishnan
>
> On Monday, December 1, 2014, manty kuma  wrote:
> > Hi,
> >
> > I need to measure some timings in my system. At driver level, i am using
> ktime_get() to log the times.
> > I need to map this to something of the same unit at user space.
> >
> > I checked /proc/uptime. This value also includes the suspend time which
> ktime_get() doesn't include. Hence this option is ruled out.
> >
> > Is there any other proc entry or any other source which is of same unit?
> >
> > Best Regards,
> > manty
> >
>
> --
> http://vigneshradhakrishnan.blogspot.com/
>
>
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: ktime_get() equivalent from user space

2014-12-01 Thread Vignesh Radhakrishnan
An alternative that you can consider would be to expose the desired time or
value from your driver, using a sysfs entry so that they can be synced to
what you are doing in the driver level and  user space can read it using
'cat'

Thanks and regards,
Vignesh Radhakrishnan

On Monday, December 1, 2014, manty kuma  wrote:
> Hi,
>
> I need to measure some timings in my system. At driver level, i am using
ktime_get() to log the times.
> I need to map this to something of the same unit at user space.
>
> I checked /proc/uptime. This value also includes the suspend time which
ktime_get() doesn't include. Hence this option is ruled out.
>
> Is there any other proc entry or any other source which is of same unit?
>
> Best Regards,
> manty
>

-- 
http://vigneshradhakrishnan.blogspot.com/
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


ktime_get() equivalent from user space

2014-12-01 Thread manty kuma
Hi,

I need to measure some timings in my system. At driver level, i am using
ktime_get() to log the times.
I need to map this to something of the same unit at user space.

I checked /proc/uptime. This value also includes the suspend time which
ktime_get() doesn't include. Hence this option is ruled out.

Is there any other proc entry or any other source which is of same unit?

Best Regards,
manty
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


KGPU : any scope?

2014-12-01 Thread Raghavendra
Hello all,

I was going through the concept of KGPU, which is a GPU computing 
framework for the Linux Kernel. I've read the white paper on it(can be 
found at http://www.cs.utah.edu/~wbsun/kgpu.pdf) and I am very much 
interested in this project, but what could be the scope of 
this(although, the paper mentions a few application areas like crypto, 
networking, fs, etc)? Does the kernel really require GPU's assistance? 
What is the scope of building kernel frameworks around it?

Also the current framework is build using CUDA. I want to re-implement 
the same using OpenCL as it is supported by most of the GPUs. As per my 
perspective, I see a huge learning opportunity here. But, practically 
how fas is it useful?

Any suggestions would be helpful.

Thanks

Raghavendra.

---
[ C-DAC is on Social-Media too. Kindly follow us at:
Facebook: https://www.facebook.com/CDACINDIA & Twitter: @cdacindia ]

This e-mail is for the sole use of the intended recipient(s) and may
contain confidential and privileged information. If you are not the
intended recipient, please contact the sender by reply e-mail and destroy
all copies and the original message. Any unauthorized review, use,
disclosure, dissemination, forwarding, printing or copying of this email
is strictly prohibited and appropriate legal action will be taken.
---


___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies