From nobody Tue Nov 19 22:21:01 2024 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 4XtJqL13jlz5cnLm; Tue, 19 Nov 2024 22:21:02 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XtJqL0V00z4w3F; Tue, 19 Nov 2024 22:21:02 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732054862; 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=/pOXde++wEA1o8rpjoAUgiK0IVMixYBxPHa5aVd/+6U=; b=ChMtdOmMHiMy15aBl4idhcRdn6O00auIVyGchU5UzWzuo0SS+soshbbgtbK+MCqFfGbbS7 zmx/CDhLXAscJ9enyKbc/4swvCRwHiCSzN9am9AGxmtpw+zVBAuWlD89rQT25681sH7e3D SltL8pcn0brvv6BGJw06DGLg6Ly5TN14haK8BlyDw9ugn6rWer3CIV4lZjI7Nz69w84kWt AlHgPOLnHPYlQxEyXX8kVSqramxS2ilKdXZcqHESFVBsdTkltHGxkuLk4pY43aezD7dNot Z+Br6XU52MBx+G+MydY411bE3CAt1Jg65HwL1scUpnb8J+/jlhXZ4J2Hs5klNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732054862; 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=/pOXde++wEA1o8rpjoAUgiK0IVMixYBxPHa5aVd/+6U=; b=BD9YqcnUp83fMva6xk1WJZYEt19++X+hRxqamn2UAJDbRZaifZgUcV6M1uk0seox0l0TQI Z8N6lCE4IZefcHBfmBUIahb8+X8So++H9vwv9W0GoInnnZPh0vcqZn+EieY+Dq3nj5UWFy JT74u5hjCZBGO3mAMNjUsNxWDAnFdApWc6p50JMOfkBGrEISvnfzdH6ZLl8Cn8l4125rbs ez6IN/7blHDdHk317WsM+y8G0DI+xMgkY/YRh9aumJKrW6SZ7QVi7NKE5fKRB6o+eVeYnC ZggX/IgMQkhQleW6krp5R2pf5EbRdbezOOTjlkTQp51k92vIrAeiMawwNjFnCQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1732054862; a=rsa-sha256; cv=none; b=itAA/KrNnmNMd2C2UdMsA0Aq/GjIqEJm3wcRkpzhMLYP5LVVgmRdjwQyvw5WA4ATlmLDwx p/DjWmmBtShex72UimtKO2q4qcTv5CnmdMvmyTWEyIdvyaDAS2LKPUYpwhqmTpT8NzsYq1 YyDmN+RHKo74FkthPYYFCkNxRR24FEvuf6sMHygbjZ07u7Oic9RpHVcsTjEXzKLkN/vT2M 7T3FRREHKM6vDUwNDR6ZTfySQ2NHJ2d/dvA2bFFmyEb98/NqybUzW5A3oUwRs/b+Yu5J/8 bsR+FPMfTBHxf3rykHIWPhjoNd38dVU5CN3uMHf0JjqpRDXJJfAqRKfk3Ly8Qw== 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 4XtJqL03MpzSGM; Tue, 19 Nov 2024 22:21:02 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4AJML1To014758; Tue, 19 Nov 2024 22:21:01 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4AJML1qc014755; Tue, 19 Nov 2024 22:21:01 GMT (envelope-from git) Date: Tue, 19 Nov 2024 22:21:01 GMT Message-Id: <202411192221.4AJML1qc014755@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Gleb Smirnoff Subject: git: 7678dac43714 - main - ktrace: support AF_NETLINK in ktrstruct 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: glebius X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 7678dac437149a8af7cbbc2c8b067c9096143320 Auto-Submitted: auto-generated The branch main has been updated by glebius: URL: https://cgit.FreeBSD.org/src/commit/?id=7678dac437149a8af7cbbc2c8b067c9096143320 commit 7678dac437149a8af7cbbc2c8b067c9096143320 Author: Artem Hevorhian AuthorDate: 2024-11-19 22:19:15 +0000 Commit: Gleb Smirnoff CommitDate: 2024-11-19 22:19:50 +0000 ktrace: support AF_NETLINK in ktrstruct Right now, sockaddr_nl parameters are not displayed in kdump output, however they are present in the structure in ktrace.out file when ktrace is run. Reviewed by: melifaro, markj, glebius Differential Revision: https://reviews.freebsd.org/D47411 --- usr.bin/kdump/kdump.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/usr.bin/kdump/kdump.c b/usr.bin/kdump/kdump.c index f104c20f3842..48f645c339b9 100644 --- a/usr.bin/kdump/kdump.c +++ b/usr.bin/kdump/kdump.c @@ -59,6 +59,7 @@ #endif #include #include +#include #include #include #include @@ -1944,6 +1945,15 @@ ktrsockaddr(struct sockaddr *sa) printf("%.*s", (int)sizeof(sa_un.sun_path), sa_un.sun_path); break; } + case AF_NETLINK: { + struct sockaddr_nl sa_nl; + + memset(&sa_nl, 0, sizeof(sa_nl)); + memcpy(&sa_nl, sa, sa->sa_len); + printf("netlink[pid=%u, groups=0x%x]", + sa_nl.nl_pid, sa_nl.nl_groups); + break; + } default: printf("unknown address family"); }