From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27372 invoked by alias); 6 Apr 2005 10:58:16 -0000 Mailing-List: contact rda-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Post: List-Help: , Sender: rda-owner@sources.redhat.com Received: (qmail 26531 invoked from network); 6 Apr 2005 10:57:22 -0000 Received: from unknown (HELO wproxy.gmail.com) (64.233.184.200) by sourceware.org with SMTP; 6 Apr 2005 10:57:22 -0000 Received: by wproxy.gmail.com with SMTP id 69so149848wra for ; Wed, 06 Apr 2005 03:57:21 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding; b=pVTs0PAt+BYGEh5pqjowQDifGsRk7yDTb39/EK2zh5YFE1FmQeOpMplwFZPJYC6E8kFvUf682KYCHo7oLLx8wE0aaTFkyI/1KHV9zNfZ5YSzM7+CBu49tam/pj3yG/AaIx+LzEOBLa2GggzwaLzyyReF3f/wLDFC0HlVV62foO4= Received: by 10.54.15.21 with SMTP id 21mr45207wro; Wed, 06 Apr 2005 03:57:21 -0700 (PDT) Received: by 10.54.67.16 with HTTP; Wed, 6 Apr 2005 03:57:21 -0700 (PDT) Message-ID: <18aafe4c05040603574ebfbd61@mail.gmail.com> Date: Wed, 06 Apr 2005 10:58:00 -0000 From: Vinu Dev Reply-To: Vinu Dev To: rda@sources.redhat.com Subject: Help required on rda [FRV] Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-SW-Source: 2005-q2/txt/msg00000.txt.bz2 Dear Jimb, I Appreciate your contribution to redhat on rda,i have problem using rda compilied for FRV target,while debugging thread application using rda and gdb compilied for FRV,there is a delay in thread creation when compared to creation of thread running the prog on console. Can u pls guide me in solving this problem Thread program used:thread.c #include #include #include #include long initial_start_time; long initial_end_time; void *do_nothing(void *arg) { struct timeval t; struct timezone tz; gettimeofday(&t, &tz); printf("%d: Hello World!\n", arg); return NULL; } #define NUM_THREADS 1 int main(void) { int i; pthread_t tid[NUM_THREADS]; struct timeval t_start; struct timezone tz_start; struct timeval t_end; struct timezone tz_end; gettimeofday(&t_start, &tz_start); printf("Start time %llu\n", t_start.tv_sec); initial_start_time = t_start.tv_sec; for (i = 0; i < NUM_THREADS; i++) { printf("Creating thread %d\n", i); pthread_create(&tid[i], NULL, do_nothing, NULL); } for(i = 0; i < NUM_THREADS; i++) pthread_join(tid[i], NULL); gettimeofday(&t_end, &tz_start); printf("End time %llu\n", t_end.tv_sec); initial_end_time = t_end.tv_sec; return 0; } At target #rda 1234 thread Creating thread 0 Start time 4054105993896787986 End time 4054106032587143688 Total time take by the thread is time in sec 38654705694 Total time take by the thread is time in usec 1546188226560057 0: Hello World! At host #frv-gdb thread (gdb) target remote 192.168.1.174:1234 Remote debugging using 192.168.1.174:1234 0x00004de0 in ?? () (gdb) cont Continuing. [New Thread 16384] Program exited normally. (gdb) Iam using RH9 at host side and at target its FRV kernel[2.4.24] I would wait for ur reply. Regards, Vinay