Back to index

glibc  2.9
profil-counter.h File Reference
#include <signal.h>

Go to the source code of this file.


static void profil_counter (int signo, int _a2, int _a3, int _a4, struct sigcontext sc)

Function Documentation

static void profil_counter ( int  signo,
int  _a2,
int  _a3,
int  _a4,
struct sigcontext  sc 
) [static]

Definition at line 23 of file profil-counter.h.

  void *pc;
  pc = (void *) sc.sc_pc;
  profil_count (pc);

  /* This is a hack to prevent the compiler from implementing the
     above function call as a sibcall.  The sibcall would overwrite
     the signal context.  */
  asm volatile ("");