Fetching /proc/<pid>/status entry after validation.
Description: This patch adds validation check before storing status
entries and assignes proper index for storing value.
In TM1 reference device kernel makes below entries in status file.
proc entry is like below:-
sh-3.2# cat /proc/373/status
Name: stc-manager
State: S (sleeping)
Tgid: 373
Pid: 373
PPid: 1
TracerPid: 0
However in Odroid reference device, kernel makes below entries in status.
sh-3.2# cat /proc/3404/status
Name: stc-manager
State: S (sleeping)
Tgid: 3404
Ngid: 0
Pid: 3404
PPid: 1
TracerPid: 0
Odroid kernel has an extra entry "Ngid" which breaks current extraction logic.
So added logic to match entry key before extracting value when reading status file.
Change-Id: I393ed476919fc8c101a8ce6a11ab835230a39021
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>