Re: [PATCH v4 01/12] perf util: Create rblist__reset() function

2017-11-30 Thread Jin, Yao
On 12/1/2017 3:30 AM, Arnaldo Carvalho de Melo wrote: Em Thu, Nov 30, 2017 at 07:56:31PM +0800, Jin Yao escreveu: Currently we have a rblist__delete() which is used to delete a rblist. While rblist__delete() will free the pointer of rblist at the end. It's inconvenience for user to delete a r

Re: [PATCH v4 01/12] perf util: Create rblist__reset() function

2017-11-30 Thread Arnaldo Carvalho de Melo
Em Thu, Nov 30, 2017 at 07:56:31PM +0800, Jin Yao escreveu: > Currently we have a rblist__delete() which is used to delete a rblist. > While rblist__delete() will free the pointer of rblist at the end. > > It's inconvenience for user to delete a rblist which is not allocated > by something like ma

[PATCH v4 01/12] perf util: Create rblist__reset() function

2017-11-29 Thread Jin Yao
Currently we have a rblist__delete() which is used to delete a rblist. While rblist__delete() will free the pointer of rblist at the end. It's inconvenience for user to delete a rblist which is not allocated by something like malloc(). For example, the rblist is defined in a data structure. This