Commit 4e277d0d authored by Rob Herring's avatar Rob Herring Committed by Arnaldo Carvalho de Melo

perf tests: Consolidate test__arch_unwind_sample declaration

There's no reason for making the test__arch_unwind_sample declaration per
arch. Currently that's done 2 different ways either with a declaration in
arch-tests.h or with an arch define. Unify all this with an unconditional
declaration in tests.h.
Signed-off-by: default avatarRob Herring <robh@kernel.org>
Acked-by: default avatarJiri Olsa <jolsa@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: John Garry <john.garry@huawei.com>
Cc: Leo Yan <leo.yan@linaro.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
Cc: Matt Fleming <matt.fleming@intel.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Will Deacon <will@kernel.org>
Cc: linux-arm-kernel@lists.infradead.org
Cc: masayoshi mizuma <msys.mizuma@gmail.com>
Link: http://lore.kernel.org/lkml/20210513174614.2242210-1-robh@kernel.orgSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent efb0b232
...@@ -2,11 +2,6 @@ ...@@ -2,11 +2,6 @@
#ifndef ARCH_TESTS_H #ifndef ARCH_TESTS_H
#define ARCH_TESTS_H #define ARCH_TESTS_H
#ifdef HAVE_DWARF_UNWIND_SUPPORT
struct thread;
struct perf_sample;
#endif
extern struct test arch_tests[]; extern struct test arch_tests[];
#endif #endif
...@@ -2,11 +2,6 @@ ...@@ -2,11 +2,6 @@
#ifndef ARCH_TESTS_H #ifndef ARCH_TESTS_H
#define ARCH_TESTS_H #define ARCH_TESTS_H
#ifdef HAVE_DWARF_UNWIND_SUPPORT
struct thread;
struct perf_sample;
#endif
extern struct test arch_tests[]; extern struct test arch_tests[];
#endif #endif
...@@ -2,13 +2,6 @@ ...@@ -2,13 +2,6 @@
#ifndef ARCH_TESTS_H #ifndef ARCH_TESTS_H
#define ARCH_TESTS_H #define ARCH_TESTS_H
#ifdef HAVE_DWARF_UNWIND_SUPPORT
struct thread;
struct perf_sample;
int test__arch_unwind_sample(struct perf_sample *sample,
struct thread *thread);
#endif
extern struct test arch_tests[]; extern struct test arch_tests[];
#endif #endif
...@@ -7,7 +7,6 @@ ...@@ -7,7 +7,6 @@
#include "event.h" #include "event.h"
#include "debug.h" #include "debug.h"
#include "tests/tests.h" #include "tests/tests.h"
#include "arch-tests.h"
#define STACK_SIZE 8192 #define STACK_SIZE 8192
......
...@@ -12,13 +12,6 @@ int test__intel_pt_pkt_decoder(struct test *test, int subtest); ...@@ -12,13 +12,6 @@ int test__intel_pt_pkt_decoder(struct test *test, int subtest);
int test__bp_modify(struct test *test, int subtest); int test__bp_modify(struct test *test, int subtest);
int test__x86_sample_parsing(struct test *test, int subtest); int test__x86_sample_parsing(struct test *test, int subtest);
#ifdef HAVE_DWARF_UNWIND_SUPPORT
struct thread;
struct perf_sample;
int test__arch_unwind_sample(struct perf_sample *sample,
struct thread *thread);
#endif
extern struct test arch_tests[]; extern struct test arch_tests[];
#endif #endif
...@@ -7,7 +7,6 @@ ...@@ -7,7 +7,6 @@
#include "event.h" #include "event.h"
#include "debug.h" #include "debug.h"
#include "tests/tests.h" #include "tests/tests.h"
#include "arch-tests.h"
#define STACK_SIZE 8192 #define STACK_SIZE 8192
......
...@@ -17,10 +17,6 @@ ...@@ -17,10 +17,6 @@
#include "callchain.h" #include "callchain.h"
#include "util/synthetic-events.h" #include "util/synthetic-events.h"
#if defined (__x86_64__) || defined (__i386__) || defined (__powerpc__)
#include "arch-tests.h"
#endif
/* For bsearch. We try to unwind functions in shared object. */ /* For bsearch. We try to unwind functions in shared object. */
#include <stdlib.h> #include <stdlib.h>
......
...@@ -133,14 +133,12 @@ bool test__bp_account_is_supported(void); ...@@ -133,14 +133,12 @@ bool test__bp_account_is_supported(void);
bool test__wp_is_supported(void); bool test__wp_is_supported(void);
bool test__tsc_is_supported(void); bool test__tsc_is_supported(void);
#if defined(__arm__) || defined(__aarch64__)
#ifdef HAVE_DWARF_UNWIND_SUPPORT #ifdef HAVE_DWARF_UNWIND_SUPPORT
struct thread; struct thread;
struct perf_sample; struct perf_sample;
int test__arch_unwind_sample(struct perf_sample *sample, int test__arch_unwind_sample(struct perf_sample *sample,
struct thread *thread); struct thread *thread);
#endif #endif
#endif
#if defined(__arm__) #if defined(__arm__)
int test__vectors_page(struct test *test, int subtest); int test__vectors_page(struct test *test, int subtest);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment