From owner-freebsd-dtrace@freebsd.org Mon Mar 2 17:28:00 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 03903254D3A for ; Mon, 2 Mar 2020 17:28:00 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: from mail-qt1-x841.google.com (mail-qt1-x841.google.com [IPv6:2607:f8b0:4864:20::841]) (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 48WRtP4v4vz3FHj for ; Mon, 2 Mar 2020 17:27:57 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: by mail-qt1-x841.google.com with SMTP id t13so565152qto.3 for ; Mon, 02 Mar 2020 09:27:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=0t1UhJ60G6QEavk0useCodBXzc4WjqncXwpB+LvWP9Q=; b=sn5R+adfHGDSXe2Tx3EBBLIIS+Tu7/REhOML+FsxA1C7yjOl1oj5WxgdbzdtP39TOq zB5EG0PGuTaEmYVxhZ/STlffh8tm/EA+qgxEjaA8QVZOOFZHrzDJxzE73dKCWHl3mlKK 7V6FfKIvaEZw5b7nTV9lMZdPhAfbbhNEnHjSol4SbbZKNCiQJ4ZCb0p4Nt8xQg/vjsOq FCU3ZpDcO7FLPt6QkXwGLGKR3fby6KgdLKWpL9+fRFdlKs5Q3SAXENJEntf8RDDCGy3m 4vP1v6nvmcH6Vh3DbXJgnic4/KAdzPKqAimfg4dLtlPFBXXJzWGlC1tDmlwdldS+zMy1 DotA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to; bh=0t1UhJ60G6QEavk0useCodBXzc4WjqncXwpB+LvWP9Q=; b=snd5M+b7aONCfSu3bW17Vvi2EqLGmw9ixZek1pUcLPwCYzPdlwYYEeSyPDzYEKYzvQ MAfVoa4FnIfho+Mpbsbf6tCAqThwVDLPKS4qQinVVa0CK/yO6vgqJMwaE5X9pAhahx8p 3N88VI7/iPqCAHRTs6e1XcGXWCvW9uFzGM7J9EUXkXD0H3vNEAQOiUIxpvqT2hrOmwqm nOCFrw5uHy2RFk7RYBcKmy4g+Cfu/JID9y7qb3DIxAEpFDcLPFdszQ7xiy/TbA8X9+A8 O02LaWkJ+yc+SXfVO9c/vWnhpcXVYMPdKy6c2kpG7Vyum+7RHy2IEH9n6bBrB4xWUU8e vVtw== X-Gm-Message-State: ANhLgQ1HI3822GSzH/mYqjOmQg6QlHXded2lHrKotszTFZQKirR6g6Gc 5ScDdhtGhTpAd4QWcSrMeEc= X-Google-Smtp-Source: ADFU+vu1wAOQteDCeCsJUbPBTnEQ9KXXSuxgqXhvTG/95AxQDugHOGhIoNIyWe4UfGqTl1ZRcfL7uA== X-Received: by 2002:ac8:4cd1:: with SMTP id l17mr747196qtv.165.1583170075107; Mon, 02 Mar 2020 09:27:55 -0800 (PST) Received: from spy (ip-45-3-14-96.user.start.ca. [45.3.14.96]) by smtp.gmail.com with ESMTPSA id b5sm10308560qkh.58.2020.03.02.09.27.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Mar 2020 09:27:53 -0800 (PST) Sender: Mark Johnston Date: Mon, 2 Mar 2020 12:27:52 -0500 From: Mark Johnston To: Kamal Prasad Cc: freebsd-dtrace@freebsd.org Subject: Re: set argument Message-ID: <20200302172752.GD26104@spy> References: <20200302161350.GB26104@spy> <2D6C721A-C868-4D4F-90CD-9D57BC783ADF@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2D6C721A-C868-4D4F-90CD-9D57BC783ADF@gmail.com> X-Rspamd-Queue-Id: 48WRtP4v4vz3FHj X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=sn5R+adf; dmarc=none; spf=pass (mx1.freebsd.org: domain of markjdb@gmail.com designates 2607:f8b0:4864:20::841 as permitted sender) smtp.mailfrom=markjdb@gmail.com X-Spamd-Result: default: False [-1.98 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; NEURAL_HAM_MEDIUM(-0.98)[-0.980,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-dtrace@freebsd.org]; DMARC_NA(0.00)[freebsd.org]; RCVD_COUNT_THREE(0.00)[3]; MIME_TRACE(0.00)[0:+]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[1.4.8.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]; IP_SCORE(-0.30)[ip: (2.05), ipnet: 2607:f8b0::/32(-1.86), asn: 15169(-1.66), country: US(-0.05)]; FORGED_SENDER(0.30)[markj@freebsd.org,markjdb@gmail.com]; FREEMAIL_TO(0.00)[gmail.com]; MID_RHS_NOT_FQDN(0.50)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[markj@freebsd.org,markjdb@gmail.com]; RCVD_TLS_ALL(0.00)[] 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:28:00 -0000 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. 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=YES. > > On Mar 2, 2020, at 9:43 PM, Mark Johnston wrote: > > > > On Mon, Mar 02, 2020 at 03:33:57PM +0530, Kamal R. Prasad wrote: > >> hello, > >> > >> 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*) > >> > >> 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; > >> }; > >> > >> typedef struct mystrust { > >> struct abc* myarg1; > >> struct def* myarg2 > >> }; > >> --------------- > >> > >> I want my probe to be able to access the typedeffor struct abc and struct > >> def. > > > > 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 " >