Lines Matching refs:ok
377 bool ok = true; in _writeStr() local
382 ok = false; in _writeStr()
387 return ok; in _writeStr()
449 bool ok = category.tags != 0; in isCategorySupported() local
455 ok = true; in isCategorySupported()
461 return ok; in isCategorySupported()
470 bool ok = category.tags != 0; in isCategorySupportedForRoot() local
479 ok = true; in isCategorySupportedForRoot()
482 ok |= fileExists(path); in isCategorySupportedForRoot()
486 return ok; in isCategorySupportedForRoot()
635 bool ok = true; in disableKernelTraceEvents() local
641 ok &= setKernelOptionEnable(path, false); in disableKernelTraceEvents()
645 return ok; in disableKernelTraceEvents()
663 bool ok = true; in verifyKernelTraceFuncs() local
673 ok = false; in verifyKernelTraceFuncs()
679 return ok; in verifyKernelTraceFuncs()
685 bool ok = true; in setKernelTraceFuncs() local
690 ok &= writeStr(k_currentTracerPath, "nop"); in setKernelTraceFuncs()
693 ok &= truncateFile(k_ftraceFilterPath); in setKernelTraceFuncs()
697 ok &= writeStr(k_currentTracerPath, "function_graph"); in setKernelTraceFuncs()
698 ok &= setKernelOptionEnable(k_funcgraphAbsTimePath, true); in setKernelTraceFuncs()
699 ok &= setKernelOptionEnable(k_funcgraphCpuPath, true); in setKernelTraceFuncs()
700 ok &= setKernelOptionEnable(k_funcgraphProcPath, true); in setKernelTraceFuncs()
701 ok &= setKernelOptionEnable(k_funcgraphFlatPath, true); in setKernelTraceFuncs()
704 ok &= truncateFile(k_ftraceFilterPath); in setKernelTraceFuncs()
708 ok &= appendStr(k_ftraceFilterPath, func); in setKernelTraceFuncs()
714 if (ok) { in setKernelTraceFuncs()
715 ok &= verifyKernelTraceFuncs(funcs); in setKernelTraceFuncs()
719 return ok; in setKernelTraceFuncs()
765 bool ok = true; in setCategoriesEnableFromFile() local
772 ok &= setCategoryEnable(token.string()); in setCategoriesEnableFromFile()
775 return ok; in setCategoriesEnableFromFile()
780 bool ok = true; in setUpUserspaceTracing() local
810 ok &= setAppCmdlineProperty(&packageList[0]); in setUpUserspaceTracing()
811 ok &= setTagsProperty(tags); in setUpUserspaceTracing()
813 ok &= ServiceUtility::PokeServices(); in setUpUserspaceTracing()
816 return ok; in setUpUserspaceTracing()
834 bool ok = true; in setUpKernelTracing() local
836 ok &= setUserInitiatedTraceProperty(true); in setUpKernelTracing()
839 ok &= setCategoriesEnableFromFile(g_categoriesFile); in setUpKernelTracing()
840 ok &= setTraceOverwriteEnable(g_traceOverwrite); in setUpKernelTracing()
841 ok &= setTraceBufferSizeKB(g_traceBufferSizeKB); in setUpKernelTracing()
844 ok &= setClock(); in setUpKernelTracing()
845 ok &= setPrintTgidEnableIfPresent(true); in setUpKernelTracing()
846 ok &= setKernelTraceFuncs(g_kernelTraceFuncs); in setUpKernelTracing()
850 ok &= disableKernelTraceEvents(); in setUpKernelTracing()
861 ok &= setKernelOptionEnable(path, true); in setUpKernelTracing()
864 ok = false; in setUpKernelTracing()
871 return ok; in setUpKernelTracing()
1322 bool ok = true; in main() local
1325 ok &= setUpUserspaceTracing(); in main()
1328 if (ok && traceStart && !onlyUserspace) { in main()
1329 ok &= setUpKernelTracing(); in main()
1330 ok &= setUpVendorTracing(); in main()
1331 ok &= startTrace(); in main()
1334 if (ok && traceStart) { in main()
1347 ok = clearTrace(); in main()
1350 if (ok && !async && !traceStream) { in main()
1371 if (ok && traceDump && !onlyUserspace) { in main()
1393 } else if (!ok) { in main()