From nobody Sun Oct 30 20:03:03 2022 X-Original-To: dev-commits-src-main@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 4N0nJl3Zg9z4gT4T; Sun, 30 Oct 2022 20:03:03 +0000 (UTC) (envelope-from git@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 4N0nJl356gz3Zjf; Sun, 30 Oct 2022 20:03:03 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1667160183; 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; bh=EU7hpQEGpLbiq0G+iPeBGThbYkb/3DHZq2aiSP7ORTU=; b=HDpDrHiFdTXPyq8xY8eRuoHHsprpJwNwknqtNMGlEkIeR0LMgMVe/w3tgcNr4DdBQwNFfX zpnCX2wwRGCEMEz3pD6FL9U0EXJsDdEoXpfU0vkFxmxhHWJ5fBnGdLObNQnssJTD5l4oCp qrasF2aWhVbFqvHyk7mW14Fd5fyqtJ2MO1rSOd8f5yCzSxV+B6NHcCc2MRh3tc23ma6cJm uJXVSFeik9vYeD4P6eA1HqeVC61YOsk623XDYwHqg5ScbnXcMFQAE03XhoyXErSL0BLwOZ oApqOZJeGw28WP1O0gdxbCMzrFGEzpMjsmY1Lp+5k0EILJ9oh8cYKOeWZ6snbQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4N0nJl27b7z189P; Sun, 30 Oct 2022 20:03:03 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 29UK33B8010720; Sun, 30 Oct 2022 20:03:03 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 29UK33js010719; Sun, 30 Oct 2022 20:03:03 GMT (envelope-from git) Date: Sun, 30 Oct 2022 20:03:03 GMT Message-Id: <202210302003.29UK33js010719@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Justin Hibbits Subject: git: ec9388ddba02 - main - dtrace: Make pid provider work on trivial tests List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhibbits X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: ec9388ddba02b45ed106113594d80be349415665 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1667160183; 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; bh=EU7hpQEGpLbiq0G+iPeBGThbYkb/3DHZq2aiSP7ORTU=; b=neaEbhX2mZOudGZEPZKuaxPdORw27+7/o0vu3VoQPGuzRh9bBevIhSMLG5Bm1n6t4QL1+z H8Mh9DBgodwz2VIRlwbi4ijoGCH1LmjXVtfta/JMSeCfysgp6wy9j9IpmYQr0huO5o8GuR 23oBrBTARAOn1sy9ts0YFB8ZmHbmvvG3bzvYD3eeVRdZfBUHeqycs3nRSjQ4a0XjX5SX7o jcHoPUiZx8QL5XTwpdLbjWbz1NLMpv7rVnRHOHGObpAMQIaSoOLpQicCd/HBmD/XRJskJH 73aE/OCf8+9oqoEaWt8+vpvWBt/D0AvGJANqtU307HVuJkvXhzjAxgNn/MWOWw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1667160183; a=rsa-sha256; cv=none; b=KBYbEzmqVNnQUf6tA2eg9BRT/kfyDnL81Q3O+USEtZUMPB53lROZLCASHjQUWx8Z9YLFZx C+64+UxlgyfMU2mx+GUmiRwjggm2ZTnnza/hVnju2d68IqYWOEV9FVEeLQ6LFJLgYxur1t XEZ+Bt4sLVyVK67bEdumwZ8ohJ9AXGUfZ935MYVzXRi0EUV6yTxkQY/n0NJ0HbTgTNWwfO 1iPK1WyliJufleIN3q6+0JxoqnL/K2bxmC8erBIQDtTzTMXbZeR9XS2ObIomuTyS0IofPK rn58EwQZXQ9gvxEkTTiX7cNajQ4CZ5+BEGoapHlmbOVfayrQP8nBWrRvbX5/8g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhibbits: URL: https://cgit.FreeBSD.org/src/commit/?id=ec9388ddba02b45ed106113594d80be349415665 commit ec9388ddba02b45ed106113594d80be349415665 Author: Justin Hibbits AuthorDate: 2022-10-30 19:33:06 +0000 Commit: Justin Hibbits CommitDate: 2022-10-30 20:00:44 +0000 dtrace: Make pid provider work on trivial tests 'newpc' needs set in the "common" case. With this, the trivial test $ dtrace -n 'pid$target:libc:strlen:entry { trace(timestamp); }' -p now works. MFC after: 3 weeks --- sys/cddl/contrib/opensolaris/uts/powerpc/dtrace/fasttrap_isa.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/cddl/contrib/opensolaris/uts/powerpc/dtrace/fasttrap_isa.c b/sys/cddl/contrib/opensolaris/uts/powerpc/dtrace/fasttrap_isa.c index 69ba0f3c64d0..8f4db66f817d 100644 --- a/sys/cddl/contrib/opensolaris/uts/powerpc/dtrace/fasttrap_isa.c +++ b/sys/cddl/contrib/opensolaris/uts/powerpc/dtrace/fasttrap_isa.c @@ -486,6 +486,10 @@ fasttrap_pid_probe(struct trapframe *frame) rp->lr = rp->pc + 4; break; case FASTTRAP_T_COMMON: + curthread->t_dtrace_pc = pc; + curthread->t_dtrace_npc = pc + 4; + curthread->t_dtrace_on = 1; + new_pc = pc; break; }; done: