| Line | |
|---|
| 1 | /////////////////////////////////////////////////////////////////////////////// |
|---|
| 2 | // File : idbg.c |
|---|
| 3 | // Date : May 2018 |
|---|
| 4 | // Author : Alain Greiner <alain.greiner@lip6.fr> |
|---|
| 5 | /////////////////////////////////////////////////////////////////////////////// |
|---|
| 6 | // This single thread interactive debuger can be used to access and display |
|---|
| 7 | // various kernel structures |
|---|
| 8 | /////////////////////////////////////////////////////////////////////////////// |
|---|
| 9 | |
|---|
| 10 | #include <stdlib.h> |
|---|
| 11 | #include <stdio.h> |
|---|
| 12 | #include <almosmkh.h> |
|---|
| 13 | |
|---|
| 14 | /////////// |
|---|
| 15 | void main() |
|---|
| 16 | { |
|---|
| 17 | unsigned long long cycle; |
|---|
| 18 | |
|---|
| 19 | get_cycle( &cycle ); |
|---|
| 20 | printf( "\n[IDBG] starts at cycle %d\n", (unsigned int)cycle ); |
|---|
| 21 | |
|---|
| 22 | while (1) |
|---|
| 23 | { |
|---|
| 24 | |
|---|
| 25 | /////// |
|---|
| 26 | idbg(); |
|---|
| 27 | /////// |
|---|
| 28 | } |
|---|
| 29 | |
|---|
| 30 | get_cycle( &cycle ); |
|---|
| 31 | printf( "\n[IDBG] exit at cycle %d\n", (unsigned int)cycle ); |
|---|
| 32 | |
|---|
| 33 | exit( EXIT_SUCCESS ); |
|---|
| 34 | |
|---|
| 35 | } // end main() |
|---|
| 36 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.