On Sat, Feb 23, 2019 at 02:07:53PM +0900, Namhyung Kim wrote:
SNIP
> > +static void close_dir(struct perf_data_file *files, int nr)
> > +{
> > + while (--nr >= 1) {
> > + close(files[nr].fd);
> > + free(files[nr].path);
> > + }
> > + free(files);
> >
On Thu, Feb 21, 2019 at 6:42 PM Jiri Olsa wrote:
>
> Adding perf_data__create_dir to create nr files inside
> struct perf_data path directory:
> int perf_data__create_dir(struct perf_data *data, int nr);
>
> and function to close that data:
> void perf_data__close_dir(struct perf_data *data);
2 matches
Mail list logo