Lines Matching refs:argv
72 int main(int argc, char** argv) { in main() argument
75 if (android::base::Basename(argv[0]) == "simpleperf") { in main()
76 return RunSimpleperfCmd(argc, argv) ? 0 : 1; in main()
79 android::base::InitLogging(argv, android::base::StderrLogger); in main()
81 testdata_dir = std::string(dirname(argv[0])) + "/testdata"; in main()
83 if (strcmp(argv[i], "-t") == 0 && i + 1 < argc) { in main()
84 testdata_dir = argv[i + 1]; in main()
86 } else if (strcmp(argv[i], "--log") == 0) { in main()
89 if (!GetLogSeverity(argv[i], &log_severity)) { in main()
90 LOG(ERROR) << "Unknown log severity: " << argv[i]; in main()
107 testing::InitGoogleTest(&argc, argv); in main()
110 LOG(ERROR) << "testdata wasn't found. Use \"" << argv[0] << " -t <testdata_dir>\""; in main()