util: kernel: Add functions for getting procfs stat fields
This adds new functions for getting procfs stat fields of certain
process id as like below prototype:
int kernel_get_process_stat_fields(pid_t pid, char *buffer, int buf_len, char **stat_fields)
- pid: target process id
- buffer: string buffer for retrieving procfs stat, each field of
stat_fileds points out some index within this buffer area.
Thus, life time of stat_fields are determined by this.
- buf_len: length of provided buffer
- stat_fields: string array of retrieved fields, this should be
declared as (char *)[PROCESS_STAT_FIELD_MAX] type.
Signed-off-by: Dongwoo Lee <dwlee08@gmail.com>
Change-Id: I23008751fdd17ddd17d9e756e1f0d7394bee5f98