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