From: Michael Cree <mcree@orcon.net.nz>
To: Matt Turner <mattst88@gmail.com>
Cc: linux-kernel@vger.kernel.org, linux-alpha@vger.kernel.org,
Richard Henderson <rth@twiddle.net>,
Ivan Kokshaysky <ink@jurassic.park.msu.ru>,
Peter Zijlstra <a.p.zijlstra@chello.nl>,
Paul Mackerras <paulus@samba.org>, Ingo Molnar <mingo@elte.hu>
Subject: Re: [PATCH] [alpha] Add minimal support for software performance events.
Date: Tue, 01 Dec 2009 22:31:31 +1300 [thread overview]
Message-ID: <4B14E273.70207@orcon.net.nz> (raw)
In-Reply-To: <b4198de60911302030v504abfb3g805da2d0b9b7ffac@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 532 bytes --]
On 01/12/09 17:30, Matt Turner wrote:
> Please take a look at the attached patch and let me know if it's what
> you want pushed. I wasn't sure if the last hunk (the memory barriers)
> needed to be included or had already been picked up.
All the tools/perf stuff, including the memory barriers, have been
picked up by linux-tip. Updated patch with the arch/alpha bits only
attached.
The patch should apply cleanly on top of the "alpha: Wire up missing/new
syscalls" patch which I see you have already applied.
Cheers
Michael.
[-- Attachment #2: 0001-alpha-Add-minimal-support-for-software-performance.patch --]
[-- Type: text/x-diff, Size: 2498 bytes --]
From 2c22c2a528d5c89f52d77b0d7a49c12865f82ecc Mon Sep 17 00:00:00 2001
From: Michael Cree <mcree@orcon.net.nz>
Date: Tue, 1 Dec 2009 22:15:17 +1300
Subject: [PATCH] alpha: Add minimal support for software performance events.
Enable configuration of the perf event option, add the perf_event_open
syscall, and include a minimal architecture specific asm/perf_event.h
header file.
Signed-off-by: Michael Cree <mcree@orcon.net.nz>
---
arch/alpha/Kconfig | 1 +
arch/alpha/include/asm/perf_event.h | 9 +++++++++
arch/alpha/include/asm/unistd.h | 3 ++-
arch/alpha/kernel/systbls.S | 1 +
4 files changed, 13 insertions(+), 1 deletions(-)
create mode 100644 arch/alpha/include/asm/perf_event.h
diff --git a/arch/alpha/Kconfig b/arch/alpha/Kconfig
index 4434481..bd7261e 100644
--- a/arch/alpha/Kconfig
+++ b/arch/alpha/Kconfig
@@ -9,6 +9,7 @@ config ALPHA
select HAVE_IDE
select HAVE_OPROFILE
select HAVE_SYSCALL_WRAPPERS
+ select HAVE_PERF_EVENTS
help
The Alpha is a 64-bit general-purpose processor designed and
marketed by the Digital Equipment Corporation of blessed memory,
diff --git a/arch/alpha/include/asm/perf_event.h b/arch/alpha/include/asm/perf_event.h
new file mode 100644
index 0000000..3bef852
--- /dev/null
+++ b/arch/alpha/include/asm/perf_event.h
@@ -0,0 +1,9 @@
+#ifndef __ASM_ALPHA_PERF_EVENT_H
+#define __ASM_ALPHA_PERF_EVENT_H
+
+/* Alpha only supports software events through this interface. */
+static inline void set_perf_event_pending(void) { }
+
+#define PERF_EVENT_INDEX_OFFSET 0
+
+#endif /* __ASM_ALPHA_PERF_EVENT_H */
diff --git a/arch/alpha/include/asm/unistd.h b/arch/alpha/include/asm/unistd.h
index 17f72b7..414de17 100644
--- a/arch/alpha/include/asm/unistd.h
+++ b/arch/alpha/include/asm/unistd.h
@@ -447,10 +447,11 @@
#define __NR_preadv 489
#define __NR_pwritev 490
#define __NR_rt_tgsigqueueinfo 491
+#define __NR_perf_event_open 492
#ifdef __KERNEL__
-#define NR_SYSCALLS 492
+#define NR_SYSCALLS 493
#define __ARCH_WANT_IPC_PARSE_VERSION
#define __ARCH_WANT_OLD_READDIR
diff --git a/arch/alpha/kernel/systbls.S b/arch/alpha/kernel/systbls.S
index 78199b9..63c78e4 100644
--- a/arch/alpha/kernel/systbls.S
+++ b/arch/alpha/kernel/systbls.S
@@ -510,6 +510,7 @@ sys_call_table:
.quad sys_preadv
.quad sys_pwritev /* 490 */
.quad sys_rt_tgsigqueueinfo
+ .quad sys_perf_event_open
.size sys_call_table, . - sys_call_table
.type sys_call_table, @object
--
1.5.6.5
WARNING: multiple messages have this Message-ID (diff)
From: Michael Cree <mcree@orcon.net.nz>
To: Matt Turner <mattst88@gmail.com>
Cc: linux-kernel@vger.kernel.org, linux-alpha@vger.kernel.org,
Richard Henderson <rth@twiddle.net>,
Ivan Kokshaysky <ink@jurassic.park.msu.ru>,
Peter Zijlstra <a.p.zijlstra@chello.nl>,
Paul Mackerras <paulus@samba.org>, Ingo Molnar <mingo@elte.hu>
Subject: Re: [PATCH] [alpha] Add minimal support for software performance events.
Date: Tue, 01 Dec 2009 22:31:31 +1300 [thread overview]
Message-ID: <4B14E273.70207@orcon.net.nz> (raw)
In-Reply-To: <b4198de60911302030v504abfb3g805da2d0b9b7ffac@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 532 bytes --]
On 01/12/09 17:30, Matt Turner wrote:
> Please take a look at the attached patch and let me know if it's what
> you want pushed. I wasn't sure if the last hunk (the memory barriers)
> needed to be included or had already been picked up.
All the tools/perf stuff, including the memory barriers, have been
picked up by linux-tip. Updated patch with the arch/alpha bits only
attached.
The patch should apply cleanly on top of the "alpha: Wire up missing/new
syscalls" patch which I see you have already applied.
Cheers
Michael.
[-- Attachment #2: 0001-alpha-Add-minimal-support-for-software-performance.patch --]
[-- Type: text/x-diff, Size: 2499 bytes --]
>From 2c22c2a528d5c89f52d77b0d7a49c12865f82ecc Mon Sep 17 00:00:00 2001
From: Michael Cree <mcree@orcon.net.nz>
Date: Tue, 1 Dec 2009 22:15:17 +1300
Subject: [PATCH] alpha: Add minimal support for software performance events.
Enable configuration of the perf event option, add the perf_event_open
syscall, and include a minimal architecture specific asm/perf_event.h
header file.
Signed-off-by: Michael Cree <mcree@orcon.net.nz>
---
arch/alpha/Kconfig | 1 +
arch/alpha/include/asm/perf_event.h | 9 +++++++++
arch/alpha/include/asm/unistd.h | 3 ++-
arch/alpha/kernel/systbls.S | 1 +
4 files changed, 13 insertions(+), 1 deletions(-)
create mode 100644 arch/alpha/include/asm/perf_event.h
diff --git a/arch/alpha/Kconfig b/arch/alpha/Kconfig
index 4434481..bd7261e 100644
--- a/arch/alpha/Kconfig
+++ b/arch/alpha/Kconfig
@@ -9,6 +9,7 @@ config ALPHA
select HAVE_IDE
select HAVE_OPROFILE
select HAVE_SYSCALL_WRAPPERS
+ select HAVE_PERF_EVENTS
help
The Alpha is a 64-bit general-purpose processor designed and
marketed by the Digital Equipment Corporation of blessed memory,
diff --git a/arch/alpha/include/asm/perf_event.h b/arch/alpha/include/asm/perf_event.h
new file mode 100644
index 0000000..3bef852
--- /dev/null
+++ b/arch/alpha/include/asm/perf_event.h
@@ -0,0 +1,9 @@
+#ifndef __ASM_ALPHA_PERF_EVENT_H
+#define __ASM_ALPHA_PERF_EVENT_H
+
+/* Alpha only supports software events through this interface. */
+static inline void set_perf_event_pending(void) { }
+
+#define PERF_EVENT_INDEX_OFFSET 0
+
+#endif /* __ASM_ALPHA_PERF_EVENT_H */
diff --git a/arch/alpha/include/asm/unistd.h b/arch/alpha/include/asm/unistd.h
index 17f72b7..414de17 100644
--- a/arch/alpha/include/asm/unistd.h
+++ b/arch/alpha/include/asm/unistd.h
@@ -447,10 +447,11 @@
#define __NR_preadv 489
#define __NR_pwritev 490
#define __NR_rt_tgsigqueueinfo 491
+#define __NR_perf_event_open 492
#ifdef __KERNEL__
-#define NR_SYSCALLS 492
+#define NR_SYSCALLS 493
#define __ARCH_WANT_IPC_PARSE_VERSION
#define __ARCH_WANT_OLD_READDIR
diff --git a/arch/alpha/kernel/systbls.S b/arch/alpha/kernel/systbls.S
index 78199b9..63c78e4 100644
--- a/arch/alpha/kernel/systbls.S
+++ b/arch/alpha/kernel/systbls.S
@@ -510,6 +510,7 @@ sys_call_table:
.quad sys_preadv
.quad sys_pwritev /* 490 */
.quad sys_rt_tgsigqueueinfo
+ .quad sys_perf_event_open
.size sys_call_table, . - sys_call_table
.type sys_call_table, @object
--
1.5.6.5
next prev parent reply other threads:[~2009-12-01 9:31 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-26 8:32 [PATCH] [alpha] Add minimal support for software performance events Michael Cree
2009-10-26 8:48 ` Ingo Molnar
2009-10-27 8:09 ` Michael Cree
2009-10-27 8:09 ` Michael Cree
2009-11-08 12:22 ` Ingo Molnar
2009-11-08 12:27 ` Ingo Molnar
2009-11-11 7:43 ` Michael Cree
2009-11-11 7:43 ` Michael Cree
2009-11-11 7:48 ` [tip:perf/core] perf tools: Test -fstack-protector-all compiler option for inclusion in CFLAGS tip-bot for Michael Cree
2009-10-27 18:29 ` [PATCH] [alpha] Add minimal support for software performance events Matt Turner
2009-10-28 20:56 ` Sam Ravnborg
2009-10-26 11:38 ` [tip:perf/core] perf tools, Alpha: Add Alpha support to perf.h tip-bot for Michael Cree
2009-10-26 12:08 ` Pekka Enberg
2009-10-26 12:22 ` Ingo Molnar
2009-10-28 20:58 ` Sam Ravnborg
2009-11-10 21:21 ` Peter Zijlstra
2009-12-01 4:30 ` [PATCH] [alpha] Add minimal support for software performance events Matt Turner
2009-12-01 9:31 ` Michael Cree [this message]
2009-12-01 9:31 ` Michael Cree
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4B14E273.70207@orcon.net.nz \
--to=mcree@orcon.net.nz \
--cc=a.p.zijlstra@chello.nl \
--cc=ink@jurassic.park.msu.ru \
--cc=linux-alpha@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mattst88@gmail.com \
--cc=mingo@elte.hu \
--cc=paulus@samba.org \
--cc=rth@twiddle.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.