2019-10-19 08:05:27

by Leo Yan

[permalink] [raw]
Subject: [PATCH v1 1/3] perf tests: Remove needless headers for bp_account

A few headers are not needed and were introduced by copying from other
test file. This patch removes the needless headers for the breakpoint
accounting testing.

Signed-off-by: Leo Yan <[email protected]>
---
tools/perf/tests/bp_account.c | 4 ----
1 file changed, 4 deletions(-)

diff --git a/tools/perf/tests/bp_account.c b/tools/perf/tests/bp_account.c
index 016bba2c142d..52ff7a462670 100644
--- a/tools/perf/tests/bp_account.c
+++ b/tools/perf/tests/bp_account.c
@@ -10,11 +10,7 @@
#include <unistd.h>
#include <string.h>
#include <sys/ioctl.h>
-#include <time.h>
#include <fcntl.h>
-#include <signal.h>
-#include <sys/mman.h>
-#include <linux/compiler.h>
#include <linux/hw_breakpoint.h>

#include "tests.h"
--
2.17.1


2019-10-19 08:57:51

by Arnaldo Carvalho de Melo

[permalink] [raw]
Subject: Re: [PATCH v1 1/3] perf tests: Remove needless headers for bp_account

Em Fri, Oct 18, 2019 at 04:55:29PM +0800, Leo Yan escreveu:
> A few headers are not needed and were introduced by copying from other
> test file. This patch removes the needless headers for the breakpoint
> accounting testing.

Thanks, applied.

> Signed-off-by: Leo Yan <[email protected]>
> ---
> tools/perf/tests/bp_account.c | 4 ----
> 1 file changed, 4 deletions(-)
>
> diff --git a/tools/perf/tests/bp_account.c b/tools/perf/tests/bp_account.c
> index 016bba2c142d..52ff7a462670 100644
> --- a/tools/perf/tests/bp_account.c
> +++ b/tools/perf/tests/bp_account.c
> @@ -10,11 +10,7 @@
> #include <unistd.h>
> #include <string.h>
> #include <sys/ioctl.h>
> -#include <time.h>
> #include <fcntl.h>
> -#include <signal.h>
> -#include <sys/mman.h>
> -#include <linux/compiler.h>
> #include <linux/hw_breakpoint.h>
>
> #include "tests.h"
> --
> 2.17.1

--

- Arnaldo

Subject: [tip: perf/core] perf tests: Remove needless headers for bp_account

The following commit has been merged into the perf/core branch of tip:

Commit-ID: 12d795637ba169650ea10ad6babcc5425255944a
Gitweb: https://git.kernel.org/tip/12d795637ba169650ea10ad6babcc5425255944a
Author: Leo Yan <[email protected]>
AuthorDate: Fri, 18 Oct 2019 16:55:29 +08:00
Committer: Arnaldo Carvalho de Melo <[email protected]>
CommitterDate: Sat, 19 Oct 2019 15:35:01 -03:00

perf tests: Remove needless headers for bp_account

A few headers are not needed and were introduced by copying from other
test file. This patch removes the needless headers for the breakpoint
accounting testing.

Signed-off-by: Leo Yan <[email protected]>
Cc: Adrian Hunter <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Brajeswar Ghosh <[email protected]>
Cc: Florian Fainelli <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Michael Petlan <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Song Liu <[email protected]>
Cc: Souptick Joarder <[email protected]>
Cc: Will Deacon <[email protected]>
Link: http://lore.kernel.org/lkml/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
---
tools/perf/tests/bp_account.c | 4 ----
1 file changed, 4 deletions(-)

diff --git a/tools/perf/tests/bp_account.c b/tools/perf/tests/bp_account.c
index 016bba2..52ff7a4 100644
--- a/tools/perf/tests/bp_account.c
+++ b/tools/perf/tests/bp_account.c
@@ -10,11 +10,7 @@
#include <unistd.h>
#include <string.h>
#include <sys/ioctl.h>
-#include <time.h>
#include <fcntl.h>
-#include <signal.h>
-#include <sys/mman.h>
-#include <linux/compiler.h>
#include <linux/hw_breakpoint.h>

#include "tests.h"