• P
    perf_counter: change event definition · 4c9e2542
    Peter Zijlstra 提交于
    Currently the definition of an event is slightly ambiguous. We have
    wakeup events, for poll() and SIGIO, which are either generated
    when a record crosses a page boundary (hw_events.wakeup_events == 0),
    or every wakeup_events new records.
    
    Now a record can be either a counter overflow record, or a number of
    different things, like the mmap PROT_EXEC region notifications.
    
    Then there is the PERF_COUNTER_IOC_REFRESH event limit, which only
    considers counter overflows.
    
    This patch changes then wakeup_events and SIGIO notification to only
    consider overflow events. Furthermore it changes the SIGIO notification
    to report SIGHUP when the event limit is reached and the counter will
    be disabled.
    Signed-off-by: NPeter Zijlstra <a.p.zijlstra@chello.nl>
    Cc: Paul Mackerras <paulus@samba.org>
    Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
    LKML-Reference: <20090406094518.266679874@chello.nl>
    Signed-off-by: NIngo Molnar <mingo@elte.hu>
    4c9e2542
perf_counter.h 15.4 KB