• A
    perf test: Add test for counting open syscalls · d854861c
    Arnaldo Carvalho de Melo 提交于
    To test the use of the perf_evsel class on something other than
    the tools from where we refactored code to create it.
    
    It calls open() N times and then checks if the event created to
    monitor it returns N events.
    
    [acme@felicio linux]$ perf test
     1: vmlinux symtab matches kallsyms: Ok
     2: detect open syscall event: Ok
    [acme@felicio linux]$
    
    It does.
    
    Cc: Frederic Weisbecker <fweisbec@gmail.com>
    Cc: Han Pingtian <phan@redhat.com>
    Cc: Ingo Molnar <mingo@elte.hu>
    Cc: Mike Galbraith <efault@gmx.de>
    Cc: Paul Mackerras <paulus@samba.org>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Stephane Eranian <eranian@google.com>
    Cc: Tom Zanussi <tzanussi@gmail.com>
    LKML-Reference: <new-submission>
    Signed-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
    d854861c
builtin-test.c 9.0 KB