mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-26 22:24:09 +08:00
0d37aa34f8
The new --uid command line option will show only the tasks for a given user, using the proc interface to figure out the existing tasks. Kernel work is needed to close races at startup, but this should already be useful in many use cases. Cc: David Ahern <dsahern@gmail.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Mike Galbraith <efault@gmx.de> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Stephane Eranian <eranian@google.com> Link: http://lkml.kernel.org/n/tip-bdnspm000gw2l984a2t53o8z@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
21 lines
530 B
C
21 lines
530 B
C
#ifndef __PERF_THREAD_MAP_H
|
|
#define __PERF_THREAD_MAP_H
|
|
|
|
#include <sys/types.h>
|
|
#include <stdio.h>
|
|
|
|
struct thread_map {
|
|
int nr;
|
|
int map[];
|
|
};
|
|
|
|
struct thread_map *thread_map__new_by_pid(pid_t pid);
|
|
struct thread_map *thread_map__new_by_tid(pid_t tid);
|
|
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);
|
|
void thread_map__delete(struct thread_map *threads);
|
|
|
|
size_t thread_map__fprintf(struct thread_map *threads, FILE *fp);
|
|
|
|
#endif /* __PERF_THREAD_MAP_H */
|