Back to index

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

Go to the source code of this file.

Defines

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

Functions

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

Define Documentation

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

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

#define MCOUNT
Value:
void __attribute__((__naked__)) __gnu_mcount_nc(void)                 \
{                                                              \
    asm ("push {r0, r1, r2, r3, lr}\n\t"                       \
        "bic r1, lr, #1\n\t"                                          \
        "ldr r0, [sp, #20]\n\t"                                \
        "bl mcount_internal\n\t"                               \
        "pop {r0, r1, r2, r3, ip, lr}\n\t"                            \
        "bx ip");                                              \
}                                                              \
OLD_MCOUNT

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

#define OLD_MCOUNT
Value:
void __attribute__((__naked__)) _mcount (void)                        \
{                                                              \
  __asm__("stmdb     sp!, {r0, r1, r2, r3, fp, lr};"                  \
         "movs              fp, fp;"                                  \
         "ldrne      r0, [fp, #-4];"                                  \
         "movnes     r1, lr;"                                  \
         "blne              mcount_internal;"                         \
         "ldmia      sp!, {r0, r1, r2, r3, fp, lr};"                  \
         "bx         lr");                                     \
}

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


Function Documentation

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