summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/metag/bits/profil-counter.h
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/metag/bits/profil-counter.h')
-rw-r--r--libc/sysdeps/linux/metag/bits/profil-counter.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/metag/bits/profil-counter.h b/libc/sysdeps/linux/metag/bits/profil-counter.h
new file mode 100644
index 000000000..66ba78141
--- /dev/null
+++ b/libc/sysdeps/linux/metag/bits/profil-counter.h
@@ -0,0 +1,17 @@
+/*
+ * Low-level statistical profiling support function. Linux/Meta version.
+ *
+ * Copyright (C) 2013, Imagination Technologies Ltd.
+ *
+ * Licensed under LGPL v2.1 or later, see the file COPYING.LIB in this tarball.
+ *
+ * Based on the SH version from the GNU C Library.
+ */
+
+#include <signal.h>
+
+static void
+profil_counter (int signo, struct sigcontext sc)
+{
+ profil_count (sc.cbuf.ctx.CurrPC);
+}