Add a warning to the atrace binary for deprecating vendor categories

The atrace HAL will be deprecated soon, so vendors will no longer use
it to provide atrace vendor defined categories.
Perfetto will be the tool to replace atrace for that need.
This commit it an attempt to give users a heads up (and maybe help us
find those users).

Test: build and use atrace on Cuttlefish
Bug: 204935495
Change-Id: I9f054e6b07e66d63456d40390fd59ab0913e5f43
diff --git a/cmds/atrace/atrace.cpp b/cmds/atrace/atrace.cpp
index 9bd733d..b94f3da 100644
--- a/cmds/atrace/atrace.cpp
+++ b/cmds/atrace/atrace.cpp
@@ -1194,6 +1194,11 @@
     bool traceStream = false;
     bool onlyUserspace = false;
 
+    fprintf(stderr,
+            "** Warning: atrace will end vendor support in the next Android Release. **\n"
+            "** Perfetto is the suggested replacement tool. It will gain vendor      **\n"
+            "** support. See https://perfetto.dev/docs/quickstart/android-tracing    **\n\n");
+
     if (argc == 2 && 0 == strcmp(argv[1], "--help")) {
         showHelp(argv[0]);
         exit(0);