lttng-dev Archive mirror
 help / color / mirror / Atom feed
From: Mathieu Desnoyers via lttng-dev <lttng-dev@lists.lttng.org>
To: Norbert Lange <nolange79@gmail.com>
Cc: lttng-dev <lttng-dev@lists.lttng.org>
Subject: Re: [lttng-dev] [PATCH v2 2/2] lttng_ust_init_thread: call urcu_register_thread
Date: Mon, 1 Aug 2022 11:13:24 -0400 (EDT)	[thread overview]
Message-ID: <390803304.93584.1659366804771.JavaMail.zimbra@efficios.com> (raw)
In-Reply-To: <20220801143700.160380-2-norbert.lange@andritz.com>

----- On Aug 1, 2022, at 10:37 AM, Norbert Lange nolange79@gmail.com wrote:

> From: Norbert Lange <nolange79@gmail.com>
> 
> Eagerly register the thread, and avoid taking mutex during the
> first tracepoint.

Merged, thanks!

Mathieu

> 
> Signed-off-by: Norbert Lange <nolange79@gmail.com>
> Acked-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
> ---
> src/lib/lttng-ust/lttng-ust-comm.c | 2 ++
> 1 file changed, 2 insertions(+)
> 
> diff --git a/src/lib/lttng-ust/lttng-ust-comm.c
> b/src/lib/lttng-ust/lttng-ust-comm.c
> index 0a039fef..0fe2da46 100644
> --- a/src/lib/lttng-ust/lttng-ust-comm.c
> +++ b/src/lib/lttng-ust/lttng-ust-comm.c
> @@ -447,6 +447,8 @@ void lttng_ust_init_thread(void)
> 	 * this thread attempts to use them.
> 	 */
> 	lttng_ust_common_init_thread(LTTNG_UST_INIT_THREAD_MASK);
> +
> +	lttng_ust_urcu_register_thread();
> }
> 
> int lttng_get_notify_socket(void *owner)
> --
> 2.35.1

-- 
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com
_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

  reply	other threads:[~2022-08-01 15:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-01 14:36 [lttng-dev] [PATCH v2 1/2] lttng_ust_init_thread: initialise cached context values Norbert Lange via lttng-dev
2022-08-01 14:37 ` [lttng-dev] [PATCH v2 2/2] lttng_ust_init_thread: call urcu_register_thread Norbert Lange via lttng-dev
2022-08-01 15:13   ` Mathieu Desnoyers via lttng-dev [this message]
2022-08-01 15:11 ` [lttng-dev] [PATCH v2 1/2] lttng_ust_init_thread: initialise cached context values Mathieu Desnoyers via lttng-dev

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=390803304.93584.1659366804771.JavaMail.zimbra@efficios.com \
    --to=lttng-dev@lists.lttng.org \
    --cc=mathieu.desnoyers@efficios.com \
    --cc=nolange79@gmail.com \
    /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 read-only IMAP folder(s) and NNTP newsgroup(s).