From nobody Mon Mar 20 19:14:25 2023 X-Original-To: dtrace@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PgPYY2mv1z4078C for ; Mon, 20 Mar 2023 19:14:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PgPYY0BMNz4Ytl for ; Mon, 20 Mar 2023 19:14:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1679339665; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=idFDarW5gB0fUmleZCtmmStYAuw9Hr4I0rqaTsh//mk=; b=J2XyH2VBx6PvuATNDpcbNokHDohqfUGwWsT0GPCaT4VxkfmTix3NXNCmgoVexHcx1QVXxn z5axqTDwP9ne7Gh3gniRPCghuqFjSvfr7cJhtWG28s3PgIzFZ+DMcB/Pnyuk+HMVUon1b7 EeWwH5WG6kA65Y8wJ5r4MCcFQxdDlRUYRorf3rCkZ78+gWXem7g1joc8hCCHnRoxts8J74 ZyW1JepVlsf59EZgTfLkQczQWWdsag8ttjD+RZaq1vuYAojtuOge6RVLyB5cpqBF5zzASx 3vQajUL2pGtwMJnklR5mKc7cpPrVXwj8UyjmV7dHCVSZcc36W3/5nX6OnPf5cg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1679339665; a=rsa-sha256; cv=none; b=CazN2QCOfPCBHpXwbH4zFkYn+4Z6IFn5nSGBpFDc4W9qTMSOm9ouG3xA7qon9hm4GnPfea jl46VsTvI2OSHKW4vqGLLyB/HxeL0Qg+YCkykJ6rHzWzH1194qXW6uHEZirVvOV/nuuwsT RlCuFZ5oPVl4Jaf+Y0j5vXxrtLbFV6CumWknf0DSgn4B47GiUAHfVxM4Y/OOHA1AL47fsy ST8TzYLFNJG9l77osK31IOtyhEV29DOs1bj2c9pvK2wH70HiA96FT1VY9OYD/zH2w7owDv oXPlsKdNu/YMGXP7MnjGWtIR8WAPv/gG8vQZkuUTrmtx8p5G50g7t1RmxlDwuQ== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4PgPYX6PT9zhjj for ; Mon, 20 Mar 2023 19:14:24 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 32KJEOTf087037 for ; Mon, 20 Mar 2023 19:14:24 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 32KJEO15087036 for dtrace@FreeBSD.org; Mon, 20 Mar 2023 19:14:24 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: dtrace@FreeBSD.org Subject: [Bug 269906] dtrace requires empty expression to print anything from matching search Date: Mon, 20 Mar 2023 19:14:25 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: christos@margiolis.net X-Bugzilla-Status: Closed X-Bugzilla-Resolution: Overcome By Events X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: dtrace@FreeBSD.org X-Bugzilla-Flags: 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 List-Id: A discussion list for developers working on DTrace in FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-dtrace List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-dtrace@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D269906 --- Comment #5 from Christos Margiolis --- Apparently, this patch doesn't really work and, in fact, allowing a predica= te with no acts is probably impossible in D without introducing a significant amount of complexity. awk can do that just fine because awk's predicates ca= nnot contain unescaped "/", since it searches for regexes. D on the other hand allows normal computation inside the predicate, meaning one can do division inside it: kinst::vm_fault: /(cpu / 2) =3D=3D 1/ This is a problem because the D lexer considers "/" to be a division token = (and not a start/end of predicate token) when the next non-whitespace character coming after it is anything other than EOF, 0, ;, { and }, so if we try and run: kinst::vm_fault: /cpu =3D=3D 1/ fbt::malloc:entry The lexer will think the end of predicate is actually a division token beca= use the succeeding non-whitespace character "f" doesn't match the character set that indicate the end of predicate. --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Mon Mar 20 19:41:10 2023 X-Original-To: dtrace@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PgQ8Q4DrGz408Sx for ; Mon, 20 Mar 2023 19:41:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PgQ8Q1jzSz4gyS for ; Mon, 20 Mar 2023 19:41:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1679341270; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=FBbRlWCn6LJhXFamxgYRjVOf+jkLZl3keF823bx+3Ns=; b=b8RFLo+38s4fy+/foe1FmsW23yLxxY3ItGGE/eHrfb1jsdYCbvz+ZcLxUgNzvz/RF0+PJa v00FQJNbwwjIhHjjqiOTKSv4iuhP3nscgc5EclJYSSBDEDNpQRVZQ3Ia/sIggdZiCLpAho vyufvBZh76aEfMycC3hsBgKs8HNrG7kka7jLWYGu8p3CdfhT1gIVR404jnqfFBJGYMcRvK 9hK8Iv/NkY90TVE6qYI0V5EvyhVyEmy7FZxhmzpejePeAMl7wXLVrP8tJntQ56YEwPo/jJ EwMhgWc0RRif4YjQ7mijYAojUk2MI7ToeK+FeawPPbXQRQhvWi/Xw4KBr9zRtA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1679341270; a=rsa-sha256; cv=none; b=oibhRdXsdA8UpfLxcTUfGDe6mzyEAEggarIHCv3YCraZc2XFUnaLL1iK0BS8NPXujxDA4A 6YAz9BCedz8yCGiOLehJOaiMglz2HoKwAjbeJVmTUhWuL0kZMg3RsEwTaqWPrrhdR4CCa/ 6fhBOkQEslWssVmouIieYiAllb4+8gRxBlQeS/9x+Or+QVKYYwcTLyoenYxjmzCCPzCYJz jaga/Umt3HokzcItZJkUITbxjRbLTsnyUiHj2ZyqOu6qLDCAdT8GgKfHIzQSGfvuUEeKwF sVub/+Ny1Yj/49OkIsvuVSclvYL7tsiyUlojDqtsylpOpT4Y80kD8u74sSsi5A== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4PgQ8Q0mczzjcK for ; Mon, 20 Mar 2023 19:41:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 32KJfA0a022711 for ; Mon, 20 Mar 2023 19:41:10 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 32KJfA33022710 for dtrace@FreeBSD.org; Mon, 20 Mar 2023 19:41:10 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: dtrace@FreeBSD.org Subject: [Bug 269906] dtrace requires empty expression to print anything from matching search Date: Mon, 20 Mar 2023 19:41:10 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: freebsd@igalic.co X-Bugzilla-Status: Closed X-Bugzilla-Resolution: Overcome By Events X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: dtrace@FreeBSD.org X-Bugzilla-Flags: 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 List-Id: A discussion list for developers working on DTrace in FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-dtrace List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-dtrace@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D269906 --- Comment #6 from Mina Gali=C4=87 --- n.b.: this is in reference to https://reviews.freebsd.org/D39167=20 thank you very much for your investigation! --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Thu Mar 23 01:09:37 2023 X-Original-To: dtrace@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PhnLm6pZHz40JdH for ; Thu, 23 Mar 2023 01:09:52 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mx1.sbone.de (mx1.sbone.de [IPv6:2a01:4f8:13b:39f::9f:25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx1.sbone.de", Issuer "SBone.DE Root Certificate Authority" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PhnLm09bnz48lV for ; Thu, 23 Mar 2023 01:09:51 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of bzeeb-lists@lists.zabbadoz.net designates 2a01:4f8:13b:39f::9f:25 as permitted sender) smtp.mailfrom=bzeeb-lists@lists.zabbadoz.net; dmarc=none Received: from mail.sbone.de (mail.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:1025]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.sbone.de (Postfix) with ESMTPS id C15B88D4A213 for ; Thu, 23 Mar 2023 01:09:40 +0000 (UTC) Received: from content-filter.t4-02.sbone.de (content-filter.t4-02.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:2742]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPS id 0F0F55C3A832 for ; Thu, 23 Mar 2023 01:09:40 +0000 (UTC) X-Virus-Scanned: amavisd-new at sbone.de Received: from mail.sbone.de ([IPv6:fde9:577b:c1a9:4902:0:7404:2:1025]) by content-filter.t4-02.sbone.de (content-filter.t4-02.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:2742]) (amavisd-new, port 10024) with ESMTP id L-xLvqC3-DZU for ; Thu, 23 Mar 2023 01:09:39 +0000 (UTC) Received: from strong-iwl0.sbone.de (strong-iwl0.sbone.de [IPv6:fde9:577b:c1a9:4902:b66b:fcff:fef3:e3d2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPSA id E8DBC5C3A82F for ; Thu, 23 Mar 2023 01:09:38 +0000 (UTC) Date: Thu, 23 Mar 2023 01:09:37 +0000 (UTC) From: "Bjoern A. Zeeb" To: dtrace@FreeBSD.org Subject: USDT support (in build framework)? Message-ID: X-OpenPGP-Key-Id: 0x14003F198FEFA3E77207EE8D2B58B8F83CCF1842 List-Id: A discussion list for developers working on DTrace in FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-dtrace List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-dtrace@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII X-Spamd-Result: default: False [-1.45 / 15.00]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_MEDIUM(-0.98)[-0.981]; NEURAL_HAM_SHORT(-0.94)[-0.938]; NEURAL_HAM_LONG(-0.23)[-0.234]; R_SPF_ALLOW(-0.20)[+ip6:2a01:4f8:13b:39f::9f:25]; MIME_GOOD(-0.10)[text/plain]; R_DKIM_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MLMMJ_DEST(0.00)[dtrace@FreeBSD.org]; DMARC_NA(0.00)[zabbadoz.net]; RCVD_TLS_LAST(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; TO_DN_NONE(0.00)[]; RCVD_COUNT_FIVE(0.00)[5]; RCVD_VIA_SMTP_AUTH(0.00)[]; ASN(0.00)[asn:24940, ipnet:2a01:4f8::/32, country:DE]; ARC_NA(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[dtrace@freebsd.org]; MIME_TRACE(0.00)[0:+] X-Rspamd-Queue-Id: 4PhnLm09bnz48lV X-Spamd-Bar: - X-ThisMailContainsUnwantedMimeParts: N Hi, https://wiki.freebsd.org/DTrace/userland says it is outdated. Do we have any description on how one we would add USDT support to base system applications? Or do we support this at all? /bz -- Bjoern A. Zeeb r15:7 From nobody Thu Mar 23 11:58:07 2023 X-Original-To: dtrace@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Pj3kp5mxbz41G7p for ; Thu, 23 Mar 2023 11:58:10 +0000 (UTC) (envelope-from domagoj.stolfa@gmail.com) Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Pj3kp2XHvz4HJ3 for ; Thu, 23 Mar 2023 11:58:10 +0000 (UTC) (envelope-from domagoj.stolfa@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-wm1-x335.google.com with SMTP id r19-20020a05600c459300b003eb3e2a5e7bso920478wmo.0 for ; Thu, 23 Mar 2023 04:58:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679572689; h=content-transfer-encoding:in-reply-to:from:references:to:subject :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=uJPiq/YBFvtFE+zxjT0tJSy4Fl3rut3ptqx58ZBQpPs=; b=S0Ht4adjLp4vXmqv51sxgr0qHTqLD60ZXzWUYyflxCkg/OWUo7bUEL90Sk23yeYL7g lA5Kx+oD93t1Lj9qFR4YuTEvmQ9ec5axHSIAp+veqViq/Lf6cja7jCmWAol8EnOH//yi SDsFWmXWRXKdl7T8VRVuni2aRNvu8UIlhd9uiIu9v0Jvb7PdEuSlo1ikk1KxpBBBK73y 5MHa/pZrCCbgxny4i566Qyyj55ZxESTtgom9NNSL3LihIHk2Y/dmOmhj5d0RqeWGOlap mvTmQMZccIbuh66Z3NcaIx+VmFTQDY519vIK8Gy2pMb4gPdoCJz0DeYfC8k5UoZ1/QUP eINA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679572689; h=content-transfer-encoding:in-reply-to:from:references:to:subject :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=uJPiq/YBFvtFE+zxjT0tJSy4Fl3rut3ptqx58ZBQpPs=; b=N8pxSKcG32m2KzX0v+O1j2miXD2LJiO68r08sMlVN+BH2odKXDiLFayIRewlfhjIGu 3dkSs8Z1Ysw74D1NvXkOC5lqyR98DE4a5qiJAh5S6y/8TuU0PZJUUo4gYiVtkLWulrbl vMtd5JxoHkL3AU1+E6r5zM7Jy7UmdCKNgBh+73+5nJAw19EvF9iwkOfqAi0qv/fOXuxb BNLm4NoCxsaY2yAXK5VmFTFOB89eCmR8HUFqZxPdS6L1JIGAFdop7DXcT3dJVq+uK/bK XQilO7+22aUtaO6OauVz7P/mlvHcAYhHPN5MlGD3qaL/1ko7bbYaTHqKbRTjEv2tWCO/ pWdQ== X-Gm-Message-State: AO0yUKVQFDha5qzazawwUS6vQTczmkOpErhofIIjCQOQHeykWs6+o/sL f3pWQBYz/QUoL8K/MOCsfd1k+Q1lIJ0= X-Google-Smtp-Source: AK7set8IGX48tKLfMtuqxdXyJfb4tghIJ7SaGnpdy6cnmK/StCrWosnsk0FBW7CIdyTZsGOwQGkQtw== X-Received: by 2002:a7b:c844:0:b0:3ee:1239:1ba7 with SMTP id c4-20020a7bc844000000b003ee12391ba7mr2038858wml.27.1679572688648; Thu, 23 Mar 2023 04:58:08 -0700 (PDT) Received: from ?IPV6:2a00:23c7:8590:6d01:2c32:cad7:453a:980e? ([2a00:23c7:8590:6d01:2c32:cad7:453a:980e]) by smtp.gmail.com with ESMTPSA id o6-20020adfeac6000000b002c71a32394dsm16063526wrn.64.2023.03.23.04.58.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 23 Mar 2023 04:58:08 -0700 (PDT) Message-ID: Date: Thu, 23 Mar 2023 11:58:07 +0000 List-Id: A discussion list for developers working on DTrace in FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-dtrace List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-dtrace@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: USDT support (in build framework)? To: "Bjoern A. Zeeb" , dtrace@FreeBSD.org References: From: Domagoj Stolfa In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4Pj3kp2XHvz4HJ3 X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; TAGGED_FROM(0.00)[] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N Hi: I've done this for bhyve, specifically for virtio-net. I believe this is the whole patch I needed: +OBJS:=bhyve_provider.o ${OBJS} +DTRACE_OBJS=${SRCS:C/\.c/.o/} + +beforelinking: +       dtrace -G -s ${BHYVE_SRCDIR}/bhyve_provider.d ${DTRACE_OBJS} + however, it has been a while and I don't 100% recall if anything else was necessary. I had to create a helper DTRACE_OBJS because using OBJS would cause linking to fail later on. I'm sure there are better ways of doing it, but this seems to work for me. Let me know if it fails! The provider itself is: provider netbe {         probe tap__recv(char *, void *);         probe tap__send(char *, void *); }; and the probes can be called as follows:                 DTRACE_PROBE2(netbe, tap__recv, g_vmname, mbufidp); Hope this helps! -- Domagoj On 3/23/2023 1:09 AM, Bjoern A. Zeeb wrote: > Hi, > > https://wiki.freebsd.org/DTrace/userland says it is outdated. > > Do we have any description on how one we would add USDT support to base > system applications?  Or do we support this at all? > > /bz >