Release 4.8 tools/testing/selftests/powerpc/pmu/ebb/ebb_lmr_regs.c
/*
* Copyright 2016, Jack Miller, IBM Corp.
* Licensed under GPLv2.
*/
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include "ebb.h"
#include "ebb_lmr.h"
#define CHECKS 10000
int ebb_lmr_regs(void)
{
int i;
SKIP_IF(!lmr_is_supported());
ebb_global_enable();
for (i = 0; i < CHECKS; i++) {
mtspr(SPRN_LMRR, i << 25); // skip size and rsvd bits
mtspr(SPRN_LMSER, i);
FAIL_IF(mfspr(SPRN_LMRR) != (i << 25));
FAIL_IF(mfspr(SPRN_LMSER) != i);
}
return 0;
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
| jack miller | jack miller | 79 | 100.00% | 1 | 100.00% |
| Total | 79 | 100.00% | 1 | 100.00% |
int main(void)
{
return test_harness(ebb_lmr_regs, "ebb_lmr_regs");
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
| jack miller | jack miller | 15 | 100.00% | 1 | 100.00% |
| Total | 15 | 100.00% | 1 | 100.00% |
Overall Contributors
| Person | Tokens | Prop | Commits | CommitProp |
| jack miller | jack miller | 114 | 100.00% | 1 | 100.00% |
| Total | 114 | 100.00% | 1 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.