The Android Open Source Project | 10e23ee | 2009-03-03 19:30:30 -0800 | [diff] [blame] | 1 | /** |
| 2 | * @file daemon/opd_mangling.h |
| 3 | * Mangling and opening of sample files |
| 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 OPD_MANGLING_H |
| 13 | #define OPD_MANGLING_H |
| 14 | |
| 15 | #include "odb.h" |
| 16 | |
| 17 | struct sfile; |
| 18 | |
| 19 | /* |
| 20 | * opd_open_sample_file - open a sample file |
| 21 | * @param sf sfile to open sample file for |
| 22 | * @param counter counter number |
| 23 | * @param cg if this is a callgraph file |
| 24 | * |
| 25 | * Open image sample file for the sfile, counter |
| 26 | * counter and set up memory mappings for it. |
| 27 | * |
| 28 | * Returns 0 on success. |
| 29 | */ |
Ben Cheng | 5a4eb4e | 2009-09-14 16:00:41 -0700 | [diff] [blame] | 30 | int opd_open_sample_file(odb_t *file, struct sfile *last, |
The Android Open Source Project | 10e23ee | 2009-03-03 19:30:30 -0800 | [diff] [blame] | 31 | struct sfile * sf, int counter, int cg); |
| 32 | |
| 33 | #endif /* OPD_MANGLING_H */ |