LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices

Reply
 
Search this Thread
Old 06-24-2012, 10:15 PM   #1
zvivered
Member
 
Registered: Sep 2007
Posts: 114

Rep: Reputation: 15
printk upon memory allocation


Hello,

I'm working with vanilla 2.6.27.35 and a toolchain built with crosstool-ng.

I suspect that the user space application running is doing memory allocation not only in the initialization phase.

When application is calling to new\alloc\delete is the kernel involve ?
I want to call a "printk" whenever an allocation\deallocation is run.

Where should I put this printk ?

Thanks,
Zvika.
 
Old 06-25-2012, 12:35 PM   #2
Qw_freak
LQ Newbie
 
Registered: Jun 2012
Location: Denmark
Distribution: Fedora 17
Posts: 5

Rep: Reputation: Disabled
Maybe put it in the beginning of the allocating function...
 
Old 06-29-2012, 11:54 PM   #3
nini09
Member
 
Registered: Apr 2009
Posts: 968

Rep: Reputation: 67
The application of user space use print to print out information. The printk is used in kernel space only.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Application Virtual address space memory allocation - memory does not get free chamara82 Linux - General 4 01-01-2011 08:19 PM
memory allocation gecoool Programming 2 10-24-2005 09:47 AM
Help - memory allocation in C zaichik Programming 3 09-04-2005 10:16 AM
memory allocation docGonzo2000 Linux - General 1 05-16-2003 09:22 PM
memory allocation. raven Programming 5 09-08-2002 01:50 PM


All times are GMT -5. The time now is 10:27 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration