Back to index

glibc  2.9
profil-counter.h File Reference

Go to the source code of this file.


static void profil_counter (int signr, siginfo_t *si, struct sigcontext *scp)

Function Documentation

static void profil_counter ( int  signr,
siginfo_t *  si,
struct sigcontext scp 
) [static]

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

  unsigned long ip = scp->sc_ip & ~0X3ULL, slot = scp->sc_ip & 0x3ull;

  /* Note: Linux/ia64 encodes the slot number in bits 0 and 1.  We
     want to multiply the slot number by four so we can use bins of
     width 4 to get accurate instruction-level profiling.  */
  profil_count ((void *) (ip + 4*slot));

Here is the call graph for this function: