1. 15 12月, 2008 3 次提交
    • I
      perfcounters: implement "counter inheritance" · 9b51f66d
      Ingo Molnar 提交于
      Impact: implement new performance feature
      
      Counter inheritance can be used to run performance counters in a workload,
      transparently - and pipe back the counter results to the parent counter.
      
      Inheritance for performance counters works the following way: when creating
      a counter it can be marked with the .inherit=1 flag. Such counters are then
      'inherited' by all child tasks (be they fork()-ed or clone()-ed). These
      counters get inherited through exec() boundaries as well (except through
      setuid boundaries).
      
      The counter values get added back to the parent counter(s) when the child
      task(s) exit - much like stime/utime statistics are gathered. So inherited
      counters are ideal to gather summary statistics about an application's
      behavior via shell commands, without having to modify that application.
      
      The timec.c command utilizes counter inheritance:
      
        http://redhat.com/~mingo/perfcounters/timec.c
      
      Sample output:
      
         $ ./timec -e 1 -e 3 -e 5 ls -lR /usr/include/ >/dev/null
      
         Performance counter stats for 'ls':
      
                 163516953 instructions
                      2295 cache-misses
                   2855182 branch-misses
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      9b51f66d
    • I
      perfcounters: restructure x86 counter math · ee06094f
      Ingo Molnar 提交于
      Impact: restructure code
      
      Change counter math from absolute values to clear delta logic.
      
      We try to extract elapsed deltas from the raw hw counter - and put
      that into the generic counter.
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      ee06094f
    • I
      x86: implement atomic64_t on 32-bit · 9b194e83
      Ingo Molnar 提交于
      Impact: new API
      
      Implement the atomic64_t APIs on 32-bit as well. Will be used by
      the performance counters code.
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      9b194e83
  2. 12 12月, 2008 4 次提交
  3. 11 12月, 2008 33 次提交