1dnl 2dnl Copyright (c) 2014 Fujitsu Ltd. 3dnl Author: Xiaoguang Wang <wangxg.fnst@cn.fujitsu.com> 4dnl Copyright (c) 2014 Cyril Hrubis <chrubis@suse.cz> 5dnl 6dnl This program is free software; you can redistribute it and/or modify 7dnl it under the terms of the GNU General Public License as published by 8dnl the Free Software Foundation; either version 2 of the License, or 9dnl (at your option) any later version. 10dnl 11dnl This program is distributed in the hope that it will be useful, 12dnl but WITHOUT ANY WARRANTY; without even the implied warranty of 13dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See 14dnl the GNU General Public License for more details. 15dnl 16dnl You should have received a copy of the GNU General Public License 17dnl along with this program; if not, write to the Free Software 18dnl Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 19dnl 20 21dnl 22dnl LTP_CHECK_SYSCALL_PERF_EVENT_OPEN 23dnl ---------------------------- 24dnl 25AC_DEFUN([LTP_CHECK_SYSCALL_PERF_EVENT_OPEN],[dnl 26AH_TEMPLATE(HAVE_PERF_EVENT_ATTR, 27[Define to 1 if you have struct perf_event_attr]) 28AC_MSG_CHECKING([for perf_event_attr in linux/perf_event.h]) 29AC_TRY_COMPILE([#include <unistd.h> 30 #include <linux/perf_event.h>], 31 [ 32 struct perf_event_attr pe; 33 ], 34 AC_DEFINE(HAVE_PERF_EVENT_ATTR) AC_MSG_RESULT(yes), AC_MSG_RESULT(no)) 35]) 36