/* * Copyright 2013, Michael Ellerman, IBM Corp. * Licensed under GPLv2. */ #ifndef _SELFTESTS_POWERPC_UTILS_H #define _SELFTESTS_POWERPC_UTILS_H #define __cacheline_aligned __attribute__((aligned(128))) #include <stdint.h> #include <stdbool.h> #include <linux/auxvec.h> #include "reg.h" /* Avoid headaches with PRI?64 - just use %ll? always */ typedef unsigned long long u64; typedef signed long long s64; /* Just for familiarity */ typedef uint32_t u32; typedef uint16_t u16; typedef uint8_t u8; int test_harness(int (test_function)(void), char *name); extern void *get_auxv_entry(int type); int pick_online_cpu(void);
static inline bool have_hwcap(unsigned long ftr) { return ((unsigned long)get_auxv_entry(AT_HWCAP) & ftr) == ftr; }Contributors
| Person | Tokens | Prop | Commits | CommitProp | |
| michael ellerman | michael ellerman | 27 | 100.00% | 1 | 100.00% |
| Total | 27 | 100.00% | 1 | 100.00% |
| Person | Tokens | Prop | Commits | CommitProp | |
| michael ellerman | michael ellerman | 27 | 100.00% | 1 | 100.00% |
| Total | 27 | 100.00% | 1 | 100.00% |
| Person | Tokens | Prop | Commits | CommitProp | |
| michael ellerman | michael ellerman | 153 | 83.61% | 6 | 60.00% |
| chris smart | chris smart | 14 | 7.65% | 1 | 10.00% |
| sam bobroff | sam bobroff | 9 | 4.92% | 1 | 10.00% |
| greg kurz | greg kurz | 4 | 2.19% | 1 | 10.00% |
| rashmica gupta | rashmica gupta | 3 | 1.64% | 1 | 10.00% |
| Total | 183 | 100.00% | 10 | 100.00% |