Loading kernel/acct.c +17 −13 Original line number Diff line number Diff line Loading @@ -141,12 +141,12 @@ static int check_free_space(struct bsd_acct_struct *acct, struct file *file) if (acct->active) { if (act < 0) { acct->active = 0; printk(KERN_INFO "Process accounting paused\n"); pr_info("Process accounting paused\n"); } } else { if (act > 0) { acct->active = 1; printk(KERN_INFO "Process accounting resumed\n"); pr_info("Process accounting resumed\n"); } } Loading Loading @@ -261,6 +261,7 @@ SYSCALL_DEFINE1(acct, const char __user *, name) if (name) { struct filename *tmp = getname(name); if (IS_ERR(tmp)) return PTR_ERR(tmp); error = acct_on(tmp); Loading Loading @@ -429,7 +430,8 @@ static u32 encode_float(u64 value) unsigned exp = 190; unsigned u; if (value==0) return 0; if (value == 0) return 0; while ((s64)value > 0) { value <<= 1; exp--; Loading Loading @@ -496,6 +498,7 @@ static void do_acct_process(struct bsd_acct_struct *acct, { /* new enlarged etime field */ comp2_t etime = encode_comp2_t(elapsed); ac.ac_etime_hi = etime >> 16; ac.ac_etime_lo = (u16) etime; } Loading Loading @@ -574,6 +577,7 @@ void acct_collect(long exitcode, int group_dead) if (group_dead && current->mm) { struct vm_area_struct *vma; down_read(¤t->mm->mmap_sem); vma = current->mm->mmap; while (vma) { Loading Loading
kernel/acct.c +17 −13 Original line number Diff line number Diff line Loading @@ -141,12 +141,12 @@ static int check_free_space(struct bsd_acct_struct *acct, struct file *file) if (acct->active) { if (act < 0) { acct->active = 0; printk(KERN_INFO "Process accounting paused\n"); pr_info("Process accounting paused\n"); } } else { if (act > 0) { acct->active = 1; printk(KERN_INFO "Process accounting resumed\n"); pr_info("Process accounting resumed\n"); } } Loading Loading @@ -261,6 +261,7 @@ SYSCALL_DEFINE1(acct, const char __user *, name) if (name) { struct filename *tmp = getname(name); if (IS_ERR(tmp)) return PTR_ERR(tmp); error = acct_on(tmp); Loading Loading @@ -429,7 +430,8 @@ static u32 encode_float(u64 value) unsigned exp = 190; unsigned u; if (value==0) return 0; if (value == 0) return 0; while ((s64)value > 0) { value <<= 1; exp--; Loading Loading @@ -496,6 +498,7 @@ static void do_acct_process(struct bsd_acct_struct *acct, { /* new enlarged etime field */ comp2_t etime = encode_comp2_t(elapsed); ac.ac_etime_hi = etime >> 16; ac.ac_etime_lo = (u16) etime; } Loading Loading @@ -574,6 +577,7 @@ void acct_collect(long exitcode, int group_dead) if (group_dead && current->mm) { struct vm_area_struct *vma; down_read(¤t->mm->mmap_sem); vma = current->mm->mmap; while (vma) { Loading