Move libperf from its current location under tools/perf to a separate directory under tools/lib/. Also change various paths (mainly includes) to reflect the libperf move to a separate directory and add a new directory under MANIFEST. Signed-off-by: Jiri Olsa <jolsa@kernel.org> Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Michael Petlan <mpetlan@redhat.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Link: http://lore.kernel.org/lkml/20191206210612.8676-2-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
21 lines
763 B
C
21 lines
763 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef __LIBPERF_THREADMAP_H
|
|
#define __LIBPERF_THREADMAP_H
|
|
|
|
#include <perf/core.h>
|
|
#include <sys/types.h>
|
|
|
|
struct perf_thread_map;
|
|
|
|
LIBPERF_API struct perf_thread_map *perf_thread_map__new_dummy(void);
|
|
|
|
LIBPERF_API void perf_thread_map__set_pid(struct perf_thread_map *map, int thread, pid_t pid);
|
|
LIBPERF_API char *perf_thread_map__comm(struct perf_thread_map *map, int thread);
|
|
LIBPERF_API int perf_thread_map__nr(struct perf_thread_map *threads);
|
|
LIBPERF_API pid_t perf_thread_map__pid(struct perf_thread_map *map, int thread);
|
|
|
|
LIBPERF_API struct perf_thread_map *perf_thread_map__get(struct perf_thread_map *map);
|
|
LIBPERF_API void perf_thread_map__put(struct perf_thread_map *map);
|
|
|
|
#endif /* __LIBPERF_THREADMAP_H */
|