Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
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.


  Search this Thread
Old 06-24-2012, 11:15 PM   #1
Registered: Sep 2007
Posts: 293

Rep: Reputation: 23
printk upon memory allocation


I'm working with vanilla 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 ?

Old 06-25-2012, 01:35 PM   #2
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-30-2012, 12:54 AM   #3
Senior Member
Registered: Apr 2009
Posts: 1,839

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


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 09:19 PM
memory allocation gecoool Programming 2 10-24-2005 10:47 AM
Help - memory allocation in C zaichik Programming 3 09-04-2005 11:16 AM
memory allocation docGonzo2000 Linux - General 1 05-16-2003 10:22 PM
memory allocation. raven Programming 5 09-08-2002 02:50 PM > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 08:20 AM.

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