Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Enumerations | Functions
target.h File Reference
#include <stdbool.h>
#include <sys/types.h>

Go to the source code of this file.

Data Structures

struct  perf_target
 

Enumerations

enum  perf_target_errno {
  PERF_ERRNO_TARGET__SUCCESS = 0, __PERF_ERRNO_TARGET__START = -10000, PERF_ERRNO_TARGET__PID_OVERRIDE_CPU = __PERF_ERRNO_TARGET__START, PERF_ERRNO_TARGET__PID_OVERRIDE_UID,
  PERF_ERRNO_TARGET__UID_OVERRIDE_CPU, PERF_ERRNO_TARGET__PID_OVERRIDE_SYSTEM, PERF_ERRNO_TARGET__UID_OVERRIDE_SYSTEM, PERF_ERRNO_TARGET__INVALID_UID,
  PERF_ERRNO_TARGET__USER_NOT_FOUND, __PERF_ERRNO_TARGET__END
}
 

Functions

enum perf_target_errno perf_target__validate (struct perf_target *target)
 
enum perf_target_errno perf_target__parse_uid (struct perf_target *target)
 
int perf_target__strerror (struct perf_target *target, int errnum, char *buf, size_t buflen)
 

Enumeration Type Documentation

Enumerator:
PERF_ERRNO_TARGET__SUCCESS 
__PERF_ERRNO_TARGET__START 
PERF_ERRNO_TARGET__PID_OVERRIDE_CPU 
PERF_ERRNO_TARGET__PID_OVERRIDE_UID 
PERF_ERRNO_TARGET__UID_OVERRIDE_CPU 
PERF_ERRNO_TARGET__PID_OVERRIDE_SYSTEM 
PERF_ERRNO_TARGET__UID_OVERRIDE_SYSTEM 
PERF_ERRNO_TARGET__INVALID_UID 
PERF_ERRNO_TARGET__USER_NOT_FOUND 
__PERF_ERRNO_TARGET__END 

Definition at line 17 of file target.h.

Function Documentation

enum perf_target_errno perf_target__parse_uid ( struct perf_target target)

Definition at line 61 of file target.c.

int perf_target__strerror ( struct perf_target target,
int  errnum,
char buf,
size_t  buflen 
)

Definition at line 107 of file target.c.

enum perf_target_errno perf_target__validate ( struct perf_target target)

Definition at line 16 of file target.c.