aboutsummaryrefslogtreecommitdiffstats
path: root/src/vppinfra/perfmon/perfmon.h
diff options
context:
space:
mode:
authorGuillaume Solignac <gsoligna@cisco.com>2022-04-13 12:03:48 +0200
committerGuillaume Solignac <gsoligna@cisco.com>2022-04-13 13:30:41 +0200
commit6da774015491418918f74ad20ffba12c5152ec06 (patch)
treeb5c1a904030a82aa3b130ee8a631289805342f46 /src/vppinfra/perfmon/perfmon.h
parent46f1dbc19898c3707b4783d309d4046144ef0c69 (diff)
vppinfra: fix GCC 7.3 build error with asm inline
GCC added asm inline in 8.3, so we change asm inline to asm volatile. Type: fix Fixes: d5045e68a782 ("vppinfra: introduce clib_perfmom") Signed-off-by: Guillaume Solignac <gsoligna@cisco.com> Change-Id: I9f7781ba9de66211404348ff477a17059b408a78
Diffstat (limited to 'src/vppinfra/perfmon/perfmon.h')
-rw-r--r--src/vppinfra/perfmon/perfmon.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/vppinfra/perfmon/perfmon.h b/src/vppinfra/perfmon/perfmon.h
index 0d09dc6fb23..d940921d6bf 100644
--- a/src/vppinfra/perfmon/perfmon.h
+++ b/src/vppinfra/perfmon/perfmon.h
@@ -69,10 +69,10 @@ static_always_inline void
clib_perfmon_ioctl (int fd, u32 req)
{
#ifdef __x86_64__
- asm inline("syscall"
- :
- : "D"(fd), "S"(req), "a"(__NR_ioctl), "d"(PERF_IOC_FLAG_GROUP)
- : "rcx", "r11" /* registers modified by kernel */);
+ asm volatile("syscall"
+ :
+ : "D"(fd), "S"(req), "a"(__NR_ioctl), "d"(PERF_IOC_FLAG_GROUP)
+ : "rcx", "r11" /* registers modified by kernel */);
#else
ioctl (fd, req, PERF_IOC_FLAG_GROUP);
#endif