diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/vppinfra/perfmon/perfmon.h | 8 |
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 |