[odu] Delete odu.cmx
This component is obsolete. fxrev.dev/684846 changed the entry point for
this benchmark to storage_benchmarks_test.
Change-Id: I58878b668887b5a84054589ece4b57a5ca80a2b4
Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/693289
Reviewed-by: Mark Seaborn <mseaborn@google.com>
Commit-Queue: Gary Bressler <geb@google.com>
Reviewed-by: Chris Suter <csuter@google.com>
diff --git a/src/storage/bin/odu/BUILD.gn b/src/storage/bin/odu/BUILD.gn
index 2448777..1eac6af 100644
--- a/src/storage/bin/odu/BUILD.gn
+++ b/src/storage/bin/odu/BUILD.gn
@@ -71,33 +71,11 @@
deps = odu_deps
}
-rustc_binary("bin") {
- edition = "2021"
- name = "odu"
- version = "0.1.0"
-
- deps = [
- ":lib",
- "//third_party/rust_crates:anyhow",
- ]
- sources = [ "src/main.rs" ]
-}
-
-fuchsia_shell_package("odu") {
- manifest = "meta/odu.cmx"
- deps = [ ":bin" ]
-}
-
fuchsia_unittest_package("odu_tests") {
manifest = "meta/odu_lib_test.cml"
deps = [ ":lib_test" ]
}
-install_host_tools("odu_host") {
- deps = [ ":bin($host_toolchain)" ]
- outputs = [ "odu" ]
-}
-
group("tests") {
testonly = true
deps = [
diff --git a/src/storage/bin/odu/README.md b/src/storage/bin/odu/README.md
index 1c69363..44d1f25 100644
--- a/src/storage/bin/odu/README.md
+++ b/src/storage/bin/odu/README.md
@@ -1,29 +1,6 @@
-# odu: A generic filesystem benchmarking utility for fuchsia
+# odu: filesystem benchmarking
-The tool can be built for host as well as for target by adding
-`--with --with //src/storage/bin/odu,//src/storage/bin/odu:odu_host` (the host side binary can be
-found in `out/<target>/host_x64/odu`).
-
-More detailed docs can be generated with
-
-```bash
-fx gen-cargo //src/storage/bin/odu:bin
-fx rustdoc --doc-private //src/storage/bin/odu:bin
-```
-## Sample commands
-
-```bash
-# Measure `read` performance on an a existing file at `/tmp/x`
-odu --target /tmp/x --operations read
-
-# measure sequential write performance using 400 IOs per thread with 8192 as block size alignment
-odu --target /tmp/x --operations write --max_io_count=400 --sequential true --block_size 8192 --max_io_size 8192 --align true
-```
-
-## Use cases
-The tool can be used to measure and compare performance between fuchsia and other POSIX-like OSes.
-
-Other than manual runs, odu is used by bots to run the following test cases to measure perf:
+libodu is used by bots to run the following test cases to measure perf:
* sequential/write/8192: Measures the time to write blocks of size 8KiB
in turn to a newly-created file, using the system filesystem, without any
diff --git a/src/storage/bin/odu/meta/odu.cmx b/src/storage/bin/odu/meta/odu.cmx
deleted file mode 100644
index 4e178856..0000000
--- a/src/storage/bin/odu/meta/odu.cmx
+++ /dev/null
@@ -1,17 +0,0 @@
-{
- "include": [
- "syslog/client.shard.cmx"
- ],
- "program": {
- "binary": "bin/odu"
- },
- "sandbox": {
- "features": [
- "isolated-persistent-storage",
- "isolated-temp"
- ],
- "services": [
- "fuchsia.tracing.provider.Registry"
- ]
- }
-}
diff --git a/src/storage/bin/odu/src/main.rs b/src/storage/bin/odu/src/main.rs
deleted file mode 100644
index b5f6a43..0000000
--- a/src/storage/bin/odu/src/main.rs
+++ /dev/null
@@ -1,12 +0,0 @@
-// Copyright 2019 The Fuchsia Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-use {anyhow::Error, std::env};
-
-fn main() -> Result<(), Error> {
- let mut args = env::args_os();
- // Skip binary name.
- args.next();
- odu::run(args)
-}
diff --git a/src/tests/end_to_end/perf/BUILD.gn b/src/tests/end_to_end/perf/BUILD.gn
index 38d358d..bb8141e 100644
--- a/src/tests/end_to_end/perf/BUILD.gn
+++ b/src/tests/end_to_end/perf/BUILD.gn
@@ -232,7 +232,6 @@
"//src/experiences/benchmarks/bin/scroll_flutter:scroll-flutter",
# These are used by storage_benchmarks_test
- "//src/storage/bin/odu:odu",
"//src/storage/bin/start-storage-benchmark:start-storage-benchmark",
]
}