Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
12310e9c
Commit
12310e9c
authored
Jun 22, 2009
by
Martin Schwidefsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[S390] Enable tick based perf_counter on s390.
Signed-off-by:
Martin Schwidefsky
<
schwidefsky@de.ibm.com
>
parent
181d9522
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
0 deletions
+15
-0
arch/s390/Kconfig
arch/s390/Kconfig
+1
-0
arch/s390/include/asm/perf_counter.h
arch/s390/include/asm/perf_counter.h
+8
-0
tools/perf/perf.h
tools/perf/perf.h
+6
-0
No files found.
arch/s390/Kconfig
View file @
12310e9c
...
...
@@ -94,6 +94,7 @@ config S390
select HAVE_KVM if 64BIT
select HAVE_ARCH_TRACEHOOK
select INIT_ALL_POSSIBLE
select HAVE_PERF_COUNTERS
source "init/Kconfig"
...
...
arch/s390/include/asm/perf_counter.h
0 → 100644
View file @
12310e9c
/*
* Performance counter support - s390 specific definitions.
*
* Copyright 2009 Martin Schwidefsky, IBM Corporation.
*/
static
inline
void
set_perf_counter_pending
(
void
)
{}
static
inline
void
clear_perf_counter_pending
(
void
)
{}
tools/perf/perf.h
View file @
12310e9c
...
...
@@ -13,6 +13,12 @@
#define cpu_relax() asm volatile ("" ::: "memory");
#endif
#ifdef __s390__
#include "../../arch/s390/include/asm/unistd.h"
#define rmb() asm volatile("bcr 15,0" ::: "memory")
#define cpu_relax() asm volatile("" ::: "memory");
#endif
#include <time.h>
#include <unistd.h>
#include <sys/types.h>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment