@@ -143,23 +143,14 @@ QStringList KsCaptureControl::getArgs()
QStringList argv;
argv << "record";
- argv << "-p" << _pluginsComboBox.currentText();
- if (_eventsWidget.all()) {
- argv << "-e" << "all";
- } else {
- QVector<int> evtIds = _eventsWidget.getCheckedIds();
- tep_event *event;
+ if (_pluginsComboBox.currentText() != "nop")
+ argv << "-p" << _pluginsComboBox.currentText();
- for (auto const &id: evtIds) {
- event = tep_find_event(_localTEP, id);
- if (!event)
- continue;
-
- argv << "-e" + QString(event->system) +
- ":" + QString(event->name);
- }
- }
+ if (_eventsWidget.all())
+ argv << "-e" << "all";
+ else
+ argv << _eventsWidget.getCheckedEvents(true);
argv << "-o" << outputFileName();
argv << _commandLineEdit.text().split(" ");
Do not include all events belonging to a given system if the whole system is selected. Add only the name of the system instead. Do not specify a plugin if the selected plugin is "nop". Suggested-by: Steven Rostedt (VMware) <rostedt@goodmis.org> Signed-off-by: Yordan Karadzhov (VMware) <y.karadz@gmail.com> --- kernel-shark/src/KsCaptureDialog.cpp | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-)