All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hongzhan Chen <hongzhan.chen@intel.com>
To: xenomai@xenomai.org
Subject: [PATCH v2 1/2] cobalt/trace: dovetail: improve xntrace_user_stop and xntrace_user_start
Date: Sun, 28 Nov 2021 20:03:56 -0500	[thread overview]
Message-ID: <20211129010357.20263-1-hongzhan.chen@intel.com> (raw)

xntrace_user_stop is widely similar to xntrace_user_freeze, call
trace_cobalt_trigger to improve it and also make xntrace_user_start visible
to balance them.

Signed-off-by: Hongzhan Chen <hongzhan.chen@intel.com>
---
 include/cobalt/kernel/dovetail/pipeline/trace.h | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/include/cobalt/kernel/dovetail/pipeline/trace.h b/include/cobalt/kernel/dovetail/pipeline/trace.h
index 513d9b48b..479191e0e 100644
--- a/include/cobalt/kernel/dovetail/pipeline/trace.h
+++ b/include/cobalt/kernel/dovetail/pipeline/trace.h
@@ -45,13 +45,14 @@ static inline int xntrace_max_reset(void)
 
 static inline int xntrace_user_start(void)
 {
-	TODO();
+	trace_cobalt_trigger("user-start");
 	return 0;
 }
 
 static inline int xntrace_user_stop(unsigned long v)
 {
-	TODO();
+	trace_cobalt_trace_longval(0, v);
+	trace_cobalt_trigger("user-stop");
 	return 0;
 }
 
-- 
2.17.1



             reply	other threads:[~2021-11-29  1:03 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-29  1:03 Hongzhan Chen [this message]
2021-11-29  1:03 ` [PATCH v2 2/2] cobalt/trace: dovetail: remove TODO and return -ENOSYS for unportable features Hongzhan Chen
2021-11-29  7:58   ` Jan Kiszka
2021-11-30  1:07     ` Chen, Hongzhan
2021-11-30  6:41       ` Jan Kiszka
2021-11-30  6:56         ` Chen, Hongzhan
2021-11-30  7:11           ` Jan Kiszka
2021-11-29  7:55 ` [PATCH v2 1/2] cobalt/trace: dovetail: improve xntrace_user_stop and xntrace_user_start Jan Kiszka

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=20211129010357.20263-1-hongzhan.chen@intel.com \
    --to=hongzhan.chen@intel.com \
    --cc=xenomai@xenomai.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.