Linux Perf
cloexec.c File Reference
#include <errno.h>
#include <sched.h>
#include "util.h"
#include "../perf.h"
#include "cloexec.h"
#include "asm/bug.h"
#include "debug.h"
#include <unistd.h>
#include <asm/unistd.h>
#include <sys/syscall.h>
Include dependency graph for cloexec.c:

Go to the source code of this file.

Functions

int __weak sched_getcpu (void)
 
static int perf_flag_probe (void)
 
unsigned long perf_event_open_cloexec_flag (void)
 

Variables

static unsigned long flag = PERF_FLAG_FD_CLOEXEC
 

Function Documentation

◆ perf_event_open_cloexec_flag()

unsigned long perf_event_open_cloexec_flag ( void  )

Definition at line 93 of file cloexec.c.

Here is the call graph for this function:

◆ perf_flag_probe()

static int perf_flag_probe ( void  )
static

Definition at line 28 of file cloexec.c.

Here is the call graph for this function:

◆ sched_getcpu()

int __weak sched_getcpu ( void  )

Definition at line 15 of file cloexec.c.

Variable Documentation

◆ flag

unsigned long flag = PERF_FLAG_FD_CLOEXEC
static

Definition at line 13 of file cloexec.c.