[ltt-dev] [UST PATCH] Get Online targets checker

Matthew Khouzam matthew.khouzam at ericsson.com
Fri Mar 25 19:33:10 EDT 2011


Yes it is.



On 11-03-25 05:57 PM, Yannick Brosseau wrote:
> On 2011-03-25 17:54, Matthew Khouzam wrote:
>> Added a check in get online pids to only send the pids that are
>> currently online.
>>
>>
>> Signed-off-by: Matthew Khouzam<matthew.khouzam at ericsson.com>
>> ---
>>   libustctl/libustctl.c |    9 ++++++++-
>>   1 files changed, 8 insertions(+), 1 deletions(-)
>>
>> diff --git a/libustctl/libustctl.c b/libustctl/libustctl.c
>> index d57e645..3b5ae84 100644
>> --- a/libustctl/libustctl.c
>> +++ b/libustctl/libustctl.c
>> @@ -92,8 +92,11 @@ pid_t *ustctl_get_online_pids(void)
>>   {
>>       struct dirent *dirent;
>>       DIR *dir;
>> +    DIR *proc_dir;
>> +    char proc_dir_path[80]; /* proc+ / + int always smaller than 80*/
>>       unsigned int ret_size = 1 * sizeof(pid_t), i = 0;
>>
>> +    printf( "%s\n" , SOCK_DIR) ;
> This printf seems to be leftover debug code.
>
> _______________________________________________
> ltt-dev mailing list
> ltt-dev at lists.casi.polymtl.ca
> http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev




More information about the lttng-dev mailing list