Back to index

glibc  2.9
Defines | Functions
machine-gmon.h File Reference
#include <sysdep.h>

Go to the source code of this file.


#define _MCOUNT_DECL(frompc, selfpc)   static void mcount_internal (u_long frompc, u_long selfpc)
#define MCOUNT


void _mcount (void) asm("mcount")
static void mcount_internal (u_long frompc, u_long selfpc) __attribute_used__

Define Documentation

#define _MCOUNT_DECL (   frompc,
)    static void mcount_internal (u_long frompc, u_long selfpc)

Definition at line 37 of file machine-gmon.h.

#define MCOUNT
void _mcount (void)                                            \
{                                                              \
  __asm__("stmdb     sp!, {r0, r1, r2, r3};"                          \
         "movs              fp, fp;"                                  \
          "moveq     r1, #0;"                                  \
         "ldrne      r1, [fp, $-4];"                                  \
         "ldrne      r0, [fp, $-12];"                          \
         "movnes     r0, r0;"                                  \
         "ldrne      r0, [r0, $-4];"                                  \
         "movs              r0, r0;"                                  \
         "blne              mcount_internal;"                         \
         "ldmia      sp!, {r0, r1, r2, r3}");                  \

Definition at line 53 of file machine-gmon.h.

Function Documentation

void _mcount ( void  )
static void mcount_internal ( u_long  frompc,
u_long  selfpc 
) [static]