lkml.org 
[lkml]   [2020]   [Mar]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH V3 10/17] perf tools: Save previous sample for LBR stitching approach
From
Date


On 3/18/2020 8:14 AM, Jiri Olsa wrote:
> On Fri, Mar 13, 2020 at 11:33:12AM -0700, kan.liang@linux.intel.com wrote:
>
> SNIP
>
>> + struct lbr_stitch *lbr_stitch;
>> };
>>
>> struct machine;
>> @@ -145,4 +151,14 @@ static inline bool thread__is_filtered(struct thread *thread)
>> return false;
>> }
>>
>> +static inline void thread__free_stitch_list(struct thread *thread)
>> +{
>> + struct lbr_stitch *lbr_stitch = thread->lbr_stitch;
>> +
>> + if (!lbr_stitch)
>> + return;
>> +
>> + free(thread->lbr_stitch);
>> +}
>
> free(thread->lbr_stitch) should be enough
>

Sure. Will change it in V4.

Thanks,
Kan

> jirka
>
>> +
>> #endif /* __PERF_THREAD_H */
>> --
>> 2.17.1
>>
>

\
 
 \ /
  Last update: 2020-03-18 15:23    [W:0.054 / U:1.872 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site