From owner-freebsd-dtrace@freebsd.org Mon Mar 2 17:51:10 2020 Return-Path: Delivered-To: freebsd-dtrace@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 2C93125531D for ; Mon, 2 Mar 2020 17:51:10 +0000 (UTC) (envelope-from kamalpr@gmail.com) Received: from mail-pg1-x52d.google.com (mail-pg1-x52d.google.com [IPv6:2607:f8b0:4864:20::52d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48WSP84K35z3Hrv; Mon, 2 Mar 2020 17:51:08 +0000 (UTC) (envelope-from kamalpr@gmail.com) Received: by mail-pg1-x52d.google.com with SMTP id u12so161053pgb.10; Mon, 02 Mar 2020 09:51:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=nznFHoD9Qi7US2yT1T9qiWCO9w6pGdDKj8EDxvfgMPI=; b=K2zazImN1xs9FcBnpfLqadRkWgxaEPDLHjclSq8ZGtnO9znbDvLwYruMckj5WnN56a fYCKbJxbxDZlV+1T1fSRskeDhhGnALNqtZs6anuLamUEFrRmbqoNCYvANRj42nLV7A6B iLD+ZrtydHc24Da2Fooa4MKo73kkQU3NnHj/2rqWkD/ElwLJkyrmPSO2WNOyyUYyKHIX HxntNRR8JR/a9kfHiXDSD1rYdP6RttKtAXLSJkc4WJSzB39uh8dCbagcaYzHgFindqNA DOd4+nP1cseb08+TY9TQzhEhUKoRcU6Q6a6c1NlEpxv8jyWnE7L3zpMaLow7sTr3roKl LHuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=nznFHoD9Qi7US2yT1T9qiWCO9w6pGdDKj8EDxvfgMPI=; b=bX0MDAXATid40Kltt03Hv1h4lrg/JjjhRdyR7vTgOU22Pgp1+/4lbcnwymNu8VlBnV tJGyf2m0btOBfzbMCBDMeeeBg/Q31vjuGpfwYvuAy/Z1C/3vafWPBqV3/VebXa9hIUiR vajBwDs86tj79eyp30ZTzKcc8PD/f3wIu3uUzjfalN516JjkO/Ar0FPwCsD/Wer1IaQG UZLIUjwEUkU0B/aTz4Ko4Yds9C4LMKWtWcv7FPF7gm227zbP0XQlW32OMTi2Mqoh1AOa 8wA7beRkl1EWJrNnjNBvTXi+rZ/VZsLpKtqpbD/j52q8/fZYvoQyygoc270T4fSeTZVg DrMg== X-Gm-Message-State: ANhLgQ1aeGeZy1mUTjqNLDSCXhNA6rRUwX5rL7UPFUxcS3erD0e+MZeC CmxGQkUuou4whE0pseFuuT3F8ds= X-Google-Smtp-Source: ADFU+vu2SLleiD74sDcMgL4+lVisvdOB1U52THFEOPYT4jXQRBDfaRaVW6KbV0ruJnP3c/5pVKWM0g== X-Received: by 2002:a63:385e:: with SMTP id h30mr85792pgn.230.1583171466762; Mon, 02 Mar 2020 09:51:06 -0800 (PST) Received: from [192.168.1.3] ([122.179.30.234]) by smtp.gmail.com with ESMTPSA id f3sm21280726pga.38.2020.03.02.09.51.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 02 Mar 2020 09:51:06 -0800 (PST) From: Kamal Prasad Message-Id: <195BCF76-F75E-49D3-A5F6-3D3A8DE28206@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: set argument Date: Mon, 2 Mar 2020 23:25:11 +0530 In-Reply-To: <20200302172752.GD26104@spy> Cc: freebsd-dtrace@freebsd.org To: Mark Johnston References: <20200302161350.GB26104@spy> <2D6C721A-C868-4D4F-90CD-9D57BC783ADF@gmail.com> <20200302172752.GD26104@spy> X-Mailer: Apple Mail (2.3273) X-Rspamd-Queue-Id: 48WSP84K35z3Hrv X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=K2zazImN; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of kamalpr@gmail.com designates 2607:f8b0:4864:20::52d as permitted sender) smtp.mailfrom=kamalpr@gmail.com X-Spamd-Result: default: False [-1.46 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; MV_CASE(0.50)[]; URI_COUNT_ODD(1.00)[7]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RECEIVED_SPAMHAUS_PBL(0.00)[234.30.179.122.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.11]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.96)[-0.964,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; IP_SCORE(0.00)[ip: (-8.79), ipnet: 2607:f8b0::/32(-1.86), asn: 15169(-1.66), country: US(-0.05)]; IP_SCORE_FREEMAIL(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[d.2.5.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; RCVD_TLS_ALL(0.00)[] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-dtrace@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "A discussion list for developers working on DTrace in FreeBSD." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Mar 2020 17:51:10 -0000 There are some headers which are not getting picked up e.g.:- if.h on = arm. Even otherwise, if I set WITH_CTF=3DYES, will include a proprietary = header file automatically? You might be having a list somewhere to = specify on which files ctfconvert is run when building the kernel. > On Mar 2, 2020, at 10:57 PM, Mark Johnston wrote: >=20 > On Mon, Mar 02, 2020 at 10:32:31PM +0530, Kamal Prasad wrote: >> In userspace. Where do you provide information so that dtrace can = automatically see sys/net/route.h structs like struct rtentry? >> I want to add some more files so that their structs are also = automatically seen by dtrace. >=20 > Currently this is done by running ctfconvert on each object file, and = by > running ctfmerge on the output file (usually an executable or shared > lib) of the build. If you're using FreeBSD's build infrastructure it > should be sufficient to just set WITH_CTF=3DYES. >=20 >>> On Mar 2, 2020, at 9:43 PM, Mark Johnston wrote: >>>=20 >>> On Mon, Mar 02, 2020 at 03:33:57PM +0530, Kamal R. Prasad wrote: >>>> hello, >>>>=20 >>>> How does dtrace access the argument type declarations when we = define a new >>>> SDT? eg:- I define an SDT that has arg0 as (struct mystrust*) >>>>=20 >>>> I have defined in my proprietary header file >>>> --------------- >>>> typedef struct abc { >>>> int a; >>>> int b; >>>> int c; >>>> }; >>>> typedef struct def { >>>> int d; >>>> int e; >>>> int f; >>>> }; >>>>=20 >>>> typedef struct mystrust { >>>> struct abc* myarg1; >>>> struct def* myarg2 >>>> }; >>>> --------------- >>>>=20 >>>> I want my probe to be able to access the typedeffor struct abc and = struct >>>> def. >>>=20 >>> Is this in the kernel or userspace? We automatically build the = kernel >>> with CTF info included, so dtrace should be able to see the = structure >>> definitions automatically. >>> _______________________________________________ >>> freebsd-dtrace@freebsd.org = > = mailing list >>> https://lists.freebsd.org/mailman/listinfo/freebsd-dtrace = > >>> To unsubscribe, send any mail to = "freebsd-dtrace-unsubscribe@freebsd.org = = >"