I quickly tested following code. I could capture without error by using oprofile-0.9 with 2.6.11-rc6 on mpc8555e (powerpc-e500 core).
From: oprofile-list-admin@... [mailto:oprofile-list-admin@...] On Behalf Of Yao qi
Sent: Wednesday, July 06, 2005 2:20 AM
Subject: child process exited abnormally when profile multi-thread program
I have written a test case of multi-thread for oprofile, the source code is as follows #include <stdio.h> #include <pthread.h>
#define N 300
void* mytread(void* arg)
for(i=0; i< N; i++)
for(j=0; j< N; j++)
for(k=0; k< N; k++)
if ( pthread_create(&th,NULL,mytread,NULL)!=0)
printf("can not create thread,exit!\n");
It runs OK without Oprofile like this
However, when I oprofile it, there is an warning as follows Daemon started.
child process exited abnormally
CPU: ppc64 POWER4, speed 1002 MHz (estimated) Counted CYCLES events (Processor Cycles) with a unit mask of 0x00 (No unit
mask) count 100000
samples % symbol name
4796 100.000 mytread
I have greped the source code of oprofile, this is not generated by oprofile. I dont know whether I missed something or not, could anyone give me some suggestions or comments?
Thanks in advance!
Bejing Institute of Technology
FREE pop-up blocking with the new MSN Toolbar - get it now!
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
oprofile-list mailing list