• G
    perf symbols: Fix directory descriptor leaking · 74534341
    Gui Jianfeng 提交于
    When I ran "perf kvm ... top", I encountered the following error output.
    
      Error: perfcounter syscall returned with -1 (Too many open files)
    
      Fatal: No CONFIG_PERF_EVENTS=y kernel support configured?
    
    Looking into perf, I found perf opens too many directories at
    initialization time, but forgets to close them. Here is the fix.
    
    LKML-Reference: <4C230362.5080704@cn.fujitsu.com>
    Cc: Ingo Molnar <mingo@elte.hu>
    Cc: Paul Mackerras <paulus@samba.org>
    Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
    Signed-off-by: NGui Jianfeng <guijianfeng@cn.fujitsu.com>
    Signed-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
    74534341
symbol.c 52.6 KB