Linux Perf
target.c File Reference
#include "target.h"
#include "util.h"
#include "debug.h"
#include <pwd.h>
#include <string.h>
Include dependency graph for target.c:

Go to the source code of this file.

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)
 

Variables

static const char * target__error_str []
 

Function Documentation

◆ 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__validate()

enum target_errno target__validate ( struct target target)

Definition at line 17 of file target.c.

Variable Documentation

◆ target__error_str

const char* target__error_str[]
static
Initial value:
= {
"PID/TID switch overriding CPU",
"PID/TID switch overriding UID",
"UID switch overriding CPU",
"PID/TID switch overriding SYSTEM",
"UID switch overriding SYSTEM",
"SYSTEM/CPU switch overriding PER-THREAD",
"Invalid User: %s",
"Problems obtaining information for user %s",
}

Definition at line 105 of file target.c.