Mike Dodd | 8cfa702 | 2010-11-17 11:12:26 -0800 | [diff] [blame] | 1 | /** |
| 2 | * @file op_util.h |
| 3 | * Various utility functions |
| 4 | * |
| 5 | * @remark Copyright 2002 OProfile authors |
| 6 | * @remark Read the file COPYING |
| 7 | * |
| 8 | * @author John Levon |
| 9 | * @author Philippe Elie |
| 10 | */ |
| 11 | |
| 12 | #ifndef OP_UTIL_H |
| 13 | #define OP_UTIL_H |
| 14 | |
| 15 | unsigned long kvirt_to_pa(unsigned long adr); |
| 16 | void * rvmalloc(signed long size); |
| 17 | void rvfree(void * mem, signed long size); |
| 18 | // returns non-zero on failure, inclusive |
| 19 | int check_range(int val, int l, int h, char const * msg); |
| 20 | |
| 21 | #endif /* OP_UTIL_H */ |