From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id QppeDV3MF2AbfwAAWB0awg (envelope-from ) for ; Mon, 01 Feb 2021 04:39:41 -0500 Received: by simark.ca (Postfix, from userid 112) id 29B401EF80; Mon, 1 Feb 2021 04:39:41 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HTML_MESSAGE,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) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 5D0761E939 for ; Mon, 1 Feb 2021 04:39:40 -0500 (EST) Received: from lists-lttng01.efficios.com (localhost [IPv6:::1]) by lists.lttng.org (Postfix) with ESMTP id 4DTjZz5bmyz16Qs; Mon, 1 Feb 2021 04:39:39 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lists.lttng.org; s=default; t=1612172380; bh=JXnn/hwCE3at1f0NrnLCbmW7rg7pvMAZ/o7ZIwHN0zo=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=v/Wn7+kt5zC6KJy0BrogaUSbYFFeEGuX2a1HRfbgSxbSPE0zeHOg+TuTADLo+KfaS lgliY4jHr+omACVN50MI718E+5wdfIZqh/118fM1L+syBbzWjxch++WLklckVFNbQE yH8hzwc0aDSswuJEeZDGs2CY7qSXRjA9kfTnB65TuH9rdL42bccjs8erpHymfOxl0m ICEQ5VXV4u5w1Meo2YscMWseDXSn2MBvsnDvfVn4aqhSnyLoQAkFhSciElUTa5BpGw eGAOj4cfPVwur1A98Pbj76e2M0M1NZNHqpTNuC29CvtcI3oIPxmcpJN0a4DaJRHwrW LB0236ULMlKaw== Received: from sainfoin-smtp-out.extra.cea.fr (sainfoin-smtp-out.extra.cea.fr [132.167.192.228]) by lists.lttng.org (Postfix) with ESMTPS id 4DTjZx6y4gz16Qr for ; Mon, 1 Feb 2021 04:39:37 -0500 (EST) Received: from pisaure.intra.cea.fr (pisaure.intra.cea.fr [132.166.88.21]) by sainfoin-sys.extra.cea.fr (8.14.7/8.14.7/CEAnet-Internet-out-4.0) with ESMTP id 1119COLJ034872 for ; Mon, 1 Feb 2021 10:12:24 +0100 Received: from pisaure.intra.cea.fr (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id DFEA4203377 for ; Mon, 1 Feb 2021 10:12:24 +0100 (CET) Received: from muguet1-smtp-out.intra.cea.fr (muguet1-smtp-out.intra.cea.fr [132.166.192.12]) by pisaure.intra.cea.fr (Postfix) with ESMTP id D44AE2033D0 for ; Mon, 1 Feb 2021 10:12:24 +0100 (CET) Received: from EXCAH-A3.intra.cea.fr (excah-a3.intra.cea.fr [132.166.88.77]) by muguet1-sys.intra.cea.fr (8.14.7/8.14.7/CEAnet-Internet-out-4.0) with ESMTP id 1119COUQ031844 for ; Mon, 1 Feb 2021 10:12:24 +0100 Received: from EXDAG0-B1.intra.cea.fr ([fe80::c18e:d8e8:9a27:5b84]) by EXCAH-A3.intra.cea.fr ([fe80::60de:a77e:427d:f7e6%10]) with mapi id 14.03.0487.000; Mon, 1 Feb 2021 10:12:24 +0100 To: "lttng-dev@lists.lttng.org" Thread-Topic: [barectf] model.emf.uri Thread-Index: Adb4dRUTHPyxt9YlQ6yuhA5fxQglvw== Date: Mon, 1 Feb 2021 09:12:24 +0000 Message-ID: <386C5D4D5C53C24CBC2C60CAAFD2136A5B4A40A0@EXDAG0-B1.intra.cea.fr> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [132.167.194.33] x-tm-as-product-ver: SMEX-11.0.0.4179-8.100.1062-25946.003 x-tm-as-result: No--5.015000-0.000000-31 x-tm-as-user-approved-sender: Yes x-tm-as-user-blocked-sender: No MIME-Version: 1.0 Subject: [lttng-dev] [barectf] model.emf.uri X-BeenThere: lttng-dev@lists.lttng.org X-Mailman-Version: 2.1.31 Precedence: list List-Id: LTTng development list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: RADERMACHER Ansgar via lttng-dev Reply-To: RADERMACHER Ansgar Content-Type: multipart/mixed; boundary="===============4708785958369988666==" Errors-To: lttng-dev-bounces@lists.lttng.org Sender: "lttng-dev" --===============4708785958369988666== Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_386C5D4D5C53C24CBC2C60CAAFD2136A5B4A40A0EXDAG0B1intrace_" --_000_386C5D4D5C53C24CBC2C60CAAFD2136A5B4A40A0EXDAG0B1intrace_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello, we're currently working on CTF code instrumentation in the C++ code generat= ion from Papyrus. Unlike in a previous version, we use BareCTF. In this context, the metadata tag "model.emf.uri" can contain the URI of th= e element to trace. This works fine in TraceCompass, if we manually add the= URI to the metadata, as shown below. But I have not been able to add an en= try to BareCTF's config.yaml that produces the model.emf.uri in the generat= ed metadata file. Is it possible? I could not find an suitable example in the documentation - I experimented = with the "specific-context-field-type", but it also adds a parameter to the= generated C code functions which is not what I want. Best regards Ansgar ... event { stream_id =3D 0; id =3D 1; name =3D "state_C1_FirstState_state"; model.emf.uri =3D "platform:/resource/DemoTrace/DemoTrace.uml#_AVreJm9f= EeqJeI8mbLLRcg"; fields :=3D struct { string { encoding =3D UTF8; } instanceId; } align(1); }; --_000_386C5D4D5C53C24CBC2C60CAAFD2136A5B4A40A0EXDAG0B1intrace_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hello,

we're currently working on CTF code instrumentation in the C++= code generation from Papyrus. Unlike in a previous version, we use BareCTF= .

In this context, the metadata tag "model.emf.uri" can contai= n the URI of the element to trace. This works fine in TraceCompass, if we m= anually add the URI to the metadata, as shown below. But I have not been ab= le to add an entry to BareCTF's config.yaml that produces the model.emf.uri in the generated metadata file. Is it poss= ible?

I could not find an suitable example in the documentation - I experime= nted with the "specific-context-field-type", but it also adds a p= arameter to the generated C code functions which is not what I want.

Best regards

Ansgar


...
event {
    stream_id =3D 0;
    id =3D 1;
    name =3D "state_C1_FirstState_state";
    model.emf.uri =3D "platform:/resource/DemoTrace/Dem= oTrace.uml#_AVreJm9fEeqJeI8mbLLRcg";
    fields :=3D struct {
        string {
            encoding =3D UTF8;=
        } instanceId;
    } align(1);
};
--_000_386C5D4D5C53C24CBC2C60CAAFD2136A5B4A40A0EXDAG0B1intrace_-- --===============4708785958369988666== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ lttng-dev mailing list lttng-dev@lists.lttng.org https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev --===============4708785958369988666==--