Fix test of getrusage fixes

* fix: Bug for getrusage return incorrect ru_maxrss
* fix: Bug for getrusage(RUSAGE_CHILDREN) return parent info
       (POSTK_DEBUG_TEIX_72)
* fix: Bug for getrusage often return incorrect ru_stime

Refs: #1032
Refs: #1033
Refs: #1034

Change-Id: Ifba95e4cb48ae551839819eb3abe26b37da4b196
This commit is contained in:
Masamichi Takagi
2019-03-15 08:45:30 +00:00
parent 5e992bc195
commit 0bb612caea
3 changed files with 1 additions and 9 deletions

View File

@ -26,9 +26,6 @@ static int dev_release(struct inode *inode, struct file *file)
static long dev_ioctl(struct file *file, unsigned int request, unsigned long arg)
{
mdelay(request * 1000);
return 0;
/*
struct timespec s_time, c_time;
getnstimeofday(&s_time);
@ -42,7 +39,6 @@ static long dev_ioctl(struct file *file, unsigned int request, unsigned long arg
}
return 0;
*/
}
static struct file_operations fops = {

View File

@ -1,5 +1,5 @@
CC = gcc
MCK_DIR=/home/satoken/ppos
include $(HOME)/.mck_test_config.mk
obj-m += test_driver.o
MCEXEC=$(MCK_DIR)/bin/mcexec

View File

@ -26,9 +26,6 @@ static int dev_release(struct inode *inode, struct file *file)
static long dev_ioctl(struct file *file, unsigned int request, unsigned long arg)
{
mdelay(request * 1000);
return 0;
/*
struct timespec s_time, c_time;
getnstimeofday(&s_time);
@ -42,7 +39,6 @@ static long dev_ioctl(struct file *file, unsigned int request, unsigned long arg
}
return 0;
*/
}
static struct file_operations fops = {