Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Push 2021 12 16 #356

Merged
merged 23 commits into from
Dec 16, 2021
Merged
Changes from 2 commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
2de1a80
add silent info option -s to pcm-memory, some additional fixes
rdobrowo Dec 2, 2021
c716f09
add client metrics to csv
rdobrowo Dec 2, 2021
5f6fe57
Merge pull request #98 from intel-innersource/rdobrowo/add_silent_option
rdementi Dec 2, 2021
b28f1df
Merge pull request #100 from intel-innersource/rdobrowo/add_client_me…
rdementi Dec 2, 2021
b014486
Merge remote-tracking branch 'opcm-github/master' into main
rdementi Dec 2, 2021
2293529
add -i option to pcm-iio.cpp
rdobrowo Dec 3, 2021
aba8b10
don't use perf API for uncore if uncore perf iMC interface is not ava…
rdementi Dec 3, 2021
1f39830
Merge pull request #102 from intel-innersource/rdementi/uncore-perf-A…
rdementi Dec 3, 2021
65f5d79
Merge pull request #103 from intel-innersource/rdobrowo/add_interatio…
rdementi Dec 3, 2021
8e4f027
Fix header in tab separated prints
rdobrowo Dec 8, 2021
807145a
Add update option
rdobrowo Dec 3, 2021
027fdf2
Merge pull request #105 from intel-innersource/rdobrowo/fix_tab_prints
rdementi Dec 8, 2021
16d8209
Merge pull request #104 from intel-innersource/rdobrowo/add_update_op…
rdementi Dec 8, 2021
6eae15e
free winring0 using DeinitOpenLibSys
rdementi Dec 10, 2021
fe9655c
pcm-raw: overhead reduction for single group collection
rdementi Dec 10, 2021
85cc23d
pcm-iio: add a test
rdementi Dec 10, 2021
f9dc60b
Merge pull request #109 from intel-innersource/various_2021_12_10
rdementi Dec 10, 2021
404cf77
robustness enhancements
rdementi Dec 15, 2021
3e8f623
Merge pull request #112 from intel-innersource/rdementi-robustness
rdementi Dec 15, 2021
e2f78f4
Add tsv event file support
rdobrowo Dec 10, 2021
800c19c
robustness enhancements
rdementi Dec 16, 2021
7aa76af
Merge pull request #117 from intel-innersource/rdementi-robustness-plus
rdementi Dec 16, 2021
1c7b5e2
Merge pull request #111 from intel-innersource/rdobrowo/add_tsv_support
rdementi Dec 16, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions pcm-iio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1122,8 +1122,9 @@ void print_usage(const string& progname)
<< " to a file, in case filename is provided\n";
cerr << " -csv-delimiter=<value> | /csv-delimiter=<value> => set custom csv delimiter\n";
cerr << " -human-readable | /human-readable => use human readable format for output (for csv only)\n";
cerr << " -i[=number] | /i[=number] => allow to determine number of iterations\n";
cerr << " Examples:\n";
cerr << " " << progname << " 1.0 => print counters every second\n";
cerr << " " << progname << " 1.0 -i=10 => print counters every second 10 times and exit\n";
cerr << " " << progname << " 0.5 -csv=test.log => twice a second save counter values to test.log in CSV format\n";
cerr << " " << progname << " -csv -human-readable => every 3 second print counters in human-readable CSV format\n";
cerr << "\n";
Expand All @@ -1145,6 +1146,7 @@ int main(int argc, char * argv[])
std::string csv_delimiter = ",";
std::string output_file;
double delay = PCM_DELAY_DEFAULT;
MainLoop mainLoop;
PCM * m = PCM::getInstance();

while (argc > 1) {
Expand All @@ -1168,6 +1170,9 @@ int main(int argc, char * argv[])
else if (check_argument_equals(*argv, {"-human-readable", "/human-readable"})) {
human_readable = true;
}
else if (mainLoop.parseArg(*argv)) {
continue;
}
else {
// any other options positional that is a floating point number is treated as <delay>,
// while the other options are ignored with a warning issues to stderr
Expand Down Expand Up @@ -1252,11 +1257,15 @@ int main(int argc, char * argv[])
output = &file_stream;
}

while (1) {
mainLoop([&]()
{
collect_data(m, delay, iios, counters);
vector<string> display_buffer = csv ?
build_csv(iios, counters, human_readable, csv_delimiter) :
build_display(iios, counters, pciDB);
display(display_buffer, *output);
};
return true;
});

exit(EXIT_SUCCESS);
}