From nobody Wed Jun 22 11:41:06 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 E5344871BDE; Wed, 22 Jun 2022 11:41:07 +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 4LShKZ72y6z4sQ8; Wed, 22 Jun 2022 11:41:06 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1655898067; 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=iDfQDZVzqzpt0cNOerwO3nTzM69bRFh+k989mzLSPOs=; b=Rs1YTDpCGDME0GuyES4ysXruRhyEk86pJgP0qXaIypTn5NuVhRqDLaGiKsmE8mZL2GIU/a L7xjT+ICpLduMlh/2vH0ODdWKJPejS11za64EpAqqwzoBl1UhGXntjsFxorWTjkKlxgrXJ Vqa9olXpUEkt8xzrQRF2DTvCyh893/SV0AUEtkzdPBOHe+UQebuPFKPV3Ga6mQbt+OQdV8 CnKJ5CX6WuFoFdLS8PLvBSEqa+s9NGMzURtXRSBhA1OTLkP48DvDhg2J4RQNQcFqgwlPTD gtT9ME9ckiS6VE6ceXj37znTpnCvte7Dr1aU1Cu8BbagnxMqAN3KI7rWdT6iFQ== 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 A1726254A4; Wed, 22 Jun 2022 11:41:06 +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 25MBf6I2023810; Wed, 22 Jun 2022 11:41:06 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 25MBf6a3023809; Wed, 22 Jun 2022 11:41:06 GMT (envelope-from git) Date: Wed, 22 Jun 2022 11:41:06 GMT Message-Id: <202206221141.25MBf6a3023809@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Dmitry Chagin Subject: git: f587a2a765fb - main - 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/main X-Git-Reftype: branch X-Git-Commit: f587a2a765fb3bac352bedf6ef8b322eb3363339 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1655898067; 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=iDfQDZVzqzpt0cNOerwO3nTzM69bRFh+k989mzLSPOs=; b=mJdTmDIBi7M/3YcjdDKaatuvjXWKbjQC5SVHSDEw2Ggqgpr0TsaQS5xa/WJD0nylTNM2/a jqmnDGPlxNHeWq2RDUnNKJSM8xemoQPtspzubihT1IY06ncxC26QlC98Iaqj0sAAeNbp/q irdCk3ZvzqzwGOQrslrWmIRqV8Q2KiwVaOg9QdHOwDL/b7C5QQQzaWbMFLoExEz2NklpXK 05z0kAKsiI7VD+wYi8Lld8Qgg4eSrQtJh/tlbGt403pqlSc48l1YiCIYLUHURQCH1wBiio 9EAJhdA9XWAtvRN8W2ujNrArTsIyk0tcUooIDlwt/yFM86QEDtLmkri4hR5XYg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1655898067; a=rsa-sha256; cv=none; b=Zlwque5pOLUOQXwMNRH3MgrYntGo3/hM+WiJNW5zyuBWdiaRXpHSQrZE3j+AIKRV2IjVoG +/GrR/fLjGZvnQiMD66rS4ENxNw3NqmQ2PKpBV7tlQF1ChqA2iWk6YWxOZhiGdSS0W2bgr 0DzGCb/jpWBwidxp9MExzQT/lng8GN2Gxb//H/6RYidM0pnIZZGufQ6iW9A/H2Kx2IRVtl FZ7Zn78E1h6cQSCoMpgPM5DnTB0eBOLlzfqotS16kmBTcQlT8EtY0G4F8WnwFqqIORFjlC xHijZhVeJFw2vvUU/gL8JT1BBmrl0DfbAoq9ScDOkx0HPjyofDi3xV5kHG4c6g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by dchagin: URL: https://cgit.FreeBSD.org/src/commit/?id=f587a2a765fb3bac352bedf6ef8b322eb3363339 commit f587a2a765fb3bac352bedf6ef8b322eb3363339 Author: Dmitry Chagin AuthorDate: 2022-06-22 11:20:39 +0000 Commit: Dmitry Chagin CommitDate: 2022-06-22 11:20:39 +0000 kdump: Decode Linux sigprocmask how argument MFC after: 2 weeks --- 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 91b07e0b4768..4412f5d70078 100644 --- a/lib/libsysdecode/sysdecode.h +++ b/lib/libsysdecode/sysdecode.h @@ -141,6 +141,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;