Linux Perf
target.h File Reference
#include <stdbool.h>
#include <sys/types.h>
Include dependency graph for target.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  target
 

Enumerations

enum  target_errno {
  TARGET_ERRNO__SUCCESS = 0, __TARGET_ERRNO__START = -10000, TARGET_ERRNO__PID_OVERRIDE_CPU = __TARGET_ERRNO__START, TARGET_ERRNO__PID_OVERRIDE_UID,
  TARGET_ERRNO__UID_OVERRIDE_CPU, TARGET_ERRNO__PID_OVERRIDE_SYSTEM, TARGET_ERRNO__UID_OVERRIDE_SYSTEM, TARGET_ERRNO__SYSTEM_OVERRIDE_THREAD,
  TARGET_ERRNO__INVALID_UID, TARGET_ERRNO__USER_NOT_FOUND, __TARGET_ERRNO__END
}
 

Functions

enum target_errno target__validate (struct target *target)
 
enum target_errno target__parse_uid (struct target *target)
 
int target__strerror (struct target *target, int errnum, char *buf, size_t buflen)
 
static bool target__has_task (struct target *target)
 
static bool target__has_cpu (struct target *target)
 
static bool target__none (struct target *target)
 
static bool target__has_per_thread (struct target *target)
 
static bool target__uses_dummy_map (struct target *target)
 

Enumeration Type Documentation

◆ target_errno

Enumerator
TARGET_ERRNO__SUCCESS 
__TARGET_ERRNO__START 
TARGET_ERRNO__PID_OVERRIDE_CPU 
TARGET_ERRNO__PID_OVERRIDE_UID 
TARGET_ERRNO__UID_OVERRIDE_CPU 
TARGET_ERRNO__PID_OVERRIDE_SYSTEM 
TARGET_ERRNO__UID_OVERRIDE_SYSTEM 
TARGET_ERRNO__SYSTEM_OVERRIDE_THREAD 
TARGET_ERRNO__INVALID_UID 
TARGET_ERRNO__USER_NOT_FOUND 
__TARGET_ERRNO__END 

Definition at line 20 of file target.h.

Function Documentation

◆ target__has_cpu()

static bool target__has_cpu ( struct target target)
inlinestatic

Definition at line 57 of file target.h.

◆ target__has_per_thread()

static bool target__has_per_thread ( struct target target)
inlinestatic

Definition at line 67 of file target.h.

◆ target__has_task()

static bool target__has_task ( struct target target)
inlinestatic

Definition at line 52 of file target.h.

◆ target__none()

static bool target__none ( struct target target)
inlinestatic

Definition at line 62 of file target.h.

Here is the call graph for this function:

◆ target__parse_uid()

enum target_errno target__parse_uid ( struct target target)

Definition at line 69 of file target.c.

Here is the call graph for this function:

◆ target__strerror()

int target__strerror ( struct target target,
int  errnum,
char *  buf,
size_t  buflen 
)

Definition at line 116 of file target.c.

◆ target__uses_dummy_map()

static bool target__uses_dummy_map ( struct target target)
inlinestatic

Definition at line 72 of file target.h.

Here is the call graph for this function:

◆ target__validate()

enum target_errno target__validate ( struct target target)

Definition at line 17 of file target.c.