profil-counter.h 398 B

1234567891011121314151617
  1. /*
  2. * Low-level statistical profiling support function. Linux/Meta version.
  3. *
  4. * Copyright (C) 2013, Imagination Technologies Ltd.
  5. *
  6. * Licensed under LGPL v2.1 or later, see the file COPYING.LIB in this tarball.
  7. *
  8. * Based on the SH version from the GNU C Library.
  9. */
  10. #include <signal.h>
  11. static void
  12. profil_counter (int signo, struct sigcontext sc)
  13. {
  14. profil_count (sc.cbuf.ctx.CurrPC);
  15. }