• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1dnl SPDX-License-Identifier: GPL-2.0-or-later
2dnl Copyright (c) 2014 Fujitsu Ltd.
3dnl Copyright (c) 2014 Cyril Hrubis <chrubis@suse.cz>
4dnl Author: Xiaoguang Wang <wangxg.fnst@cn.fujitsu.com>
5
6AC_DEFUN([LTP_CHECK_SYSCALL_PERF_EVENT_OPEN],[
7AH_TEMPLATE(HAVE_PERF_EVENT_ATTR,
8[Define to 1 if you have struct perf_event_attr])
9AC_MSG_CHECKING([for perf_event_attr in linux/perf_event.h])
10AC_TRY_COMPILE([#include <unistd.h>
11		#include <linux/perf_event.h>],
12		[
13			struct perf_event_attr pe;
14		],
15		AC_DEFINE(HAVE_PERF_EVENT_ATTR) AC_MSG_RESULT(yes), AC_MSG_RESULT(no))
16])
17