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:
@ -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)
|
static long dev_ioctl(struct file *file, unsigned int request, unsigned long arg)
|
||||||
{
|
{
|
||||||
mdelay(request * 1000);
|
|
||||||
return 0;
|
|
||||||
/*
|
|
||||||
struct timespec s_time, c_time;
|
struct timespec s_time, c_time;
|
||||||
|
|
||||||
getnstimeofday(&s_time);
|
getnstimeofday(&s_time);
|
||||||
@ -42,7 +39,6 @@ static long dev_ioctl(struct file *file, unsigned int request, unsigned long arg
|
|||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct file_operations fops = {
|
static struct file_operations fops = {
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
CC = gcc
|
CC = gcc
|
||||||
MCK_DIR=/home/satoken/ppos
|
include $(HOME)/.mck_test_config.mk
|
||||||
obj-m += test_driver.o
|
obj-m += test_driver.o
|
||||||
|
|
||||||
MCEXEC=$(MCK_DIR)/bin/mcexec
|
MCEXEC=$(MCK_DIR)/bin/mcexec
|
||||||
|
|||||||
@ -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)
|
static long dev_ioctl(struct file *file, unsigned int request, unsigned long arg)
|
||||||
{
|
{
|
||||||
mdelay(request * 1000);
|
|
||||||
return 0;
|
|
||||||
/*
|
|
||||||
struct timespec s_time, c_time;
|
struct timespec s_time, c_time;
|
||||||
|
|
||||||
getnstimeofday(&s_time);
|
getnstimeofday(&s_time);
|
||||||
@ -42,7 +39,6 @@ static long dev_ioctl(struct file *file, unsigned int request, unsigned long arg
|
|||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct file_operations fops = {
|
static struct file_operations fops = {
|
||||||
|
|||||||
Reference in New Issue
Block a user