Function report |
Source Code:kernel\acct.c |
Create Date:2022-07-28 11:01:12 |
| Last Modify:2020-03-17 15:14:29 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Write an accounting entry for an exiting process* The acct_process() call is the workhorse of the process* accounting system. The struct acct is built here and then written* into the accounting file. This function should only be called from
Proto:static void fill_ac(acct_t *ac)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| acct_t * | ac |
| 431 | run_time = ktime_get_ns() |
| 432 | run_time -= start_time |
| 434 | elapsed = nsec_to_AHZ(run_time) |
| 438 | Elapsed Time = encode_comp_t(elapsed < (unsignedlong) - 1l ? (unsignedlong)elapsed : (unsignedlong) - 1l) |
| 451 | Process Creation Time = These interfaces are all based on the old timespec type* and should get replaced with the timespec64 based versions* over time so we can remove the file here. - elapsed |
| 456 | spin_lock_irq( & siglock) |
| 458 | Control Terminal = If tty Then old_encode_dev(tty_devnum(tty)) Else 0 |
| 459 | User Time = encode_comp_t(nsec_to_AHZ(ac_utime)) |
| 460 | System Time = encode_comp_t(nsec_to_AHZ(ac_stime)) |
| 465 | Exitcode = ac_exitcode |
| 466 | spin_unlock_irq( & siglock) |
| Name | Describe |
|---|---|
| do_acct_process |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |