pmdaproc: fix per-process scheduler metrics - type and semantics
commitaef250ad7f91dcc7a975f00de821a0f9526639c6
authorNathan Scott <nathans@redhat.com>
Wed, 20 Apr 2016 05:42:00 +0000 (20 15:42 +1000)
committerNathan Scott <nathans@redhat.com>
Wed, 20 Apr 2016 05:42:00 +0000 (20 15:42 +1000)
tree0336f45b58bf6b40c155b0fd98f3d1f6fdca6af0
parent70330eb77b0af537fe7fb359b4b667c1deba8e9c
pmdaproc: fix per-process scheduler metrics - type and semantics

Correct the type to signed-32bit-int and semantics to instantaneous
for the proc.psinfo.nice and proc.psinfo.priority metrics, after a
bit of kernel code review.  Also followed up on Markos point that
proc.psinfo.tty_pgrp looks dodgey - found the kernel can return -1
in the case that no tty is associated with the process.  So we will
return no-values-available in that case, instead of (unsigned)-1.

Log rewriting rules have been put in place, and qa/971 is added.

Resolves Red Hat BZ #1328432.
12 files changed:
qa/971 [new file with mode: 0755]
qa/971.out [new file with mode: 0644]
qa/archives/GNUmakefile
qa/archives/mk.procsched.sh [new file with mode: 0755]
qa/archives/procsched.0 [new file with mode: 0644]
qa/archives/procsched.index [new file with mode: 0644]
qa/archives/procsched.meta [new file with mode: 0644]
qa/group
src/pmdas/linux_proc/GNUmakefile
src/pmdas/linux_proc/help_text.h
src/pmdas/linux_proc/pmda.c
src/pmdas/linux_proc/proc_scheduler.conf [new file with mode: 0644]