[PATCH 3/3] perf tools: Use scandir() to iterate threads

2021-02-02 Thread Namhyung Kim
Like in __event__synthesize_thread(), I think it's better to use scandir() instead of the readdir() loop. In case some malicious task continues to create new threads, the readdir() loop will run over and over to collect tids. The scandir() also has the problem but the window is much smaller since

[PATCH 3/3] perf tools: Use scandir() to iterate threads

2021-01-28 Thread Namhyung Kim
Like in __event__synthesize_thread(), I think it's better to use scandir() instead of the readdir() loop. In case some malicious task continues to create new threads, the readdir() loop will run over and over to collect tids. The scandir() also has the problem but the window is much smaller since

[PATCH 3/3] perf tools: Use scandir() to iterate threads

2020-12-20 Thread Namhyung Kim
Like in __event__synthesize_thread(), I think it's better to use scandir() instead of the readdir() loop. In case some malicious task continues to create new threads, the readdir() loop will run over and over to collect tids. The scandir() also has the problem but the window is much smaller since