From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id tIrgEWUApWAgOQAAWB0awg (envelope-from ) for ; Wed, 19 May 2021 08:11:17 -0400 Received: by simark.ca (Postfix, from userid 112) id 381B31F11C; Wed, 19 May 2021 08:11:17 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_REPLYTO_END_DIGIT,MAILING_LIST_MULTI, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.lttng.org (lists.lttng.org [167.114.26.123]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 9E0411E54D for ; Wed, 19 May 2021 08:11:16 -0400 (EDT) Received: from lists-lttng01.efficios.com (localhost [IPv6:::1]) by lists.lttng.org (Postfix) with ESMTP id 4FlWtW6RR3z1qcF; Wed, 19 May 2021 08:11:15 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lists.lttng.org; s=default; t=1621426276; bh=N9hKLmBL3Fd3lXcsfAbfCWXaOeDZ5Uoysr0GywVp6HU=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=DMgn222iqu2VW9mkh/XcdtBAL5Aa8FktAgNLkTLi5wBmHnjwtrFx2rNsO2xJRQoFu mMPS33YbdLR3Uoqj0pvAtqTPW9Gvb8f020lQsTKF6BaOw3XH261kQXl7ZePn3qZHJO 0HbmvMGkAZrqAPqLnNbA3+8SkNDOWkbYjcaQKOKuQtpruGwQMwEwd5wCHHzFmmkNwY SaMoIzTKVu0wk5MPS70BTzlJx3WtCgPFR9rLGRcq8baDFfXK4H0175UtFZFbDxOSB0 XISL8mAkHvDyhNMvIdvnT++9svskD6d3GuP78gPQBaJFMaKSVzoZGkEGykikjy9kTq xrpJ/yXzo7XQA== Received: from mail-ot1-x335.google.com (mail-ot1-x335.google.com [IPv6:2607:f8b0:4864:20::335]) by lists.lttng.org (Postfix) with ESMTPS id 4FlWtW0tDFz1qnd for ; Wed, 19 May 2021 08:11:14 -0400 (EDT) Received: by mail-ot1-x335.google.com with SMTP id i14-20020a9d624e0000b029033683c71999so361907otk.5 for ; Wed, 19 May 2021 05:11:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=qDHdOonpeQY18hBWUZrZHQa/VxxasAZxjSXiKMNLF5Q=; b=ctHTQ9nRnWFqDbpSlnLV40PGHq7qHUonOSDgio1VRfUgH4LEPNtoS86EOefxOWMh74 lZdAWfrKoiQWzV0BZ7xZiyXMm5cWByJotAQvmZygUpB2wTX9RxU6YNcR9XZ+vgP15z9i QPWh6vL8465uN/3Rg0sN42Xxy7rZ0jUIAYno2bOopDsj6gbSJ2oYL7lOvX8v1NZSfcuc bJ4N7K8vKHs8tylRfwaxIS0FnVbDrZCz8bfTGEppS4HpDP2lPirOw1uRG29XKBpAOs69 IHjzv1827q8+WxH6dp+P22ELM2qWdLmdZLcTMlruHHjSUnSatLeQlrqfy4FRJ5njChg8 CVVQ== X-Gm-Message-State: AOAM530dJIxuBt1BeD/2Jbr6KbfcjyTL1H6LWBwblJbphyofU3rhc82M SnH7EKiJ0oZCNWNZbe84IYSQa5UOks60KfQ+KTB+KVPUyHT3vA== X-Google-Smtp-Source: ABdhPJynesghdSNYqYFN7SsCkj7k2vFxYPBICXyGGeOd2temx+Kw8W5GoEZCzNzehnkFDQx4g1wI48rezazwRZySi90= X-Received: by 2002:a9d:7612:: with SMTP id k18mr8638934otl.178.1621426274092; Wed, 19 May 2021 05:11:14 -0700 (PDT) MIME-Version: 1.0 Date: Wed, 19 May 2021 14:11:03 +0200 Message-ID: To: lttng-dev Subject: [lttng-dev] reading context fields causes syscalls X-BeenThere: lttng-dev@lists.lttng.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: LTTng development list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Norbert Lange via lttng-dev Reply-To: Norbert Lange Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: lttng-dev-bounces@lists.lttng.org Sender: "lttng-dev" Hello, Several context fields will cause a syscall atleast the first time a tracepoint is recorded. For example all of the following: `lttng add-context -c chan --userspace --type=vpid --type=vtid --type=procname` Each of them seems cached in TLS however, and most should never change after startup. As I am using Lttng over Xenomai, syscalls are strictly forbidden, I would like to have some function that prepares all data, which I can call on each thread before it switches to realtime work. Kinda similar to urcu_bp_register_thread, I'd like to have some `lttng_ust_warmup_thread` function that fetches the context values that can be cached. (urcu_bp_register_thread should be called there aswell) I considered just doing a tracepoint, but AFAIK the channel can be changed/configured after the process is running. So this is not robust enough. regards, Norbert _______________________________________________ lttng-dev mailing list lttng-dev@lists.lttng.org https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev