/* * Copyright 2014, Michael Ellerman, IBM Corp. * Licensed under GPLv2. */ #ifndef _SELFTESTS_POWERPC_PMU_EBB_EBB_H #define _SELFTESTS_POWERPC_PMU_EBB_EBB_H #include "../event.h" #include "../lib.h" #include "trace.h" #include "reg.h" #define PMC_INDEX(pmc) ((pmc)-1) #define NUM_PMC_VALUES 128 struct ebb_state { struct { u64 pmc_count[6]; volatile int ebb_count; int spurious; int negative; int no_overflow; } stats; bool pmc_enable[6]; struct trace_buffer *trace; }; extern struct ebb_state ebb_state; #define COUNTER_OVERFLOW 0x80000000ull
static inline uint32_t pmc_sample_period(uint32_t value) { return COUNTER_OVERFLOW - value; }Contributors
Person | Tokens | Prop | Commits | CommitProp |
Michael Ellerman | 15 | 100.00% | 1 | 100.00% |
Total | 15 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Michael Ellerman | 22 | 100.00% | 1 | 100.00% |
Total | 22 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Michael Ellerman | 344 | 98.29% | 1 | 50.00% |
Denis Kirjanov | 6 | 1.71% | 1 | 50.00% |
Total | 350 | 100.00% | 2 | 100.00% |