From owner-freebsd-dtrace@freebsd.org Sun Aug 5 04:44:07 2018 Return-Path: Delivered-To: freebsd-dtrace@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D80931064425 for ; Sun, 5 Aug 2018 04:44:07 +0000 (UTC) (envelope-from khanzf@gmail.com) Received: from mail-it0-x236.google.com (mail-it0-x236.google.com [IPv6:2607:f8b0:4001:c0b::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6FC467A1BC for ; Sun, 5 Aug 2018 04:44:07 +0000 (UTC) (envelope-from khanzf@gmail.com) Received: by mail-it0-x236.google.com with SMTP id j81-v6so11598744ite.0 for ; Sat, 04 Aug 2018 21:44:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=3CW5jMiCabVjgJGGD+bA7/VOYMs7+A3vCrakWmwputw=; b=I9y0vZkzCGE+lD2gtaEefxNjmxTbdeicmWuUwszy7Pv6SiQZ6oh7BSc+ZbMFQ6HWmX +nsX4xZkDkoxjUuwoo+Pnrl19d/36dwcMPHRs+/pBjMi6C5g8iZBedvs+662xyU4NCuF K4Vql+1je2Yd5QGZto9gM9yL2X0gvCnajH6aRVBdcfzJ9bXLHIqv2NiFuKTkcUjijjiq KuXqgpLwOzqlsUTkbR44OTkkJd6ibGCtQ8DA8kHqDckasyD8WSX5fmmy+PrwMHLQ7Sfg qsIC/83uH6ZlZoPat9YxfhhyFGUHB+M1tVE2Z78erIwDE3Oh/CL8gv86ZAUgGbWU5W39 BvGQ== 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=3CW5jMiCabVjgJGGD+bA7/VOYMs7+A3vCrakWmwputw=; b=Y+d4M6Hn18NbPzO2VnNDiiR60aIUrBRAPhrx+v3ZcXzoCEeu6tklUPpJekhkmpwa9v dq6y0/AHfw0LSvGs8hpFIE26Dt0flbgb4FhN0reKVb6xowyVq5p0IbSX4DHCbR3pGbpV MmmfAB9aZ1sbUmELxOsFcFytBTlY95EGI8w67FPrZeYii7Vr58DB5zvel9RXFRa+e4wn 8I1/grfuURvCHi70/dNzrmn5Ugd0xGMWe6cemxhlgX4lmuhn4Lm9VstRSTLoJHMDV5Ux JLYoYDde+eRH4KdlLtiKROdJcgxEHxryWZe+0/3dXRyA0u3cRmKeoDt/wfeygqRWYrO2 V8Aw== X-Gm-Message-State: AOUpUlFhKgmsIE+CiXOxXdNN89BKyvevmsHQ3t3raoLJAHWLrAFiqJYD u11xT0TfJKCpDmqP+A696QfN45pZ6iHrXiEBpcJjUtMwiZI= X-Google-Smtp-Source: AAOMgpfZqYdpooVEymJo6FIh0pzCFUxvpqXyGthIfI+MXPIo5FncNXZ3TbMICRq/ERiAhK56IZooXQdTVcpR7bd0TMo= X-Received: by 2002:a24:e51a:: with SMTP id g26-v6mr11179495iti.43.1533444246452; Sat, 04 Aug 2018 21:44:06 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:ac0:8101:0:0:0:0:0 with HTTP; Sat, 4 Aug 2018 21:43:46 -0700 (PDT) From: Farhan Khan Date: Sun, 5 Aug 2018 00:43:46 -0400 Message-ID: Subject: Include header files in dtrace scripts To: freebsd-dtrace@freebsd.org Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-dtrace@freebsd.org X-Mailman-Version: 2.1.27 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: Sun, 05 Aug 2018 04:44:08 -0000 Hi all, I am trying to run dtrace on some net80211 functions in the kernel. Rather than recreate my own version of several fairly large structs, which would be a lot of work, I would like to just include net80211/ieee80211_var.h and related headers. Brendan Gregg's book has examples of using #include, but when I do this: --------------- #!/usr/sbin/dtrace -s #include #include #include #include --------------- I get this error: --------------- $ sudo ./newstate.d dtrace: failed to compile script ./newstate.d: line 3: invalid control directive: #include --------------- Is there a way to include header files and get their subsequent structs? Thanks, -- Farhan Khan PGP Fingerprint: B28D 2726 E2BC A97E 3854 5ABE 9A9F 00BC D525 16EE From owner-freebsd-dtrace@freebsd.org Sun Aug 5 12:07:18 2018 Return-Path: Delivered-To: freebsd-dtrace@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8FA501051155 for ; Sun, 5 Aug 2018 12:07:18 +0000 (UTC) (envelope-from domagoj.stolfa@gmail.com) Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E12428DE5A for ; Sun, 5 Aug 2018 12:07:17 +0000 (UTC) (envelope-from domagoj.stolfa@gmail.com) Received: by mail-wr1-x431.google.com with SMTP id h15-v6so9662878wrs.7 for ; Sun, 05 Aug 2018 05:07:17 -0700 (PDT) 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=uSHWR8C928URHzI12BKsnG6nF6ya/YFmD5FC1znZIuo=; b=Hp+M9UytglN24gCRBoipjUHqObqb9ZWFrja4hoDCS/XFIR3IZfYlWyh9EBHf1L7bNe dMBg5zfSHf9kZRgXHLo0w/nBXobmSjq4yIuMEP9nP0HQd+MDysQXyTScL0mvLjzC33HF eg0Yj5yyQlBFQ2pHo8WUo7YY38Ke49QhQw6dbepexH9v21cjQSDpTKU4gVICne28FLxK Til53PsVlca2AOGrFx7ztcgxQPq3e1HYllME760buFcsezMD6HOHHEXHAda55xofiQIB iRzi5RrgGpBcbYpGnJBem3wdzfh3srXVpYREENuF0tkH+ndEpQB1bpO+BSNMDJnUl+x8 72cg== 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=uSHWR8C928URHzI12BKsnG6nF6ya/YFmD5FC1znZIuo=; b=pJfbuRDNmzYcuriDDXSUiVzV2yNjpf2f0LK1gOd3PpbfsQJB9zcrWB6zCtFEHvE5Oq sCwrt7H/Ys/CUNC5ztZhtAOucICmfCJWR01nkilKyVekvAtGaBvAykGCCzqtzc28BUSM 5eOp4ka2gih9kZ63sxGEE8bDiH02IvcOauUTu7YMssijIFKeGYo04AbfJlLTI6+2Ady4 6hD2TFft+fV+1yBNPzxxLCxzW34qqo3RoYVJvmFREiSkal9Se6IQ7SrxR98mx0ij8+A3 NXzAvIjRIJc9IhnfV6msc6kkGp1o2GBHNCxHlaYdbQOKkyv4PccdeqNk8ryDaHOV95Xy 5MKA== X-Gm-Message-State: AOUpUlEJ+5MOuT8mUegAj7CD6pRM27uwNg+qYplbKXVXh2q76GV3yt6q gr6ezYmvjGwr7U3zfJmMAbfJIn6Z X-Google-Smtp-Source: AAOMgpfmLXpaePxvjc2jgmICeu+koCIrMcqayrzVNVVzSlRHPeR47IBmgOyufsk1fSYUqzBYhGWlrA== X-Received: by 2002:a5d:434c:: with SMTP id u12-v6mr6483166wrr.189.1533470836853; Sun, 05 Aug 2018 05:07:16 -0700 (PDT) Received: from [192.168.10.106] (216-66.dsl.iskon.hr. [89.164.216.66]) by smtp.gmail.com with ESMTPSA id s5-v6sm6735505wro.33.2018.08.05.05.07.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 05 Aug 2018 05:07:16 -0700 (PDT) From: Domagoj Stolfa Message-Id: <893AB692-BC26-44B4-8DC8-D62B2F907F02@gmail.com> Content-Type: multipart/signed; boundary="Apple-Mail=_317472FC-497C-4AD6-A0DF-F3CF9340D676"; protocol="application/pgp-signature"; micalg=pgp-sha512 Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: Include header files in dtrace scripts Date: Sun, 5 Aug 2018 14:07:14 +0200 In-Reply-To: Cc: freebsd-dtrace@freebsd.org To: Farhan Khan References: X-Mailer: Apple Mail (2.3445.9.1) X-BeenThere: freebsd-dtrace@freebsd.org X-Mailman-Version: 2.1.27 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: Sun, 05 Aug 2018 12:07:18 -0000 --Apple-Mail=_317472FC-497C-4AD6-A0DF-F3CF9340D676 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi Farhan: You should call DTrace with -C, which is the C preprocessor: --------------- #!/usr/sbin/dtrace -Cs #include #include #include #include --------------- =E2=80=94 Domagoj > On 5 Aug 2018, at 06:43, Farhan Khan wrote: >=20 > Hi all, >=20 > I am trying to run dtrace on some net80211 functions in the kernel. > Rather than recreate my own version of several fairly large structs, > which would be a lot of work, I would like to just include > net80211/ieee80211_var.h and related headers. >=20 > Brendan Gregg's book has examples of using #include, but when I do = this: >=20 > --------------- > #!/usr/sbin/dtrace -s >=20 > #include > #include > #include > #include > --------------- >=20 > I get this error: >=20 > --------------- > $ sudo ./newstate.d > dtrace: failed to compile script ./newstate.d: line 3: invalid control > directive: #include > --------------- >=20 > Is there a way to include header files and get their subsequent = structs? >=20 > Thanks, >=20 > -- > Farhan Khan > PGP Fingerprint: B28D 2726 E2BC A97E 3854 5ABE 9A9F 00BC D525 16EE > _______________________________________________ > 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" --Apple-Mail=_317472FC-497C-4AD6-A0DF-F3CF9340D676 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEE37fRcHC0Iwiz+ZVEg+gksMBgNd0FAltm6HIACgkQg+gksMBg Nd2fKA//XS6c9mXUx0KCbIdc31qYlXk/M+imFJiyIqdQx4zB0TEvyVd+tONUiHqk rjRkDZqTfjaodZWrkVtyFzewi9jnrtDlbrgeSoNlyoY3ykXVJtTvY4mktmhhb8im jNjqCnHdc/pZpE96gkqsVwG1wnDyCehYzkDIYsDHcZs+b+lvkg2M3RTCsTP5AsHW UtPr1ePsrWIMH84GMVnHGhk34kwhPD2sgz6B+eYMN+ajSlNqMewm6xnVqg38Iuvz jM8cTAl6sui3otu7CTqpUIKuZVaopnAR+vU+jzn6C3O6oCGvYtthrY6OzgdAmcIO FNPF7SomYvnoR7E+h60WVcIjiO4PiarQRnQUgPveAKEt17d+oBvK/MpZ0C39xzwv 9aCZfopG8iBTslgIUZd4kxfjHx5j+D6ojauZJAx9VqahnDHcfpXGkcc/cbYA8DKB tDfAseVLTQz3ltXiuBB7Wyj4PvrkLz1c5oLsMJkNfFs/I7XTagCSUByf8tAjLIbS AFwhErH//C08vYsUaGrZzgdD4Xydm0AX70tCvD6xRkRi3NfudKN06cAuGlXCjUJp fUVapCaXEOw2jSE2bb25Xmp+qcUAsXHH5Hh6FSaJc6Xicxg1b2dH+6Kzj3vZEqOF ggDqXbekEoDyjY2DnqccbXv3D6A8l804Y7re+1nOHW73IeNxT9s= =keMT -----END PGP SIGNATURE----- --Apple-Mail=_317472FC-497C-4AD6-A0DF-F3CF9340D676-- From owner-freebsd-dtrace@freebsd.org Sun Aug 5 19:08:45 2018 Return-Path: Delivered-To: freebsd-dtrace@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 06602105ABD1 for ; Sun, 5 Aug 2018 19:08:45 +0000 (UTC) (envelope-from khanzf@gmail.com) Received: from mail-it0-x22b.google.com (mail-it0-x22b.google.com [IPv6:2607:f8b0:4001:c0b::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id DA26D729B4 for ; Sun, 5 Aug 2018 19:08:43 +0000 (UTC) (envelope-from khanzf@gmail.com) Received: by mail-it0-x22b.google.com with SMTP id h23-v6so15224625ita.5 for ; Sun, 05 Aug 2018 12:08:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=DWpqNA+OkRxxMk0l5H+OasrwwP6AOGudk+MQ1++rBhA=; b=IVjZz+JKWefhtEoMPk29YQJbm1zNE2xJWtXr6JVB8e/1P/kqwpPS9c+Cs7ZvdT/GWk aG9wPbNQHtSVZjqh/eRNIwPKg1Q9f+QGe9MEA6CqWrD1vl/s7F4t6qZkKqS97fEsnsiW BDp6SXQnFkyubAlemvKuYoY6tEF9iB8Tf9/VdJ1DfE3Wjf+0NtxS8Y7C5MSgX1ncVIY6 adN4thq4HwL72m3XzwO98oDJ64ARX6ie2WiwH/YN1dk/+ivLtPn/a6RYiGvkJnir6vtR izOWHbvaA4CfRzEi6LAccvr7KT3tWfwpUJ4D3K3WGi8T8AV+8FkoSb82ahs9FMTsjpQx U1yg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=DWpqNA+OkRxxMk0l5H+OasrwwP6AOGudk+MQ1++rBhA=; b=OaFtsnZo0gy37VHynMQTvpIdKwnJ36tMikhXRKR8y/3ziJU5/hvEBV7KrlWYtdvIfR iY2qrQtyg5JPXcw4h2YhQT6wLXVeLy4DdF1OIbdx8BMkSyve/GMAwvJ7NMhgVfYyFpax sUK202+4P8g6luU0sfsSa5zbXM0fEp0JHBfqM0L1WCp/jK4lAODRFfDLW0DLoh8ORAqi reYCWCixe9MJsOT6wWBantZ88GTcJVZbTGrP9QR2vLv1JHWZBPucQ/reODuqqU57Rkwh qdmMPfXN8q3+w0tpMQGwd8QxgGG2CK4Ay9HvWYzpiGEz7vIWRWw3YUTdEpli4UgsdLWc AbsQ== X-Gm-Message-State: AOUpUlFzrQNxi7raQxmjJaWf/6ISieDW69SvobN9s1XizwrkRT7OANlw FIZrRvvrlpZ+ERH5s2pdBRKvaiFrtxmy6PWlQPw= X-Google-Smtp-Source: AAOMgpeujpvfvQ1SA1NFH9/Z1bTgto5dEjSysARLagocIsqpgX5VBXkFf8bymFR7x8f/4M0EGhTVMZxDPJJ+fJ9RC9I= X-Received: by 2002:a24:e51a:: with SMTP id g26-v6mr12812688iti.43.1533496122307; Sun, 05 Aug 2018 12:08:42 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:ac0:8101:0:0:0:0:0 with HTTP; Sun, 5 Aug 2018 12:08:21 -0700 (PDT) In-Reply-To: <893AB692-BC26-44B4-8DC8-D62B2F907F02@gmail.com> References: <893AB692-BC26-44B4-8DC8-D62B2F907F02@gmail.com> From: Farhan Khan Date: Sun, 5 Aug 2018 15:08:21 -0400 Message-ID: Subject: Re: Include header files in dtrace scripts To: Domagoj Stolfa Cc: freebsd-dtrace@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-dtrace@freebsd.org X-Mailman-Version: 2.1.27 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: Sun, 05 Aug 2018 19:08:45 -0000 Thank you very much! In my test code I didn't even include the header files and it knew how to include struct ieee80211_channel. -- Farhan Khan PGP Fingerprint: B28D 2726 E2BC A97E 3854 5ABE 9A9F 00BC D525 16EE On Sun, Aug 5, 2018 at 8:07 AM, Domagoj Stolfa w= rote: > Hi Farhan: > > You should call DTrace with -C, which is the C preprocessor: > > --------------- > #!/usr/sbin/dtrace -Cs > > #include > #include > #include > #include > --------------- > > =E2=80=94 > Domagoj > >> On 5 Aug 2018, at 06:43, Farhan Khan wrote: >> >> Hi all, >> >> I am trying to run dtrace on some net80211 functions in the kernel. >> Rather than recreate my own version of several fairly large structs, >> which would be a lot of work, I would like to just include >> net80211/ieee80211_var.h and related headers. >> >> Brendan Gregg's book has examples of using #include, but when I do this: >> >> --------------- >> #!/usr/sbin/dtrace -s >> >> #include >> #include >> #include >> #include >> --------------- >> >> I get this error: >> >> --------------- >> $ sudo ./newstate.d >> dtrace: failed to compile script ./newstate.d: line 3: invalid control >> directive: #include >> --------------- >> >> Is there a way to include header files and get their subsequent structs? >> >> Thanks, >> >> -- >> Farhan Khan >> PGP Fingerprint: B28D 2726 E2BC A97E 3854 5ABE 9A9F 00BC D525 16EE >> _______________________________________________ >> 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= " > From owner-freebsd-dtrace@freebsd.org Wed Aug 8 10:34:53 2018 Return-Path: Delivered-To: freebsd-dtrace@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 312C710563FC for ; Wed, 8 Aug 2018 10:34:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id C2FEB78310 for ; Wed, 8 Aug 2018 10:34:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 83D9D10563F8; Wed, 8 Aug 2018 10:34:52 +0000 (UTC) Delivered-To: dtrace@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7298B10563F4 for ; Wed, 8 Aug 2018 10:34:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 12EC478309 for ; Wed, 8 Aug 2018 10:34:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 59F9BAB82 for ; Wed, 8 Aug 2018 10:34:51 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w78AYpXt015525 for ; Wed, 8 Aug 2018 10:34:51 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w78AYpwB015524 for dtrace@FreeBSD.org; Wed, 8 Aug 2018 10:34:51 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: dtrace@FreeBSD.org Subject: [Bug 227850] www/firefox: update to 61.0 Date: Wed, 08 Aug 2018 10:34:50 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: needs-qa, patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: commit-hook@freebsd.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: gecko@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-dtrace@freebsd.org X-Mailman-Version: 2.1.27 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: Wed, 08 Aug 2018 10:34:53 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227850 --- Comment #9 from commit-hook@freebsd.org --- A commit references this bug: Author: jbeich Date: Wed Aug 8 10:34:25 UTC 2018 New revision: 476635 URL: https://svnweb.freebsd.org/changeset/ports/476635 Log: www/firefox: update to 61.0.2 Changes: https://www.mozilla.org/firefox/61.0.2/releasenotes/ PR: 227850 Changes: head/www/firefox/Makefile head/www/firefox/distinfo head/www/firefox-i18n/Makefile head/www/firefox-i18n/distinfo --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-dtrace@freebsd.org Thu Aug 9 11:45:27 2018 Return-Path: Delivered-To: freebsd-dtrace@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 43A4B10627D9 for ; Thu, 9 Aug 2018 11:45:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id D4B428E816 for ; Thu, 9 Aug 2018 11:45:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 998FF10627D4; Thu, 9 Aug 2018 11:45:26 +0000 (UTC) Delivered-To: dtrace@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 885AC10627D3 for ; Thu, 9 Aug 2018 11:45:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 284698E80D for ; Thu, 9 Aug 2018 11:45:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 5DD44180F8 for ; Thu, 9 Aug 2018 11:45:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w79BjP80025310 for ; Thu, 9 Aug 2018 11:45:25 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w79BjP22025309 for dtrace@FreeBSD.org; Thu, 9 Aug 2018 11:45:25 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: dtrace@FreeBSD.org Subject: [Bug 227850] www/firefox: update to 61.0 Date: Thu, 09 Aug 2018 11:45:25 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: needs-qa, patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: commit-hook@freebsd.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: gecko@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-dtrace@freebsd.org X-Mailman-Version: 2.1.27 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: Thu, 09 Aug 2018 11:45:27 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227850 --- Comment #10 from commit-hook@freebsd.org --- A commit references this bug: Author: jbeich Date: Thu Aug 9 11:44:29 UTC 2018 New revision: 476739 URL: https://svnweb.freebsd.org/changeset/ports/476739 Log: MFH: r476635 www/firefox: update to 61.0.2 Changes: https://www.mozilla.org/firefox/61.0.2/releasenotes/ PR: 227850 Approved by: ports-secteam blanket Changes: _U branches/2018Q3/ branches/2018Q3/www/firefox/Makefile branches/2018Q3/www/firefox/distinfo branches/2018Q3/www/firefox-i18n/Makefile branches/2018Q3/www/firefox-i18n/distinfo --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-dtrace@freebsd.org Fri Aug 10 07:15:22 2018 Return-Path: Delivered-To: freebsd-dtrace@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D2714105F613; Fri, 10 Aug 2018 07:15:22 +0000 (UTC) (envelope-from hausen@punkt.de) Received: from kagate.punkt.de (kagate.punkt.de [217.29.33.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 587B27CB9B; Fri, 10 Aug 2018 07:15:22 +0000 (UTC) (envelope-from hausen@punkt.de) Received: from hugo10.ka.punkt.de (hugo10.ka.punkt.de [217.29.44.10]) by gate1.intern.punkt.de with ESMTP id w7A7FKpR027926; Fri, 10 Aug 2018 09:15:20 +0200 (CEST) Received: from [217.29.44.49] ([217.29.44.49]) by hugo10.ka.punkt.de (8.14.2/8.14.2) with ESMTP id w7A7FJbF064903; Fri, 10 Aug 2018 09:15:20 +0200 (CEST) (envelope-from hausen@punkt.de) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: Why can't I dtrace processes running in a jail from the host? From: "Patrick M. Hausen" In-Reply-To: <20180809145258.GA68459@raichu> Date: Fri, 10 Aug 2018 09:15:22 +0200 Cc: freebsd-virtualization@freebsd.org, freebsd-dtrace@freebsd.org Content-Transfer-Encoding: 7bit Message-Id: <8B1BDE9F-BDAD-4CEB-B7A2-8052497F50EA@punkt.de> References: <20180809145258.GA68459@raichu> To: Mark Johnston X-Mailer: Apple Mail (2.3273) X-BeenThere: freebsd-dtrace@freebsd.org X-Mailman-Version: 2.1.27 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: Fri, 10 Aug 2018 07:15:23 -0000 Hi! > Am 09.08.2018 um 16:52 schrieb Mark Johnston : > For userland static probes to be globally visible, the process needs to > register them with the kernel when it starts. This is done > automatically using a constructor which issues ioctls to > /dev/dtrace/helper, hence the requirement for /dev/dtrace/* in the jail. I figured as much. Enabling /dev/dtrace/* in the jail and restarting the jail made the probes visible in the host system I'm still somewhat stuck. What I'm trying to do is track down some performance problems in a large complex PHP web application. I have done this in the past on "regular" setups without jails and with PHP 5.6 compiled with dtrace support using /usr/local/share/dtrace-toolkit/Php/* ... This setup is jailed with PHP 7.2, dtrace support seems to be the default for the port. I'm specifically after php-fpm dtrace_execute_ex function-entry php-fpm dtrace_execute_ex function-return of course, to see where the application spends it's CPU cycles. But regardless if I'm doing this on the host or in the jail, I only get these results: dtrace -m php\* ZEND_CATCH_SPEC_CONST_CV_HANDLER:exception-caught php_request_shutdown:request-shutdown php_request_startup:request-startup zend_error:error zend_throw_exception_internal:exception-thrown Nothing else. Still `dtrace -m php\* -l` does show all the probes. Any ideas? Thanks Patrick -- punkt.de GmbH Internet - Dienstleistungen - Beratung Kaiserallee 13a Tel.: 0721 9109-0 Fax: -100 76133 Karlsruhe info@punkt.de http://punkt.de AG Mannheim 108285 Gf: Juergen Egeling From owner-freebsd-dtrace@freebsd.org Fri Aug 10 18:34:27 2018 Return-Path: Delivered-To: freebsd-dtrace@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7E0511071B0F; Fri, 10 Aug 2018 18:34:27 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: from mail-pg1-x541.google.com (mail-pg1-x541.google.com [IPv6:2607:f8b0:4864:20::541]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id F12D2757E4; Fri, 10 Aug 2018 18:34:26 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: by mail-pg1-x541.google.com with SMTP id y4-v6so4777372pgp.9; Fri, 10 Aug 2018 11:34:26 -0700 (PDT) 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:user-agent; bh=0RUxShoM3hxcoMLqb+5lX6nklcLFUux1MTjzSYdpkU0=; b=QpKznk/Wa6IcIh+ysJY26Wcpz0a8hShgCFSAQ/ODpQk3aZF7pJP3jvUUNBMYGowSf3 RMlxGJoAJgBu4k7DI2C61rrxrvyJhC9Is2u9BpjYjt02xhvcGh+aIP+6inWjfyP+3zWV pSgfxTWbWotPWIGfMQ3ziRoXgvIpll84yjs1hHzneWMqkGGx9U0dP4um+Zt0Xs4FbH2g txXQwN6kPczbMhp0+C85krIRXuyS0Uf0biAlb9KUP1xO9v6sKc8YmPFqBMN5FSERcmNj Jy5Nl3A0BbQBlv7rxQMmczk2LmqS4uQID9Kwd+YyImHvKbt4X+g/6gOiG7fbQf3+Xnt9 c+7A== 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:user-agent; bh=0RUxShoM3hxcoMLqb+5lX6nklcLFUux1MTjzSYdpkU0=; b=SWohSPUhyxsCHTIgUStpsoaEjGEF48rIQ5Q4TFume6faaUkUsvwnbLS0qTSKPwaZi4 tqSYMC/s8ueSHdfpE0+ERFEdBORAmasUnILqIXfkWpvAaqUXPiwlmWDkIT/xLAftUA2z NOm9wDBsZC6D3bK3BERPdGFaGFDP3SXPSyxdmrTWoGv8tLGBEaPd7Kph6JiLCuTN4D4P 8joQp58oz6fiDuYfKn0YeFBNImJJqhC8Hxiley4TyQF/wCe8FvchcwBon2cZTmXpKYbc NwOT8aMR2DvWAqAd5Jeo+g4sgn/hsaLD8e2cGYLQmv4Hon0Gy+pKIvsvL8l8cVlNvjtU BcZg== X-Gm-Message-State: AOUpUlF/UCS/jqGEaNC5ZwPLP2MdAIM6J89fNXYe2ZqAhVZPyceSYE3S TIhwywJc3e8/uicyrl2lki8/6Le5 X-Google-Smtp-Source: AA+uWPwOjP2xZo2kneakP4hcXzedPf/SjpeBXgacySlys/yvoKLpIgoxMnDiw/Zpe108aLppgQSm6w== X-Received: by 2002:a63:6b03:: with SMTP id g3-v6mr7548584pgc.57.1533926065845; Fri, 10 Aug 2018 11:34:25 -0700 (PDT) Received: from raichu (toroon0560w-lp130-09-70-52-224-239.dsl.bell.ca. [70.52.224.239]) by smtp.gmail.com with ESMTPSA id v23-v6sm12373331pfm.80.2018.08.10.11.34.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 10 Aug 2018 11:34:24 -0700 (PDT) Sender: Mark Johnston Date: Fri, 10 Aug 2018 14:34:19 -0400 From: Mark Johnston To: "Patrick M. Hausen" Cc: freebsd-virtualization@freebsd.org, freebsd-dtrace@freebsd.org Subject: Re: Why can't I dtrace processes running in a jail from the host? Message-ID: <20180810183419.GA52302@raichu> References: <20180809145258.GA68459@raichu> <8B1BDE9F-BDAD-4CEB-B7A2-8052497F50EA@punkt.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8B1BDE9F-BDAD-4CEB-B7A2-8052497F50EA@punkt.de> User-Agent: Mutt/1.10.1 (2018-07-13) X-BeenThere: freebsd-dtrace@freebsd.org X-Mailman-Version: 2.1.27 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: Fri, 10 Aug 2018 18:34:27 -0000 On Fri, Aug 10, 2018 at 09:15:22AM +0200, Patrick M. Hausen wrote: > Hi! > > > Am 09.08.2018 um 16:52 schrieb Mark Johnston : > > For userland static probes to be globally visible, the process needs to > > register them with the kernel when it starts. This is done > > automatically using a constructor which issues ioctls to > > /dev/dtrace/helper, hence the requirement for /dev/dtrace/* in the jail. > > I figured as much. Enabling /dev/dtrace/* in the jail and restarting > the jail made the probes visible in the host system > > I'm still somewhat stuck. What I'm trying to do is track down some > performance problems in a large complex PHP web application. > I have done this in the past on "regular" setups without jails > and with PHP 5.6 compiled with dtrace support using > /usr/local/share/dtrace-toolkit/Php/* ... > > This setup is jailed with PHP 7.2, dtrace support seems to be the > default for the port. > > I'm specifically after > > php-fpm dtrace_execute_ex function-entry > php-fpm dtrace_execute_ex function-return > > of course, to see where the application spends it's CPU cycles. > > But regardless if I'm doing this on the host or in the jail, I only get > these results: > > dtrace -m php\* > ZEND_CATCH_SPEC_CONST_CV_HANDLER:exception-caught > php_request_shutdown:request-shutdown > php_request_startup:request-startup > zend_error:error > zend_throw_exception_internal:exception-thrown > > Nothing else. Still `dtrace -m php\* -l` does show all the probes. Indeed, I can reproduce this. Peering at the zend source code, it seems that there's a difference in how the dtrace_execute_ex hook gets installed: with 5.6, it's unconditional so long as zend is compiled with HAVE_DTRACE. In 7.2, the php process needs to have USE_ZEND_DTRACE=1 set in its environment for the dtrace function execution hook to be installed.