From: "Yordan Karadzhov (VMware)" <y.karadz@gmail.com>
To: rostedt@goodmis.org
Cc: linux-trace-devel@vger.kernel.org,
"Yordan Karadzhov (VMware)" <y.karadz@gmail.com>
Subject: [PATCH 2/4] kernel-shark: Allow KsCaptureControl widget to print text to the console
Date: Wed, 24 Jul 2019 18:40:37 +0300 [thread overview]
Message-ID: <20190724154039.23705-3-y.karadz@gmail.com> (raw)
In-Reply-To: <20190724154039.23705-1-y.karadz@gmail.com>
This will be used to show Warning messages.
Signed-off-by: Yordan Karadzhov (VMware) <y.karadz@gmail.com>
---
kernel-shark/src/KsCaptureDialog.cpp | 3 +++
kernel-shark/src/KsCaptureDialog.hpp | 6 ++++++
2 files changed, 9 insertions(+)
diff --git a/kernel-shark/src/KsCaptureDialog.cpp b/kernel-shark/src/KsCaptureDialog.cpp
index 888ffea..6e526ff 100644
--- a/kernel-shark/src/KsCaptureDialog.cpp
+++ b/kernel-shark/src/KsCaptureDialog.cpp
@@ -437,6 +437,9 @@ void KsCaptureMonitor::connectMe(QProcess *proc, KsCaptureControl *ctrl)
connect(ctrl, &KsCaptureControl::argsReady,
this, &KsCaptureMonitor::_argsReady);
+
+ connect(ctrl, &KsCaptureControl::print,
+ this, &KsCaptureMonitor::print);
}
void KsCaptureMonitor::_captureStarted()
diff --git a/kernel-shark/src/KsCaptureDialog.hpp b/kernel-shark/src/KsCaptureDialog.hpp
index b168a2b..f8ddf4a 100644
--- a/kernel-shark/src/KsCaptureDialog.hpp
+++ b/kernel-shark/src/KsCaptureDialog.hpp
@@ -40,6 +40,12 @@ signals:
/** This signal is emitted when the "Apply" button is pressed. */
void argsReady(const QString &args);
+ /**
+ * This signal is emitted when text has to be printed on the
+ * KsCaptureMonitor widget.
+ */
+ void print(const QString &message);
+
private:
tep_handle *_localTEP;
--
2.20.1
next prev parent reply other threads:[~2019-07-24 15:41 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-24 15:40 [PATCH 0/3] Fixes for Capture needed befor KS 1.0 Yordan Karadzhov (VMware)
2019-07-24 15:40 ` [PATCH 1/4] kernel-shark: kshark_import_event_filter() tolerates non-existing events Yordan Karadzhov (VMware)
2019-07-24 15:40 ` Yordan Karadzhov (VMware) [this message]
2019-07-24 15:40 ` [PATCH 3/4] kernel-shark: Handle errors when loading Capture configurations Yordan Karadzhov (VMware)
2019-07-24 15:40 ` [PATCH 4/4] kernel-shark: Handle corrupted configuration file for the Capture dialog Yordan Karadzhov (VMware)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190724154039.23705-3-y.karadz@gmail.com \
--to=y.karadz@gmail.com \
--cc=linux-trace-devel@vger.kernel.org \
--cc=rostedt@goodmis.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).