From patchwork Mon Dec 28 08:14:38 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David CARLIER X-Patchwork-Id: 11990917 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 13FA0C433E0 for ; Mon, 28 Dec 2020 08:17:51 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8BBD6221F9 for ; Mon, 28 Dec 2020 08:17:50 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8BBD6221F9 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:43926 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ktniv-0002JS-Hr for qemu-devel@archiver.kernel.org; Mon, 28 Dec 2020 03:17:49 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:58238) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ktng5-0008L9-4q; Mon, 28 Dec 2020 03:14:53 -0500 Received: from mail-ed1-x52d.google.com ([2a00:1450:4864:20::52d]:41372) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ktng3-0004iM-Mj; Mon, 28 Dec 2020 03:14:52 -0500 Received: by mail-ed1-x52d.google.com with SMTP id i24so9022380edj.8; Mon, 28 Dec 2020 00:14:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=fuBoN8O92mxATBxE1t605VssJxkUfPn5J1youTtn9Ds=; b=bXUfu8dI7QB99A8C0ufFAfVwd/rGPFXfyi2SWBQaLcUxUz2BTzyYZoG0PS9wJTLqAc 6ii08K6/1D6HsOh0rk/a+L49zlsHtq4w8M21S5MiEGox1ngwkmr+aQdTlUR04u3pvBLh TI59enyZE/m2m1i/LMpiJB+hOrr3rAV7n9A4KYDv5lR2FXq2LhIWo0EwJ5GaNudBrbEz BZzxohEOUhz2rnAgDAYID4iqeNCdyHqmHMdghE5O7AWcpFF7CbvbsBt1vvz9Kt6wEaTa Pk4L2La1BPFu+SuuUZsNm9qdKazVsPjUc9evtP+HCnK80ekYH0FvuyCNqveuuO6DmTql lPPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=fuBoN8O92mxATBxE1t605VssJxkUfPn5J1youTtn9Ds=; b=cglacu9GOeQjsDj0p0W0ymKLR1yeoaary9j3JFRJfJqdlNhXc4SNrRb7vnpB3/wwjW EFzvAwQt7gFBeJfPEg63TdoyYRNRoSYdxHEe0O7i4Hh6NUjhwPu3PE08sJwBe0unFY9p CEQ5IsBWhOdMOPY/GKzIbnCslAJ5xJOFOJSOdxe5r3O0IZfrFn4L7sDHCzx65rvf6J8x vW8vvX4+YWvI2Klymn7ZaUesjJXmh7fHyzpyvChK6HoNLXYKKHm2YVign1dS6Ojn67Mk n+5PAZtiWq2rMIQJsh0le7UHei8Ii47siQX+hN2i/6jRZGFwFM1GNAnpAkSSP7X4jqiJ +pwQ== X-Gm-Message-State: AOAM531KNtrU4Pe7y28nhLjpI1XGd/btfhTaBKoMjKzOF/pnRYjVF4od bgwC2IqVGkVbzfloFdfrk0t7hhBP604TxuKWBAC5KDusYAdqAQ== X-Google-Smtp-Source: ABdhPJxIo3JrI9GfBzP4Z9aYTgs0HH1gm+TxfKd7DHkgL8oeH4Fctga+WOJx6m2DqsudAkG6nboxjfiyXsOmirN7BLs= X-Received: by 2002:a50:f9cc:: with SMTP id a12mr40505131edq.335.1609143289298; Mon, 28 Dec 2020 00:14:49 -0800 (PST) MIME-Version: 1.0 From: David CARLIER Date: Mon, 28 Dec 2020 08:14:38 +0000 Message-ID: Subject: [PATCH 1/2] bsd-user, updating the FreeBSD's syscall list, based on the 11.x To: qemu-devel , QEMU Trivial Received-SPF: pass client-ip=2a00:1450:4864:20::52d; envelope-from=devnexen@gmail.com; helo=mail-ed1-x52d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" --- bsd-user/freebsd/syscall_nr.h | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/bsd-user/freebsd/syscall_nr.h b/bsd-user/freebsd/syscall_nr.h index d849024792..14d2465858 100644 --- a/bsd-user/freebsd/syscall_nr.h +++ b/bsd-user/freebsd/syscall_nr.h @@ -1,8 +1,8 @@ /* * System call numbers. * - * created from FreeBSD: releng/9.1/sys/kern/syscalls.master 229723 - * 2012-01-06 19:29:16Z jhb + * created from FreeBSD: stable/11/sys/kern/syscalls.master a61bf07 + * 2019-04-28 emaste */ #define TARGET_FREEBSD_NR_syscall 0 @@ -447,4 +447,23 @@ #define TARGET_FREEBSD_NR_rctl_remove_rule 529 #define TARGET_FREEBSD_NR_posix_fallocate 530 #define TARGET_FREEBSD_NR_posix_fadvise 531 -#define TARGET_FREEBSD_NR_MAXSYSCALL 532 +#define TARGET_FREEBSD_NR_wait6 532 +#define TARGET_FREEBSD_NR_cap_rights_limit 533 +#define TARGET_FREEBSD_NR_cap_ioctls_limit 534 +#define TARGET_FREEBSD_NR_cap_ioctls_get 535 +#define TARGET_FREEBSD_NR_cap_fcntls_limit 536 +#define TARGET_FREEBSD_NR_cap_fcntls_get 537 +#define TARGET_FREEBSD_NR_bindat 538 +#define TARGET_FREEBSD_NR_connectat 539 +#define TARGET_FREEBSD_NR_chflagsat 540 +#define TARGET_FREEBSD_NR_acceptat 541 +#define TARGET_FREEBSD_NR_pipe2 542 +#define TARGET_FREEBSD_NR_aio_mlock 543 +#define TARGET_FREEBSD_NR_procctl 544 +#define TARGET_FREEBSD_NR_ppoll 545 +#define TARGET_FREEBSD_NR_futimens 546 +#define TARGET_FREEBSD_NR_utimensat 547 +#define TARGET_FREEBSD_NR_numa_getaffinity 548 +#define TARGET_FREEBSD_NR_numa_setaffinity 549 +#define TARGET_FREEBSD_NR_fdatasync 550 +#define TARGET_FREEBSD_NR_MAXSYSCALL 551 From patchwork Mon Dec 28 08:14:44 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David CARLIER X-Patchwork-Id: 11990915 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.9 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,UNWANTED_LANGUAGE_BODY,UPPERCASE_50_75 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0BB55C433E0 for ; Mon, 28 Dec 2020 08:16:32 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A3CBE2245C for ; Mon, 28 Dec 2020 08:16:31 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A3CBE2245C Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:41146 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ktnhe-00019y-Mx for qemu-devel@archiver.kernel.org; Mon, 28 Dec 2020 03:16:30 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:58274) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ktngB-00005z-Uy; Mon, 28 Dec 2020 03:14:59 -0500 Received: from mail-ej1-x62c.google.com ([2a00:1450:4864:20::62c]:40664) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ktngA-0004kz-Bb; Mon, 28 Dec 2020 03:14:59 -0500 Received: by mail-ej1-x62c.google.com with SMTP id x16so13212662ejj.7; Mon, 28 Dec 2020 00:14:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=BjB2kfCb9GFsRopJ/P6iE8ClJI9dh3lRoLxLzjvEO4w=; b=FHZlb45CN2lfXuRbxst3YZcZb5KlsLRTHxuM+6fdNq0koLLaLlTl5mh/b99QmVN0Ui 7x/Cllc6wfdMcxO6dLDK3ANkX6PvC04c5Dp58xCLdO6f0pyWmo3UsczGJpCQt3Zg+SMo S/y3KOwvYze96ST+SPqNsBmhnvVbyaVhdeT31wi3ABfMCGfSde21X456K8Faz6+XzobM XsIL6zjyBNz29S//fNlQ99cSRU8dlZgPfbJ85nPwI1Bqr4LG4jZbtFOoCCLx6t1mtMTp pvpwg3h05fZS8pHoj7F7EkmGJ4CRJeub6sW0SxNE6li2bQQ87CD0UDVNdc40KfEObE9c HrrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=BjB2kfCb9GFsRopJ/P6iE8ClJI9dh3lRoLxLzjvEO4w=; b=gjHtFpABLEhRsDsLLFUxlvCgJQB4oWbU1y0PEuQoAKz3dkUxSL3vjBZrNijofem4OH w7ZtwM62/2lxvHmK/eUqGyddnF6vguYSKri5YivVlBVcrEfMcRC7LaX5G5lEgSKAS5Ac xF/g+x44UBRL40N1xolyQWJ3M3KhR682ugCj0LgfTOWJ+L2WqillmniivS1/B921VIQF w03wVWnV+lRvQbh8UIbw53K+OLLPw6NK4juxniDdNre5BWmdu4Nbul5qL9DYhcEC13gJ m39FDN+Ip6jOt4/EWqf0+JP/CqnFRsZEnHICvEohs1wBZJpuCbExbPS2Q/yCPAZqHKCF 6pbw== X-Gm-Message-State: AOAM530BTgv8XN9IFRaTZzlIzFvn1xfKN+ztAkRP4wbiRJ9l0krWKsMZ DpqLcuXWodXFA9Jzwmp4wq4i1OaJdVRL1jbTgigo9E8aEj03jg== X-Google-Smtp-Source: ABdhPJw7ybnaySpCZMCh873Se1j4xpPvw8u1ye4zjxWQ5gofi5XUlwqVwpdU41ucbrLKPpPSRLv15Kc/XHt7UzkrQzE= X-Received: by 2002:a17:906:d10f:: with SMTP id b15mr40294469ejz.268.1609143295795; Mon, 28 Dec 2020 00:14:55 -0800 (PST) MIME-Version: 1.0 From: David CARLIER Date: Mon, 28 Dec 2020 08:14:44 +0000 Message-ID: Subject: [PATCH 2/2] bsd-user, Adding more strace support for a handful of syscalls. To: qemu-devel , QEMU Trivial Received-SPF: pass client-ip=2a00:1450:4864:20::62c; envelope-from=devnexen@gmail.com; helo=mail-ej1-x62c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, UPPERCASE_50_75=0.008 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" --- bsd-user/freebsd/strace.list | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/bsd-user/freebsd/strace.list b/bsd-user/freebsd/strace.list index 2800a2d4eb..136d2c42d7 100644 --- a/bsd-user/freebsd/strace.list +++ b/bsd-user/freebsd/strace.list @@ -38,6 +38,13 @@ { TARGET_FREEBSD_NR_adjtime, "adjtime", NULL, NULL, NULL }, { TARGET_FREEBSD_NR_bind, "bind", NULL, NULL, NULL }, { TARGET_FREEBSD_NR_break, "break", NULL, NULL, NULL }, +{ TARGET_FREEBSD_NR_cap_enter, "cap_enter", NULL, NULL, NULL }, +{ TARGET_FREEBSD_NR_cap_fcntls_get, "cap_fcntls_get", NULL, NULL, NULL }, +{ TARGET_FREEBSD_NR_cap_fcntls_limit, "cap_fcntls_limit", NULL, NULL, NULL }, +{ TARGET_FREEBSD_NR_cap_getmode, "cap_getmode", NULL, NULL, NULL }, +{ TARGET_FREEBSD_NR_cap_ioctls_get, "cap_ioctls_get", NULL, NULL, NULL }, +{ TARGET_FREEBSD_NR_cap_ioctls_limit, "cap_ioctls_limit", NULL, NULL, NULL }, +{ TARGET_FREEBSD_NR_cap_rights_limit, "cap_rights_limit", NULL, NULL, NULL }, { TARGET_FREEBSD_NR_chdir, "chdir", "%s(\"%s\")", NULL, NULL }, { TARGET_FREEBSD_NR_chflags, "chflags", NULL, NULL, NULL }, { TARGET_FREEBSD_NR_chmod, "chmod", "%s(\"%s\",%#o)", NULL, NULL }, @@ -48,6 +55,8 @@ { TARGET_FREEBSD_NR_clock_settime, "clock_settime", NULL, NULL, NULL }, { TARGET_FREEBSD_NR_close, "close", "%s(%d)", NULL, NULL }, { TARGET_FREEBSD_NR_connect, "connect", "%s(%d,%#x,%d)", NULL, NULL }, +{ TARGET_FREEBSD_NR_cpuset_getdomain, "cpuset_getdomain", NULL, NULL, NULL }, +{ TARGET_FREEBSD_NR_cpuset_setdomain, "cpuset_setdomain", NULL, NULL, NULL }, { TARGET_FREEBSD_NR_dup, "dup", NULL, NULL, NULL }, { TARGET_FREEBSD_NR_dup2, "dup2", NULL, NULL, NULL }, { TARGET_FREEBSD_NR_eaccess, "eaccess", "%s(\"%s\",%#x)", NULL, NULL }, @@ -148,6 +157,8 @@ { TARGET_FREEBSD_NR_pathconf, "pathconf", "%s(\"%s\", %d)", NULL, NULL }, { TARGET_FREEBSD_NR_pipe, "pipe", NULL, NULL, NULL }, { TARGET_FREEBSD_NR_poll, "poll", NULL, NULL, NULL }, +{ TARGET_FREEBSD_NR_posix_fallocate, "posix_fallocate", NULL, NULL, NULL }, +{ TARGET_FREEBSD_NR_posix_openpt, "posix_openpt", NULL, NULL, NULL }, { TARGET_FREEBSD_NR_pread, "pread", NULL, NULL, NULL }, { TARGET_FREEBSD_NR_preadv, "preadv", NULL, NULL, NULL }, { TARGET_FREEBSD_NR_profil, "profil", NULL, NULL, NULL }, @@ -227,5 +238,6 @@ { TARGET_FREEBSD_NR_utimes, "utimes", NULL, NULL, NULL }, { TARGET_FREEBSD_NR_vfork, "vfork", NULL, NULL, NULL }, { TARGET_FREEBSD_NR_wait4, "wait4", NULL, NULL, NULL }, +{ TARGET_FREEBSD_NR_wait4, "wait6", NULL, NULL, NULL }, { TARGET_FREEBSD_NR_write, "write", "%s(%d,%#x,%d)", NULL, NULL }, { TARGET_FREEBSD_NR_writev, "writev", "%s(%d,%p,%#x)", NULL, NULL },