projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
95d6550
)
[profiler] Make `perf` syscall work on ARM64.
author
Alex Rønne Petersen
<alexrp@xamarin.com>
Mon, 9 Mar 2015 18:01:04 +0000
(19:01 +0100)
committer
Alex Rønne Petersen
<alexrp@xamarin.com>
Tue, 17 Mar 2015 15:35:45 +0000
(16:35 +0100)
mono/profiler/proflog.c
patch
|
blob
|
history
diff --git
a/mono/profiler/proflog.c
b/mono/profiler/proflog.c
index b998f6ffe148e6f0d7ea8e24e0a5b7bc4e150914..80ad046ad60dec7177091b46608731b06fe81c54 100644
(file)
--- a/
mono/profiler/proflog.c
+++ b/
mono/profiler/proflog.c
@@
-1843,7
+1843,7
@@
perf_event_syscall (struct perf_event_attr *attr, pid_t pid, int cpu, int group_
return syscall(/*__NR_perf_event_open*/ 298, attr, pid, cpu, group_fd, flags);
#elif defined(__i386__)
return syscall(/*__NR_perf_event_open*/ 336, attr, pid, cpu, group_fd, flags);
-#elif defined(__arm__)
+#elif defined(__arm__)
|| defined (__aarch64__)
return syscall(/*__NR_perf_event_open*/ 364, attr, pid, cpu, group_fd, flags);
#else
return -1;