コード例 #1
0
ファイル: mmstress.c プロジェクト: Mellanox/arc_ltp
static int
test3()
{
    RETINFO_t retval;    /* contains test stats information                   */

    tst_resm(TINFO, "test3: Test case tests the race condition between "
           "simultaneous COW faults in the same address space.");
    map_and_thread("./tmp.file.3", thread_fault, COW_FAULT, NUMTHREAD, &retval);
    return (retval.status);
}
コード例 #2
0
ファイル: mmstress.c プロジェクト: LeqiaoP1/ltp
static int test1()
{
	RETINFO_t retval;	/* contains info relating to test status          */

	tst_resm(TINFO, "test1: Test case tests the race condition between "
		 "simultaneous read faults in the same address space.");
	map_and_thread("./tmp.file.1", thread_fault, READ_FAULT, NUMTHREAD,
		       &retval);
	return (retval.status);
}
コード例 #3
0
ファイル: mmstress.c プロジェクト: Mellanox/arc_ltp
static int
test4()
{
    RETINFO_t retval;     /* contains test status information                 */

    tst_resm(TINFO, "test4: Test case tests the race condition between "
           "simultaneous READ faults in the same address space. "
           "The file mapped is /dev/zero");
    map_and_thread("/dev/zero", thread_fault, COW_FAULT, NUMTHREAD, &retval);
    return (retval.status);
}