Unix Programming - threads executed by a programm

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > February 2006 > threads executed by a programm





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author threads executed by a programm
Fabian Müller

2006-02-17, 10:40 pm

Hello,

it would be very helpful to know, which threads were started
while a program was running. I would like to have a history of all
threads that where executed while a certain program was
running. Important is that I really get the name of the thread
function and not just the information shown by the ps command.

As far as I know this is not possible with normal process
accounting.

With callgrind (a tool for valgrind) I can list the name of all
threads which are running at a certain point of time but with this
method it's difficult or not possible to list also those threads
that run for a very short period of time.

Thanx very much in advance,

Fabian Müller
Nils O. Selåsdal

2006-02-17, 10:40 pm

Fabian Müller wrote:
> Hello,
>
> it would be very helpful to know, which threads were started
> while a program was running. I would like to have a history of all
> threads that where executed while a certain program was
> running. Important is that I really get the name of the thread
> function and not just the information shown by the ps command.
>
> As far as I know this is not possible with normal process
> accounting.
>
> With callgrind (a tool for valgrind) I can list the name of all
> threads which are running at a certain point of time but with this
> method it's difficult or not possible to list also those threads
> that run for a very short period of time.
>

Create a wrapper for pthread_create that logs the interresting info.
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com