xref: /aosp_15_r20/external/ltp/m4/ltp-taskstats.m4 (revision 49cdfc7efb34551c7342be41a7384b9c40d7cab7)
1*49cdfc7eSAndroid Build Coastguard Workerdnl SPDX-License-Identifier: GPL-2.0-or-later
2*49cdfc7eSAndroid Build Coastguard Workerdnl Copyright (c) Jiri Palecek 2009
3*49cdfc7eSAndroid Build Coastguard Worker
4*49cdfc7eSAndroid Build Coastguard WorkerAC_DEFUN([LTP_CHECK_TASKSTATS],
5*49cdfc7eSAndroid Build Coastguard Worker_LTP_CHECK_TASKSTATS_FREEPAGES
6*49cdfc7eSAndroid Build Coastguard Worker)
7*49cdfc7eSAndroid Build Coastguard Worker
8*49cdfc7eSAndroid Build Coastguard Workerdnl Check for taskstat.freepages_* members, introduced to the kernel
9*49cdfc7eSAndroid Build Coastguard Workerdnl in commit 016ae219 in July 2008
10*49cdfc7eSAndroid Build Coastguard Worker
11*49cdfc7eSAndroid Build Coastguard WorkerAC_DEFUN([_LTP_CHECK_TASKSTATS_FREEPAGES],[
12*49cdfc7eSAndroid Build Coastguard WorkerAC_CHECK_HEADERS([linux/taskstats.h],[
13*49cdfc7eSAndroid Build Coastguard Worker    AC_CHECK_MEMBERS([struct taskstats.freepages_count, struct taskstats.nvcsw, struct taskstats.read_bytes],
14*49cdfc7eSAndroid Build Coastguard Worker                     [],[],[
15*49cdfc7eSAndroid Build Coastguard Worker#include <linux/taskstats.h>
16*49cdfc7eSAndroid Build Coastguard Worker])
17*49cdfc7eSAndroid Build Coastguard Worker],[],[
18*49cdfc7eSAndroid Build Coastguard Worker#include <linux/types.h>
19*49cdfc7eSAndroid Build Coastguard Worker])
20*49cdfc7eSAndroid Build Coastguard Worker])
21