Linux Perf
bp_signal_overflow.c File Reference
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <sys/ioctl.h>
#include <time.h>
#include <fcntl.h>
#include <signal.h>
#include <sys/mman.h>
#include <linux/compiler.h>
#include <linux/hw_breakpoint.h>
#include "tests.h"
#include "debug.h"
#include "perf.h"
#include "cloexec.h"
Include dependency graph for bp_signal_overflow.c:

Go to the source code of this file.

Macros

#define __SANE_USERSPACE_TYPES__
 
#define EXECUTIONS   10000
 
#define THRESHOLD   100
 

Functions

static noinline int test_function (void)
 
static void sig_handler (int signum __maybe_unused, siginfo_t *oh __maybe_unused, void *uc __maybe_unused)
 
static long long bp_count (int fd)
 
int test__bp_signal_overflow (struct test *test __maybe_unused, int subtest __maybe_unused)
 

Variables

static int overflows
 

Macro Definition Documentation

◆ __SANE_USERSPACE_TYPES__

#define __SANE_USERSPACE_TYPES__

Definition at line 11 of file bp_signal_overflow.c.

◆ EXECUTIONS

#define EXECUTIONS   10000

Definition at line 58 of file bp_signal_overflow.c.

◆ THRESHOLD

#define THRESHOLD   100

Definition at line 59 of file bp_signal_overflow.c.

Function Documentation

◆ bp_count()

static long long bp_count ( int  fd)
static

Definition at line 44 of file bp_signal_overflow.c.

◆ sig_handler()

static void sig_handler ( int signum  __maybe_unused,
siginfo_t *oh  __maybe_unused,
void *uc  __maybe_unused 
)
static

Definition at line 37 of file bp_signal_overflow.c.

◆ test__bp_signal_overflow()

int test__bp_signal_overflow ( struct test *test  __maybe_unused,
int subtest  __maybe_unused 
)

Definition at line 61 of file bp_signal_overflow.c.

Here is the call graph for this function:

◆ test_function()

static noinline int test_function ( void  )
static

Definition at line 32 of file bp_signal_overflow.c.

Here is the call graph for this function:

Variable Documentation

◆ overflows

int overflows
static

Definition at line 30 of file bp_signal_overflow.c.