op_mangle.h

Go to the documentation of this file.
00001 
00012 #ifndef OP_MANGLE_H
00013 #define OP_MANGLE_H
00014 
00015 #include <sys/types.h>
00016 
00017 #ifdef __cplusplus
00018 extern "C" {
00019 #endif
00020 
00021 enum mangle_flags {
00022     MANGLE_NONE      = 0,
00023     MANGLE_CPU       = (1 << 0),
00024     MANGLE_TGID      = (1 << 1),
00025     MANGLE_TID       = (1 << 2),
00026     MANGLE_KERNEL    = (1 << 3),
00027     MANGLE_CALLGRAPH = (1 << 4),
00028     MANGLE_ANON      = (1 << 5),
00029     MANGLE_CG_ANON   = (1 << 6),
00030 };
00031 
00036 struct mangle_values {
00037     int flags;
00038 
00039     char const * image_name;
00040     char const * anon_name;
00041     char const * dep_name;
00042     char const * cg_image_name;
00043     char const * event_name;
00044     int count;
00045     unsigned int unit_mask;
00046     pid_t tgid;
00047     pid_t tid;
00048     int cpu;
00049 };
00050 
00060 char * op_mangle_filename(struct mangle_values const * values);
00061 
00062 #ifdef __cplusplus
00063 }
00064 #endif
00065 
00066 #endif /* OP_MANGLE_H */

Generated on 8 Nov 2012 for Oprofile by  doxygen 1.6.1