diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2021-01-27 15:12:04 +0100 |
---|---|---|
committer | BenBE <BenBE@geshi.org> | 2021-01-30 14:21:26 +0100 |
commit | 04cf590967c7563972f89f02fd6fa52e13b9e9d9 (patch) | |
tree | 7229b231a241bb1b2b1b36f05ddafef03df9e94c | |
parent | 46370231e3e774493b01755e9a92dcdf095e7d9e (diff) |
FreeBSD: drop minflt and implement majflt
-rw-r--r-- | freebsd/FreeBSDProcess.c | 3 | ||||
-rw-r--r-- | freebsd/FreeBSDProcessList.c | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/freebsd/FreeBSDProcess.c b/freebsd/FreeBSDProcess.c index 2e1c384a..c2c21af1 100644 --- a/freebsd/FreeBSDProcess.c +++ b/freebsd/FreeBSDProcess.c @@ -28,8 +28,7 @@ const ProcessFieldData Process_fields[LAST_PROCESSFIELD] = { [SESSION] = { .name = "SESSION", .title = "SID", .description = "Process's session ID", .flags = 0, .pidColumn = true, }, [TTY_NR] = { .name = "TTY_NR", .title = " TTY ", .description = "Controlling terminal", .flags = PROCESS_FLAG_FREEBSD_TTY, }, [TPGID] = { .name = "TPGID", .title = "TPGID", .description = "Process ID of the fg process group of the controlling terminal", .flags = 0, .pidColumn = true, }, - [MINFLT] = { .name = "MINFLT", .title = " MINFLT ", .description = "Number of minor faults which have not required loading a memory page from disk", .flags = 0, .defaultSortDesc = true, }, - [MAJFLT] = { .name = "MAJFLT", .title = " MAJFLT ", .description = "Number of major faults which have required loading a memory page from disk", .flags = 0, .defaultSortDesc = true, }, + [MAJFLT] = { .name = "MAJFLT", .title = " MAJFLT ", .description = "Number of copy-on-write faults", .flags = 0, .defaultSortDesc = true, }, [PRIORITY] = { .name = "PRIORITY", .title = "PRI ", .description = "Kernel's internal priority for the process", .flags = 0, }, [NICE] = { .name = "NICE", .title = " NI ", .description = "Nice value (the higher the value, the more it lets other processes take priority)", .flags = 0, }, [STARTTIME] = { .name = "STARTTIME", .title = "START ", .description = "Time the process was started", .flags = 0, }, diff --git a/freebsd/FreeBSDProcessList.c b/freebsd/FreeBSDProcessList.c index 1c354c6b..91e1d4ca 100644 --- a/freebsd/FreeBSDProcessList.c +++ b/freebsd/FreeBSDProcessList.c @@ -512,6 +512,8 @@ void ProcessList_goThroughEntries(ProcessList* super, bool pauseProcessUpdate) { proc->processor = kproc->ki_lastcpu; + proc->majflt = kproc->ki_cow; + proc->priority = kproc->ki_pri.pri_level - PZERO; if (String_eq("intr", kproc->ki_comm) && (kproc->ki_flag & P_SYSTEM)) { |