Home
last modified time | relevance | path

Searched refs:is_root (Results 1 – 1 of 1) sorted by relevance

/system/extras/simpleperf/
Dutils.cpp260 static int is_root = -1; in IsRoot() local
261 if (is_root == -1) { in IsRoot()
263 is_root = (getuid() == 0) ? 1 : 0; in IsRoot()
265 is_root = 0; in IsRoot()
268 return is_root == 1; in IsRoot()