summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/metag/bits/profil-counter.h
blob: 66ba78141e10ed63e684c0814e55ba27b296b934 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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);
}