#include <dirent.h>
#include <errno.h>
#include <limits.h>
#include <stdbool.h>
#include <stdlib.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include "string2.h"
#include "strlist.h"
#include <string.h>
#include <api/fs/fs.h>
#include "asm/bug.h"
#include "thread_map.h"
#include "util.h"
#include "debug.h"
#include "event.h"
Go to the source code of this file.
|
static int | filter (const struct dirent *dir) |
|
static void | thread_map__reset (struct thread_map *map, int start, int nr) |
|
static struct thread_map * | thread_map__realloc (struct thread_map *map, int nr) |
|
struct thread_map * | thread_map__new_by_pid (pid_t pid) |
|
struct thread_map * | thread_map__new_by_tid (pid_t tid) |
|
static struct thread_map * | __thread_map__new_all_cpus (uid_t uid) |
|
struct thread_map * | thread_map__new_all_cpus (void) |
|
struct thread_map * | thread_map__new_by_uid (uid_t uid) |
|
struct thread_map * | thread_map__new (pid_t pid, pid_t tid, uid_t uid) |
|
static struct thread_map * | thread_map__new_by_pid_str (const char *pid_str) |
|
struct thread_map * | thread_map__new_dummy (void) |
|
struct thread_map * | thread_map__new_by_tid_str (const char *tid_str) |
|
struct thread_map * | thread_map__new_str (const char *pid, const char *tid, uid_t uid, bool all_threads) |
|
static void | thread_map__delete (struct thread_map *threads) |
|
struct thread_map * | thread_map__get (struct thread_map *map) |
|
void | thread_map__put (struct thread_map *map) |
|
size_t | thread_map__fprintf (struct thread_map *threads, FILE *fp) |
|
static int | get_comm (char **comm, pid_t pid) |
|
static void | comm_init (struct thread_map *map, int i) |
|
void | thread_map__read_comms (struct thread_map *threads) |
|
static void | thread_map__copy_event (struct thread_map *threads, struct thread_map_event *event) |
|
struct thread_map * | thread_map__new_event (struct thread_map_event *event) |
|
bool | thread_map__has (struct thread_map *threads, pid_t pid) |
|
int | thread_map__remove (struct thread_map *threads, int idx) |
|
◆ thread_map__alloc
◆ __thread_map__new_all_cpus()
static struct thread_map* __thread_map__new_all_cpus |
( |
uid_t |
uid | ) |
|
|
static |
◆ comm_init()
static void comm_init |
( |
struct thread_map * |
map, |
|
|
int |
i |
|
) |
| |
|
static |
◆ filter()
static int filter |
( |
const struct dirent * |
dir | ) |
|
|
static |
◆ get_comm()
static int get_comm |
( |
char ** |
comm, |
|
|
pid_t |
pid |
|
) |
| |
|
static |
◆ thread_map__copy_event()
◆ thread_map__delete()
static void thread_map__delete |
( |
struct thread_map * |
threads | ) |
|
|
static |
◆ thread_map__fprintf()
size_t thread_map__fprintf |
( |
struct thread_map * |
threads, |
|
|
FILE * |
fp |
|
) |
| |
◆ thread_map__get()
◆ thread_map__has()
bool thread_map__has |
( |
struct thread_map * |
threads, |
|
|
pid_t |
pid |
|
) |
| |
◆ thread_map__new()
struct thread_map* thread_map__new |
( |
pid_t |
pid, |
|
|
pid_t |
tid, |
|
|
uid_t |
uid |
|
) |
| |
◆ thread_map__new_all_cpus()
struct thread_map* thread_map__new_all_cpus |
( |
void |
| ) |
|
◆ thread_map__new_by_pid()
struct thread_map* thread_map__new_by_pid |
( |
pid_t |
pid | ) |
|
◆ thread_map__new_by_pid_str()
static struct thread_map* thread_map__new_by_pid_str |
( |
const char * |
pid_str | ) |
|
|
static |
◆ thread_map__new_by_tid()
struct thread_map* thread_map__new_by_tid |
( |
pid_t |
tid | ) |
|
◆ thread_map__new_by_tid_str()
struct thread_map* thread_map__new_by_tid_str |
( |
const char * |
tid_str | ) |
|
◆ thread_map__new_by_uid()
struct thread_map* thread_map__new_by_uid |
( |
uid_t |
uid | ) |
|
◆ thread_map__new_dummy()
◆ thread_map__new_event()
◆ thread_map__new_str()
struct thread_map* thread_map__new_str |
( |
const char * |
pid, |
|
|
const char * |
tid, |
|
|
uid_t |
uid, |
|
|
bool |
all_threads |
|
) |
| |
◆ thread_map__put()
◆ thread_map__read_comms()
void thread_map__read_comms |
( |
struct thread_map * |
threads | ) |
|
◆ thread_map__realloc()
◆ thread_map__remove()
int thread_map__remove |
( |
struct thread_map * |
threads, |
|
|
int |
idx |
|
) |
| |
◆ thread_map__reset()
static void thread_map__reset |
( |
struct thread_map * |
map, |
|
|
int |
start, |
|
|
int |
nr |
|
) |
| |
|
static |