From nobody Tue Aug 02 18:12:20 2022 X-Original-To: dev-commits-src-all@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 4Ly3451D3vz4XqyY; Tue, 2 Aug 2022 18:12:21 +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 4Ly3450P5bz40ZY; Tue, 2 Aug 2022 18:12:21 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659463941; 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=wcpmlMnWxTCulbCKJXHtQ1dblvRtisndKfdcXYLSTeI=; b=jgZpJzs4orEyF4EZdl7U8N70YRBq+xztcls9S2lJeWEOJGb9mZr8z1GUaNYI7eMQS1TQYU 9DZz+idFKneM5i1j4ZSMU6NkUzf6nhdUwHUJFMJNQ6rNrq/shjBab1FM8TInB1RUcBUmF8 XCqrIKeUfqX/EdtZGlIgBe2YSQ5GXdk25WHH2A+V3dFm76kFpm9eg+IuERVDftsWedwzZx URaEJSbPhod5ZUS6CPja7R8NSyTyI9DSb0WAhEmvMD4FkfL5ql8uAdRcyCjX5QkKPsuake rmDwh3SPz1wI8ULLDBHP2FzAwMvnQrpZFlVBYBtv9Hvx0xwuraKxT6DQwMT33A== 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 4Ly3446bFlzMp0; Tue, 2 Aug 2022 18:12:20 +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 272ICKLj000622; Tue, 2 Aug 2022 18:12:20 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 272ICK89000620; Tue, 2 Aug 2022 18:12:20 GMT (envelope-from git) Date: Tue, 2 Aug 2022 18:12:20 GMT Message-Id: <202208021812.272ICK89000620@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: 4a662c9064fc - main - ktrace: change AST handler to require AST flag set List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 4a662c9064fcda7727ec220da9ee37762f188466 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659463941; 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=wcpmlMnWxTCulbCKJXHtQ1dblvRtisndKfdcXYLSTeI=; b=oA5rRk8rKNtScd/9MIo18v+B4ejAeRb/UOZ4BZHdWNRfvn82MyWhE21BtN9ES0MriS+cMJ NuUedLs4bKI0mTzbTosJZuY5SM9+QzBLRpPYOt/30FstspJFlsVHqVFqw7Mfb44CQhNKEU I13UnXZeHz+pEdOYAhRRfumNj9XxvUGbQ9284rtBw8kcqAUGFDRKawqoLxGnOFO1g9jCTZ Y242qCXHXvaJlXcnEkxA1asryPCVeeSPISLTR7LkLGX4JpcB4NubNcBiJJSdzDW4Ko65do lBIbynGP/pSveQAWDXtztJCKm8DB7+aakGpo265l1rCUNvvY/X3iBjULRnsZng== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1659463941; a=rsa-sha256; cv=none; b=Y+bf3U8EduVGxpMHw5y+iCjVBwTic9OePKRw0DsH3IsSznAwNpsZH0/N/j23nGtS1qhcDL G0CHXwCkzk2L/VkMT/sPQHGV2/xo4GHN/NNt35wrLQ347UWzAxiPmA0oHhLGTumpM50GQz EeLcK9jgGEFW1PiEoj3kmAgT4EZcH7ehUs5fSiFpwudgI3H6aPjTJu5yguUUi90R4ZrJ21 AvhyeUsCPzX+DOtjlIUVF0cuj4WEfbKZKt1YERynUauY0lMJOt6/KAMTNdY72Mh1sP4thB b2A6pHewJAh7BpkAkKU2bWVDL/+qcHF5PsVC/e7NlRDRuSKFBMTyO5vIvsvO2A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=4a662c9064fcda7727ec220da9ee37762f188466 commit 4a662c9064fcda7727ec220da9ee37762f188466 Author: Konstantin Belousov AuthorDate: 2022-07-28 06:32:47 +0000 Commit: Konstantin Belousov CommitDate: 2022-08-02 18:11:10 +0000 ktrace: change AST handler to require AST flag set When it was inline it made sense to depend on the existing nested check in KTRUSERRET() rather than adding a new td_flags flag. However, since we now have a TDA_KTRACE flag anyway, we might as well check it and avoid the call. Suggested by: jhb Reviewed by: markj Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D35888 --- sys/kern/kern_ktrace.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/kern/kern_ktrace.c b/sys/kern/kern_ktrace.c index 49e9dff4e643..c2f747c474de 100644 --- a/sys/kern/kern_ktrace.c +++ b/sys/kern/kern_ktrace.c @@ -229,8 +229,7 @@ ktrace_init(void *dummy) M_ZERO); STAILQ_INSERT_HEAD(&ktr_free, req, ktr_list); } - ast_register(TDA_KTRACE, ASTR_UNCOND, 0, ast_ktrace); - + ast_register(TDA_KTRACE, ASTR_ASTF_REQUIRED, 0, ast_ktrace); } SYSINIT(ktrace_init, SI_SUB_KTRACE, SI_ORDER_ANY, ktrace_init, NULL);