From nobody Sun Oct 01 19:55:31 2023 X-Original-To: bugs@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 4RzFF04Jnwz4vkgX for ; Sun, 1 Oct 2023 19:55:32 +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 4RzFDz5NvLz4MMD for ; Sun, 1 Oct 2023 19:55:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1696190131; a=rsa-sha256; cv=none; b=EG4srzzGmUUO6A/OhQIj9nIMkUnn+HzBu5BkAIzqLwTsNHh50pV6vjpYVl94w7hl3Hu7+j qc2UHCO1R10x6iECdiMM2layS1Qyx4qdgbwlVV0BP+0lzPWRpqYZ3E/OJJaxSoySFYvYbv hNjfVuNlNPI3CDgNezfRaXDd2pkTTb0rQMLjk05DqfQyAuD6D6niZ7bbbxGZJUGsnbKtz+ YpI1PGIvo2BW2nrmM4hEhY8ZGPVDB14LzdB6a7/L8GzzhmcvoSk0xqmpDqu9lGu8AXO8R6 GYWqQMNzsOkCmGaLX7xTpYQme7n9m/Y5XwSNpSF2IUSn1GDGG6dwhghO3jAWuw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1696190131; 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=ZySr+RVo04s5zHOyEgvpEMdExHkZBPa8V191Rc6/6oc=; b=df26ZEdRjn4a5rmKgV88FKCQ32FG5iNKwGH1Mu1I29dfETSTCpvjwRAx/lSpDJbhm4EGFj RONBpGqaFuvxVdD6YL7SWKQvmnz+LCgCo00aonHc5UkYQxMq+kkspVctVgUyl9SiTa3+Ig SKzySD61mYjerAziJYzC1ssti9IeY6FJGlfrhR0ePRFVL0Der+YlBm16Q+MQn4MM4benFV 8ATSzEIwbR9sRwVTaN+g9u8wgn6JwLYH3RBGADyqJvbOnehnANIoQmJoirS99VNQwHemko YDSvyVUXk3fPPoQlWZjRczHbEk4nT8BXhkp9JkclFCfZ4OUOXZh//NFCTwcS0Q== 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 4RzFDz4LzQzjmB for ; Sun, 1 Oct 2023 19:55:31 +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 391JtV94085659 for ; Sun, 1 Oct 2023 19:55:31 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 391JtV2P085658 for bugs@FreeBSD.org; Sun, 1 Oct 2023 19:55:31 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: bugs@FreeBSD.org Subject: [Bug 274198] ktrace: logs only one arg for symlink() call Date: Sun, 01 Oct 2023 19:55:31 +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: 13.2-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: rozhuk.im@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@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: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D274198 --- Comment #3 from Ivan Rozhuk --- (In reply to Mark Johnston from comment #2) > NAMEI events are generated by namei(). symlink(2) doesn't call namei() o= n the second parameter, so this patch doesn't really make sense. vn_getcwd() and few other places call ktrnamei(). I do not understand why call ktrnamei() directly is wrong. > ktrace(2) in general does not show you arbitrary system call parameters. It is enough for my purposes to get few NAMEI, like: 47 ktrace CALL execve(0x7fffffffdfb6,0x7fffffffd970,0x7fffffffd980) 47 ktrace NAMI "build-install_media.sh" 47 ktrace NAMI "/bin/sh" 47 ktrace NAMI "/libexec/ld-elf.so.1" 47 sh RET execve JUSTRETURN > But if you want to see parameters, you can also just use truss or dtrace. I need get list of all files that was read with abs path. I wrote tool to parse ktrace file, it keep context of process and convert p= ath to abs on logging and filter crap out of src dir. I can not use truss without modifications to get same results. --=20 You are receiving this mail because: You are the assignee for the bug.=