Loading cmds/atrace/Android.bp +4 −0 Original line number Diff line number Diff line Loading @@ -3,6 +3,10 @@ cc_binary { name: "atrace", srcs: ["atrace.cpp"], cflags: [ "-Wall", "-Werror", ], shared_libs: [ "libbinder", Loading cmds/atrace/atrace.cpp +6 −4 Original line number Diff line number Diff line Loading @@ -234,8 +234,11 @@ static const char* k_traceClockPath = static const char* k_traceBufferSizePath = "buffer_size_kb"; #if 0 // TODO: Re-enable after stabilization static const char* k_traceCmdlineSizePath = "saved_cmdlines_size"; #endif static const char* k_tracingOverwriteEnablePath = "options/overwrite"; Loading @@ -258,9 +261,6 @@ static const char* k_funcgraphProcPath = static const char* k_funcgraphFlatPath = "options/funcgraph-flat"; static const char* k_funcgraphDurationPath = "options/funcgraph-duration"; static const char* k_ftraceFilterPath = "set_ftrace_filter"; Loading Loading @@ -453,7 +453,6 @@ static bool clearTrace() static bool setTraceBufferSizeKB(int size) { char str[32] = "1"; int len; if (size < 1) { size = 1; } Loading @@ -461,6 +460,8 @@ static bool setTraceBufferSizeKB(int size) return writeStr(k_traceBufferSizePath, str); } #if 0 // TODO: Re-enable after stabilization // Set the default size of cmdline hashtable static bool setCmdlineSize() { Loading @@ -469,6 +470,7 @@ static bool setCmdlineSize() } return true; } #endif // Set the clock to the best available option while tracing. Use 'boot' if it's // available; otherwise, use 'mono'. If neither are available use 'global'. Loading cmds/bugreport/Android.bp +1 −1 Original line number Diff line number Diff line cc_binary { name: "bugreport", srcs: ["bugreport.cpp"], cflags: ["-Wall"], cflags: ["-Wall", "-Werror"], shared_libs: ["libcutils"], } cmds/dumpsys/tests/Android.bp +1 −0 Original line number Diff line number Diff line Loading @@ -4,6 +4,7 @@ cc_test { test_suites: ["device-tests"], srcs: ["dumpsys_test.cpp"], cflags: ["-Wall", "-Werror"], shared_libs: [ "libbase", Loading cmds/installd/tests/Android.bp +3 −0 Original line number Diff line number Diff line Loading @@ -3,6 +3,7 @@ cc_test { name: "installd_utils_test", clang: true, srcs: ["installd_utils_test.cpp"], cflags: ["-Wall", "-Werror"], shared_libs: [ "libbase", "libutils", Loading @@ -19,6 +20,7 @@ cc_test { name: "installd_cache_test", clang: true, srcs: ["installd_cache_test.cpp"], cflags: ["-Wall", "-Werror"], shared_libs: [ "libbase", "libbinder", Loading @@ -38,6 +40,7 @@ cc_test { name: "installd_service_test", clang: true, srcs: ["installd_service_test.cpp"], cflags: ["-Wall", "-Werror"], shared_libs: [ "libbase", "libbinder", Loading Loading
cmds/atrace/Android.bp +4 −0 Original line number Diff line number Diff line Loading @@ -3,6 +3,10 @@ cc_binary { name: "atrace", srcs: ["atrace.cpp"], cflags: [ "-Wall", "-Werror", ], shared_libs: [ "libbinder", Loading
cmds/atrace/atrace.cpp +6 −4 Original line number Diff line number Diff line Loading @@ -234,8 +234,11 @@ static const char* k_traceClockPath = static const char* k_traceBufferSizePath = "buffer_size_kb"; #if 0 // TODO: Re-enable after stabilization static const char* k_traceCmdlineSizePath = "saved_cmdlines_size"; #endif static const char* k_tracingOverwriteEnablePath = "options/overwrite"; Loading @@ -258,9 +261,6 @@ static const char* k_funcgraphProcPath = static const char* k_funcgraphFlatPath = "options/funcgraph-flat"; static const char* k_funcgraphDurationPath = "options/funcgraph-duration"; static const char* k_ftraceFilterPath = "set_ftrace_filter"; Loading Loading @@ -453,7 +453,6 @@ static bool clearTrace() static bool setTraceBufferSizeKB(int size) { char str[32] = "1"; int len; if (size < 1) { size = 1; } Loading @@ -461,6 +460,8 @@ static bool setTraceBufferSizeKB(int size) return writeStr(k_traceBufferSizePath, str); } #if 0 // TODO: Re-enable after stabilization // Set the default size of cmdline hashtable static bool setCmdlineSize() { Loading @@ -469,6 +470,7 @@ static bool setCmdlineSize() } return true; } #endif // Set the clock to the best available option while tracing. Use 'boot' if it's // available; otherwise, use 'mono'. If neither are available use 'global'. Loading
cmds/bugreport/Android.bp +1 −1 Original line number Diff line number Diff line cc_binary { name: "bugreport", srcs: ["bugreport.cpp"], cflags: ["-Wall"], cflags: ["-Wall", "-Werror"], shared_libs: ["libcutils"], }
cmds/dumpsys/tests/Android.bp +1 −0 Original line number Diff line number Diff line Loading @@ -4,6 +4,7 @@ cc_test { test_suites: ["device-tests"], srcs: ["dumpsys_test.cpp"], cflags: ["-Wall", "-Werror"], shared_libs: [ "libbase", Loading
cmds/installd/tests/Android.bp +3 −0 Original line number Diff line number Diff line Loading @@ -3,6 +3,7 @@ cc_test { name: "installd_utils_test", clang: true, srcs: ["installd_utils_test.cpp"], cflags: ["-Wall", "-Werror"], shared_libs: [ "libbase", "libutils", Loading @@ -19,6 +20,7 @@ cc_test { name: "installd_cache_test", clang: true, srcs: ["installd_cache_test.cpp"], cflags: ["-Wall", "-Werror"], shared_libs: [ "libbase", "libbinder", Loading @@ -38,6 +40,7 @@ cc_test { name: "installd_service_test", clang: true, srcs: ["installd_service_test.cpp"], cflags: ["-Wall", "-Werror"], shared_libs: [ "libbase", "libbinder", Loading