commit | 8490b7d917c46951e3bc6708000fb542350b814b | [log] [tgz] |
---|---|---|
author | Alan Coopersmith <alan.coopersmith@oracle.com> | Tue Nov 05 16:56:46 2019 -0800 |
committer | Marge Bot <eric+marge@anholt.net> | Wed Jan 22 20:23:51 2020 +0000 |
tree | a3b0fa8fa37da50301433ea69972af9da1471d37 | |
parent | 8f140422eddb8746cca49120dc8b763d1409d737 [diff] |
intel/perf: adapt to platforms like Solaris without d_type in struct dirent Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> [Eric: factor out the is_dir_or_link() check and fix a bug in v1] Signed-off-by: Eric Engestrom <eric.engestrom@intel.com> v3: include directory path when lstat'ing files v4: fix inverted check in enumerate_sysfs_metrics() Reviewed-by: Eric Engestrom <eric.engestrom@intel.com> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2258> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2258>