/* * 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; void test_harness_set_timeout(uint64_t time); 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 | |
cyril bur | cyril bur | 14 | 100.00% | 1 | 100.00% |
Total | 14 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
michael ellerman | michael ellerman | 153 | 72.51% | 6 | 50.00% |
cyril bur | cyril bur | 28 | 13.27% | 2 | 16.67% |
chris smart | chris smart | 14 | 6.64% | 1 | 8.33% |
sam bobroff | sam bobroff | 9 | 4.27% | 1 | 8.33% |
greg kurz | greg kurz | 4 | 1.90% | 1 | 8.33% |
rashmica gupta | rashmica gupta | 3 | 1.42% | 1 | 8.33% |
Total | 211 | 100.00% | 12 | 100.00% |