Re: [PATCH] perf tests: Handle properly readdir DT_UNKNOWN

2017-12-08 Thread Jiri Olsa
On Thu, Dec 07, 2017 at 12:19:05PM -0300, Arnaldo Carvalho de Melo wrote: > Em Wed, Dec 06, 2017 at 06:45:35PM +0100, Jiri Olsa escreveu: > > Some system can return DT_UNKNOWN in readdir's struct dirent::d_type > > and we must handle it properly. In this case we can directly check > > if the

Re: [PATCH] perf tests: Handle properly readdir DT_UNKNOWN

2017-12-08 Thread Jiri Olsa
On Thu, Dec 07, 2017 at 12:19:05PM -0300, Arnaldo Carvalho de Melo wrote: > Em Wed, Dec 06, 2017 at 06:45:35PM +0100, Jiri Olsa escreveu: > > Some system can return DT_UNKNOWN in readdir's struct dirent::d_type > > and we must handle it properly. In this case we can directly check > > if the

Re: [PATCH] perf tests: Handle properly readdir DT_UNKNOWN

2017-12-07 Thread Arnaldo Carvalho de Melo
Em Wed, Dec 06, 2017 at 06:45:35PM +0100, Jiri Olsa escreveu: > Some system can return DT_UNKNOWN in readdir's struct dirent::d_type > and we must handle it properly. In this case we can directly check > if the entity we found is directory and skip it. > Making is_directory function global.

Re: [PATCH] perf tests: Handle properly readdir DT_UNKNOWN

2017-12-07 Thread Arnaldo Carvalho de Melo
Em Wed, Dec 06, 2017 at 06:45:35PM +0100, Jiri Olsa escreveu: > Some system can return DT_UNKNOWN in readdir's struct dirent::d_type > and we must handle it properly. In this case we can directly check > if the entity we found is directory and skip it. > Making is_directory function global.

[PATCH] perf tests: Handle properly readdir DT_UNKNOWN

2017-12-06 Thread Jiri Olsa
Some system can return DT_UNKNOWN in readdir's struct dirent::d_type and we must handle it properly. In this case we can directly check if the entity we found is directory and skip it. Making is_directory function global. Reported-by: Michael Petlan Link:

[PATCH] perf tests: Handle properly readdir DT_UNKNOWN

2017-12-06 Thread Jiri Olsa
Some system can return DT_UNKNOWN in readdir's struct dirent::d_type and we must handle it properly. In this case we can directly check if the entity we found is directory and skip it. Making is_directory function global. Reported-by: Michael Petlan Link: