mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-09 14:40:54 +00:00
perf: optionally enable clockid and use_clockid
Some kernels to not have this feature yet, so check for support in linux/perf_event.h and optionally enable the struct field.
This commit is contained in:
10
configure.ac
10
configure.ac
@ -80,6 +80,16 @@ GOBJECT_INTROSPECTION_CHECK([1.42.0])
|
||||
VAPIGEN_CHECK
|
||||
|
||||
|
||||
|
||||
dnl ***********************************************************************
|
||||
dnl Check for recent perf improvements
|
||||
dnl ***********************************************************************
|
||||
AC_CHECK_MEMBERS([struct perf_event_attr.use_clockid, struct perf_event_attr.clockid],
|
||||
[AC_DEFINE([HAVE_PERF_CLOCKID],[1],[Define if perf supports clockid])],
|
||||
[],
|
||||
[[#include <linux/perf_event.h>]])
|
||||
|
||||
|
||||
dnl ***********************************************************************
|
||||
dnl Check for required packages
|
||||
dnl ***********************************************************************
|
||||
|
||||
Reference in New Issue
Block a user