From nobody Wed Jul 06 11:04:07 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 667301D00D67; Wed, 6 Jul 2022 11:04:09 +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 4LdGrS5W0Kz3NKn; Wed, 6 Jul 2022 11:04:08 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1657105448; 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=a3xULinQEi4Sq4Bw7VOpjHw+oOZnjHeEKkB9kABFGA4=; b=ReVJt2un1pHYTAv8Z04wPt71UkXW1jfI+CBcKSQqzcRIcaEXp2PXchG7LeSpxa/BjE0Sf9 rWWjYvsun1Av6/Gd6dKLDWp0Ia+R21OvIvNZIJ+vpMcyB01DyNE/vYomudP+wrfEJjasYf D+bjquYCUfyNQqNF4TLm+moGmJF12Xf+9E0ncGRVOUG86ezFJHpO/O5oGc7GywzEjr58u9 oZ7hA2B97+zz2py4TDMuBVpwL+flujj/CG214kR966nZ5IHtPrd8kWwUuxJoNPMVnjFZZf WOGTbaTn4DB9KdcYtd1d41TvCq+zbE+N0NdjhMUOdrKMalRrm7MbTljKNyx0/Q== 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 9C6061951F; Wed, 6 Jul 2022 11:04:07 +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 266B475v096574; Wed, 6 Jul 2022 11:04:07 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 266B47qn096573; Wed, 6 Jul 2022 11:04:07 GMT (envelope-from git) Date: Wed, 6 Jul 2022 11:04:07 GMT Message-Id: <202207061104.266B47qn096573@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dmitry Chagin Subject: git: 4ec7625e663a - stable/13 - kdump: Decode Linux sigprocmask how argument 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: dchagin X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 4ec7625e663ac9342b287985cb4ad228dc0be9e8 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1657105448; 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=a3xULinQEi4Sq4Bw7VOpjHw+oOZnjHeEKkB9kABFGA4=; b=aUW6nxCL3vo48Z4G/ZxC8dHOufqtXjzAcjLnJdbSwK/lXwXiAatZVK0F08R7X/ftL8Xgur yd4ZCT+0S9XZ4Fjm98ulFMqppNcjgZ6YCY9Tn4LAS+14FEAIcYObuvXvm29GBuVh462Afq pVGrPeSnsYtskNPAjTHtM/b1uYjl5YMxKrtRgHMjPN7R/QCVwRLz6dt/w4GG0DuzrXJdrG Eunel8CwVQ74TE8O9GGu4fPEawisgH+818oeJwGryRiF+m+dmAPZfGbO34KR52vy0KCeNb /6R9t7iEqVqsK5F84vl8aAEt09zUYoDY/OP3htHXHnt/g9S6/jM2RyjsCdGmbQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1657105448; a=rsa-sha256; cv=none; b=ogQD20cJUIV9/cUvn/fDebLIxWGvBKWwkI3/N1VoUDlvkOvaD4E6jZdK0npOwyc9ZyeR2A UDaByWgfbpMs7IHg+fOaKpfK4TwJwPSuOTVdy0s7kdKYgisFliG7IcO7qUgwXxeeX5R9cv dicXZO7V1JdY0zNkDUbwxQQm9kwA6bHhJ5FGu0WHzFdDnSXZN0fmFjXT1Yv9DUX4qkmu7X 4DHXGmhyy3Sonw/bIC5Dp8eX0OGf7C5aN/4BbEIpj6LQdDaQul3+qiV+h3eNN9wgsQLYV8 65CP+7qJYzLwXXI23iDyGkd8yjDcBIE8miI5tNQjhwuIryIKG8/dDb0PmPCbPA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by dchagin: URL: https://cgit.FreeBSD.org/src/commit/?id=4ec7625e663ac9342b287985cb4ad228dc0be9e8 commit 4ec7625e663ac9342b287985cb4ad228dc0be9e8 Author: Dmitry Chagin AuthorDate: 2022-06-22 11:20:39 +0000 Commit: Dmitry Chagin CommitDate: 2022-07-06 11:02:14 +0000 kdump: Decode Linux sigprocmask how argument MFC after: 2 weeks (cherry picked from commit f587a2a765fb3bac352bedf6ef8b322eb3363339) --- lib/libsysdecode/linux.c | 7 +++++++ lib/libsysdecode/mklinuxtables | 1 + lib/libsysdecode/sysdecode.h | 1 + usr.bin/kdump/linux.c | 18 ++++++++++++++++++ 4 files changed, 27 insertions(+) diff --git a/lib/libsysdecode/linux.c b/lib/libsysdecode/linux.c index 6a8d30207835..adaf6172618d 100644 --- a/lib/libsysdecode/linux.c +++ b/lib/libsysdecode/linux.c @@ -183,3 +183,10 @@ sysdecode_linux_signal(int sig) return (linux_signames[sig]); return (NULL); } + +const char * +sysdecode_linux_sigprocmask_how(int how) +{ + + return (lookup_value(sigprocmaskhow, how)); +} diff --git a/lib/libsysdecode/mklinuxtables b/lib/libsysdecode/mklinuxtables index 62f0d9329c94..efd579adff35 100644 --- a/lib/libsysdecode/mklinuxtables +++ b/lib/libsysdecode/mklinuxtables @@ -90,6 +90,7 @@ _EOF_ gen_table "clockids" "LINUX_CLOCK_[A-Z_]+[[:space:]]+[0-9]+" "compat/linux/linux_timer.h" gen_table "clockcpuids" "LINUX_CPUCLOCK_[A-Z_]+[[:space:]]+[0-9]+" "compat/linux/linux_timer.h" "_MASK|_MAX" +gen_table "sigprocmaskhow" "LINUX_SIG_[A-Z]+[[:space:]]+[0-9]+" "compat/linux/linux.h" # Generate a .depend file for our output file if [ -n "$output_file" ]; then diff --git a/lib/libsysdecode/sysdecode.h b/lib/libsysdecode/sysdecode.h index f588319fbf17..dd765d28d870 100644 --- a/lib/libsysdecode/sysdecode.h +++ b/lib/libsysdecode/sysdecode.h @@ -143,6 +143,7 @@ bool sysdecode_shmflags(FILE *_fp, int _flags, int *_rem); void sysdecode_linux_clockid(FILE *_fp, clockid_t _which); const char *sysdecode_linux_signal(int _sig); +const char *sysdecode_linux_sigprocmask_how(int _how); #endif /* __i386__ || __amd64__ || __aarch64__ */ diff --git a/usr.bin/kdump/linux.c b/usr.bin/kdump/linux.c index 55b3df912898..f55d0b7da83d 100644 --- a/usr.bin/kdump/linux.c +++ b/usr.bin/kdump/linux.c @@ -125,6 +125,16 @@ ktrsyscall_linux(struct ktr_syscall *ktr, register_t **resip, narg--; c = ','; break; + case LINUX_SYS_linux_rt_sigprocmask: +#ifdef LINUX_SYS_linux_sigprocmask + case LINUX_SYS_linux_sigprocmask: +#endif + putchar('('); + print_integer_arg(sysdecode_linux_sigprocmask_how, *ip); + ip++; + narg--; + c = ','; + break; } *resc = c; *resip = ip; @@ -199,6 +209,14 @@ ktrsyscall_linux32(struct ktr_syscall *ktr, register_t **resip, narg--; c = ','; break; + case LINUX32_SYS_linux_rt_sigprocmask: + case LINUX32_SYS_linux_sigprocmask: + putchar('('); + print_integer_arg(sysdecode_linux_sigprocmask_how, *ip); + ip++; + narg--; + c = ','; + break; } *resc = c; *resip = ip;