selftests/powerpc: Refactor the AUXV routines
Refactor the AUXV routines so they are more composable. In a future test we want to look for many AUXV entries and we don't want to have to read /proc/self/auxv each time. Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:
@@ -24,7 +24,11 @@ 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 read_auxv(char *buf, ssize_t buf_size);
|
||||
void *find_auxv_entry(int type, char *auxv);
|
||||
void *get_auxv_entry(int type);
|
||||
|
||||
int pick_online_cpu(void);
|
||||
|
||||
static inline bool have_hwcap(unsigned long ftr)
|
||||
|
||||
Reference in New Issue
Block a user