• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1dnl
2dnl Copyright (c) Jiri Palecek 2009
3dnl
4dnl This program is free software;  you can redistribute it and/or modify
5dnl it under the terms of the GNU General Public License as published by
6dnl the Free Software Foundation; either version 2 of the License, or
7dnl (at your option) any later version.
8dnl
9dnl This program is distributed in the hope that it will be useful,
10dnl but WITHOUT ANY WARRANTY;  without even the implied warranty of
11dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See
12dnl the GNU General Public License for more details.
13dnl
14dnl You should have received a copy of the GNU General Public License
15dnl along with this program;  if not, write to the Free Software
16dnl Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17dnl
18
19AC_DEFUN([LTP_CHECK_TASKSTATS],
20_LTP_CHECK_TASKSTATS_FREEPAGES
21)dnl
22
23dnl _LTP_CHECK_TASKSTATS_FREEPAGES
24dnl ----------------------------------------
25dnl
26dnl Check for taskstat.freepages_* members, introduced to the kernel
27dnl in commit 016ae219 in July 2008
28dnl
29
30AC_DEFUN([_LTP_CHECK_TASKSTATS_FREEPAGES],[
31AC_CHECK_HEADERS([linux/taskstats.h],[
32    AC_CHECK_MEMBERS([struct taskstats.freepages_count, struct taskstats.nvcsw, struct taskstats.read_bytes],
33                     [],[],[dnl
34#include <linux/taskstats.h>
35]) dnl AC_CHECK_MEMBERS
36],[],[
37#include <linux/types.h>
38]) dnl AC_CHECK_HEADERS_ONCE
39]) dnl _LTP_CHECK_TASKSTATS_FREEPAGES
40