Race is observed between task exiting and accessing task's files
from get_task_unreclaimable_info(), fix it by locking it.
Change-Id: Ie43426696aa09222fdc4bbb2533c8a8fd18a0f7c
Signed-off-by: Srinivasarao Pathipati <quic_c_spathi@quicinc.com>
Static code analyser pointed derefrence of comm pointer returned by
nla_strdup_cust() without doing null pointer check. Adding check the
return value of nla_strdup_cust, before doing the strcmp.
Change-Id: Ia55ced8a64459b2c86a64a98ef09ba4a642799eb
Signed-off-by: Faiyaz Mohammed <quic_faiyazm@quicinc.com>
Add support to give the range of pid's that corresponds to a given
running process.
Change-Id: I93d258edd40373c233177bfa9c299434e13cc718
Signed-off-by: Charan Teja Reddy <quic_charante@quicinc.com>
Account DMA32 zone memory in taskstats. Since our systems will always
have atleast 32bit capable devices, ZONE DMA is most unlikely to be
enabled thus DMA32 zone info is accounted in stats->dma_nr_xxx inplace
of creating additional structure variables.
Change-Id: I90c108824afe2e3246fc62d4c1a911a5b8f6e523
Signed-off-by: Charan Teja Reddy <charante@codeaurora.org>
Add unreclaimable memory information, like ion, kgsl e.t.c, to
msm_sysstats driver. This information is returned to used on query.
Change-Id: Ifb97216f6401b50ae8993dc5b1b38b93508f14e6
Signed-off-by: Charan Teja Reddy <charante@codeaurora.org>
NR_KERNEL_MISC_RECLAIMABLE contains the info in pages but accounting is
done considering it as bytes. Fix it.
Change-Id: I99a3bd43b7b77f6b137e1cc4c1854392d4a47635
Fixes: b29940c1ab ("mm: rename and change semantics of nr_indirectly_reclaimable_bytes")
Signed-off-by: Charan Teja Reddy <charante@codeaurora.org>
Add generic netlink based interface to pass various
system statistics to userspace.
Change-Id: I362c696ade2c5a424516728010122fec54a1a71b
Signed-off-by: Vinayak Menon <vinmenon@codeaurora.org>