projects
/
platform
/
core
/
system
/
pass.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b67f828
)
resource: process: Handle pid, tgid into parsing nla types
14/271514/1
author
Dongwoo Lee
<dwoo08.lee@samsung.com>
Mon, 21 Feb 2022 07:22:01 +0000
(16:22 +0900)
committer
Dongwoo Lee
<dwoo08.lee@samsung.com>
Tue, 22 Feb 2022 08:34:10 +0000
(17:34 +0900)
To prevent pid, tgid is considered error case, add handling of them.
Change-Id: I3ef127312e860f8bf625a8427d5e40cfb68196cc
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
src/resource/resource-process.c
patch
|
blob
|
history
diff --git
a/src/resource/resource-process.c
b/src/resource/resource-process.c
index
acdb542
..
aff58e1
100644
(file)
--- a/
src/resource/resource-process.c
+++ b/
src/resource/resource-process.c
@@
-234,6
+234,9
@@
static int parse_aggregate_task_stats(struct nlattr *attr, int attr_size,
{
nla_for_each_attr(attr, attr, attr_size, attr_size) {
switch (attr->nla_type) {
+ case TASKSTATS_TYPE_PID:
+ case TASKSTATS_TYPE_TGID:
+ break;
case TASKSTATS_TYPE_STATS:
nla_memcpy(stats, attr, sizeof(struct taskstats));
break;