From nobody Wed Jul 06 11:04:09 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 177701D01151; Wed, 6 Jul 2022 11:04:12 +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 4LdGrV6rGJz3NSb; Wed, 6 Jul 2022 11:04:10 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1657105451; 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=EUMAxXtgWqwlL4X7+lDE8GZ3OymXCrDuS/tOlZtZo5E=; b=FH7OkwRY1GgB7tTGaAUct+wf4B44RQ/Fm0a/qxenR4VyFhlJagnk7VqZxzv/FT7i3PALC3 3+bLjGGtEUPbS65kEQQi7mZ1NS3s6jOlVkWaDX/7QLO4mKvlYo8d/P3huyeeOiJqRwyHG8 JTjYZXBjJoFzVUshZMylQlqFvg5hdv7G+uXV8xmB3OsjzWstuhylD5Y9RizUDGfryzQMbw mSo94hn+/J+Mgmo3ZMmJ037fHqvssLmLggWbEfASyDEa1Gh4zN/CXObHNM9nBVNlwVG1Mg Wur2Gh5HHgbQAQ0f1xZGjd4QSzce+2X+4tIp4GScDIAkZS00E4pga4MPEJ4O9A== 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 E0BAE194BC; Wed, 6 Jul 2022 11:04:09 +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 266B49FL096628; Wed, 6 Jul 2022 11:04:09 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 266B49Ne096627; Wed, 6 Jul 2022 11:04:09 GMT (envelope-from git) Date: Wed, 6 Jul 2022 11:04:09 GMT Message-Id: <202207061104.266B49Ne096627@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: 46ebfcb039c6 - stable/13 - libsysdecode: Decode Linux *at() flags 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: 46ebfcb039c6842d50da3cd1ba7695761c91497c Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1657105451; 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=EUMAxXtgWqwlL4X7+lDE8GZ3OymXCrDuS/tOlZtZo5E=; b=ExamlImmS/YRgAOoON02NoY6TUgiLsBdgg65QTlmn9JpZBdNl+YCZQv9jSu6XTmbJ1BSSe oNgB4kfA5Vs/aWssKWb0AKUlWzw3DmMy1BgKNWy5uPDJnIRNRO4lAUzKvDhjUccSSkxowC NflpKs40UG0lWBUAFCY9qa+2lNazzkk6uxZ6x7HvTqosnKZEQBRc4cVgnYYLcjx7qAQv0E meK3bPTCCBtpnKwPDU0igioh++c9gqOseYPCaRPp7xqH2tU0h2g0lfLIyrm9LRnLqUqE8Y TfEDe0jfTldq92Bh41iz8d+bePD9cfA+PK2ByJAC/5LUp3yhkEFQiTXCCwPu6Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1657105451; a=rsa-sha256; cv=none; b=mefLuQ+ZFNA0aVOwG9aTyEczCxpmlcTlVmHaAahEJiMIBII1d+IMkf7jFD2rYmySe+UA6m pLwoNgCiYcHmIv1+Xpbgs80I/wvxTRy6Gmlrmm5ju9BXmlNgS0oxF5v2jVWykhsUcm8cSu 0SzO3L+alEUZ0L+QBpp5ACsrPcmYzT6U5B3UkQHK21ItUKa9QeL0PzJsAy2gQL+DiETZYF 5yDk+ZS92e3tPsGRMPDyz3j3pLCKEls99lwN+wgGT+ef2EWWwbWnU5t/U1g9mswo7E2UCA qjyiSR2H++7xN2372EleZtG2LW1QHT+qLLy5F33ncQ8fV/VZHZ+Oet1J4nAHag== 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=46ebfcb039c6842d50da3cd1ba7695761c91497c commit 46ebfcb039c6842d50da3cd1ba7695761c91497c Author: Dmitry Chagin AuthorDate: 2022-06-22 11:25:36 +0000 Commit: Dmitry Chagin CommitDate: 2022-07-06 11:02:14 +0000 libsysdecode: Decode Linux *at() flags MFC after: 2 weeks (cherry picked from commit d2b3237eebdfd46d54a9539acf13e3f24dc935b2) --- lib/libsysdecode/linux.c | 8 ++++++++ lib/libsysdecode/mklinuxtables | 1 + lib/libsysdecode/sysdecode.h | 1 + 3 files changed, 10 insertions(+) diff --git a/lib/libsysdecode/linux.c b/lib/libsysdecode/linux.c index 79e71d1207ca..8a3b88a7bfca 100644 --- a/lib/libsysdecode/linux.c +++ b/lib/libsysdecode/linux.c @@ -51,6 +51,7 @@ __FBSDID("$FreeBSD$"); #endif #include +#include #include #define X(a,b) { a, #b }, @@ -197,3 +198,10 @@ sysdecode_linux_clock_flags(FILE *fp, int flags, int *rem) return (print_mask_int(fp, clockflags, flags, rem)); } + +bool +sysdecode_linux_atflags(FILE *fp, int flag, int *rem) +{ + + return (print_mask_int(fp, atflags, flag, rem)); +} diff --git a/lib/libsysdecode/mklinuxtables b/lib/libsysdecode/mklinuxtables index caeeb785b4d3..734d69fca9cf 100644 --- a/lib/libsysdecode/mklinuxtables +++ b/lib/libsysdecode/mklinuxtables @@ -88,6 +88,7 @@ cat <<_EOF_ _EOF_ +gen_table "atflags" "LINUX_AT_[A-Z_]+[[:space:]]+[0-9]+" "compat/linux/linux_file.h" gen_table "clockids" "LINUX_CLOCK_[A-Z_]+[[:space:]]+[0-9]+" "compat/linux/linux_timer.h" gen_table "clockflags" "LINUX_TIMER_[A-Z_]+[[:space:]]+0x[0-9]+" "compat/linux/linux_timer.h" gen_table "clockcpuids" "LINUX_CPUCLOCK_[A-Z_]+[[:space:]]+[0-9]+" "compat/linux/linux_timer.h" "_MASK|_MAX" diff --git a/lib/libsysdecode/sysdecode.h b/lib/libsysdecode/sysdecode.h index 6d72a84ef32a..ae09077e969e 100644 --- a/lib/libsysdecode/sysdecode.h +++ b/lib/libsysdecode/sysdecode.h @@ -141,6 +141,7 @@ bool sysdecode_shmflags(FILE *_fp, int _flags, int *_rem); #define SYSDECODE_HAVE_LINUX +bool sysdecode_linux_atflags(FILE *_fp, int _flag, int *_rem); void sysdecode_linux_clockid(FILE *_fp, clockid_t _which); bool sysdecode_linux_clock_flags(FILE *_fp, int _flags, int *_rem); const char *sysdecode_linux_signal(int _sig);