mirror of https://gitee.com/openkylin/linux.git
libperf: Add perf_evlist and perf_evsel structs
Add the perf_evlist and perf_evsel structs to libperf. It's added as a declarations into: include/perf/evlist.h include/perf/evsel.h which will be included by users. The definitions are added into: include/internal/evlist.h include/internal/evsel.h which is not to be included by users, but shared within perf and libperf. Signed-off-by: Jiri Olsa <jolsa@kernel.org> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Alexey Budankov <alexey.budankov@linux.intel.com> Cc: Andi Kleen <ak@linux.intel.com> Cc: Michael Petlan <mpetlan@redhat.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Link: http://lkml.kernel.org/r/20190721112506.12306-35-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
7836e52e51
commit
285a30c36d
|
@ -1,3 +1,5 @@
|
|||
libperf-y += core.o
|
||||
libperf-y += cpumap.o
|
||||
libperf-y += threadmap.o
|
||||
libperf-y += evsel.o
|
||||
libperf-y += evlist.o
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
// SPDX-License-Identifier: GPL-2.0
|
||||
#include <perf/evlist.h>
|
||||
#include <linux/list.h>
|
||||
#include <internal/evlist.h>
|
|
@ -0,0 +1,4 @@
|
|||
// SPDX-License-Identifier: GPL-2.0
|
||||
#include <perf/evsel.h>
|
||||
#include <linux/list.h>
|
||||
#include <internal/evsel.h>
|
|
@ -0,0 +1,9 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0 */
|
||||
#ifndef __LIBPERF_INTERNAL_EVLIST_H
|
||||
#define __LIBPERF_INTERNAL_EVLIST_H
|
||||
|
||||
struct perf_evlist {
|
||||
struct list_head entries;
|
||||
};
|
||||
|
||||
#endif /* __LIBPERF_INTERNAL_EVLIST_H */
|
|
@ -0,0 +1,9 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0 */
|
||||
#ifndef __LIBPERF_INTERNAL_EVSEL_H
|
||||
#define __LIBPERF_INTERNAL_EVSEL_H
|
||||
|
||||
struct perf_evsel {
|
||||
struct list_head node;
|
||||
};
|
||||
|
||||
#endif /* __LIBPERF_INTERNAL_EVSEL_H */
|
|
@ -0,0 +1,7 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0 */
|
||||
#ifndef __LIBPERF_EVLIST_H
|
||||
#define __LIBPERF_EVLIST_H
|
||||
|
||||
struct perf_evlist;
|
||||
|
||||
#endif /* __LIBPERF_EVLIST_H */
|
|
@ -0,0 +1,7 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0 */
|
||||
#ifndef __LIBPERF_EVSEL_H
|
||||
#define __LIBPERF_EVSEL_H
|
||||
|
||||
struct perf_evsel;
|
||||
|
||||
#endif /* __LIBPERF_EVSEL_H */
|
Loading…
Reference in New Issue