mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-14 21:01:29 +00:00
8b40f521cf
There was a colorful mix of header guards - standardize them. Signed-off-by: John Kacur <jkacur@redhat.com> LKML-Reference: <alpine.LFD.2.00.0909241756530.11383@localhost.localdomain> Signed-off-by: Ingo Molnar <mingo@elte.hu>
28 lines
785 B
C
28 lines
785 B
C
#ifndef __PERF_THREAD_H
|
|
#define __PERF_THREAD_H
|
|
|
|
#include <linux/rbtree.h>
|
|
#include <linux/list.h>
|
|
#include <unistd.h>
|
|
#include "symbol.h"
|
|
|
|
struct thread {
|
|
struct rb_node rb_node;
|
|
struct list_head maps;
|
|
pid_t pid;
|
|
char shortname[3];
|
|
char *comm;
|
|
};
|
|
|
|
int thread__set_comm(struct thread *self, const char *comm);
|
|
struct thread *
|
|
threads__findnew(pid_t pid, struct rb_root *threads, struct thread **last_match);
|
|
struct thread *
|
|
register_idle_thread(struct rb_root *threads, struct thread **last_match);
|
|
void thread__insert_map(struct thread *self, struct map *map);
|
|
int thread__fork(struct thread *self, struct thread *parent);
|
|
struct map *thread__find_map(struct thread *self, u64 ip);
|
|
size_t threads__fprintf(FILE *fp, struct rb_root *threads);
|
|
|
|
#endif /* __PERF_THREAD_H */
|