From mboxrd@z Thu Jan 1 00:00:00 1970 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=-6.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 9E5F4C433DF for ; Sun, 5 Jul 2020 18:59:29 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (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 7B09C2073E for ; Sun, 5 Jul 2020 18:59:29 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7B09C2073E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=cert.pl Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1js9rE-0006iL-VP; Sun, 05 Jul 2020 18:59:20 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1js9rD-0006iE-Tg for xen-devel@lists.xenproject.org; Sun, 05 Jul 2020 18:59:19 +0000 X-Inumbo-ID: a119caba-bef1-11ea-8496-bc764e2007e4 Received: from bagnar.nask.net.pl (unknown [195.187.242.196]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id a119caba-bef1-11ea-8496-bc764e2007e4; Sun, 05 Jul 2020 18:59:19 +0000 (UTC) Received: from bagnar.nask.net.pl (unknown [172.16.9.10]) by bagnar.nask.net.pl (Postfix) with ESMTP id 6DF33A1BA5; Sun, 5 Jul 2020 20:59:18 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by bagnar.nask.net.pl (Postfix) with ESMTP id 6B88AA1B9C; Sun, 5 Jul 2020 20:59:17 +0200 (CEST) Received: from bagnar.nask.net.pl ([127.0.0.1]) by localhost (bagnar.nask.net.pl [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id AkBzsEYyKSVV; Sun, 5 Jul 2020 20:59:17 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by bagnar.nask.net.pl (Postfix) with ESMTP id 0F325A1BA5; Sun, 5 Jul 2020 20:59:17 +0200 (CEST) X-Virus-Scanned: amavisd-new at bagnar.nask.net.pl Received: from bagnar.nask.net.pl ([127.0.0.1]) by localhost (bagnar.nask.net.pl [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id LlagYyDGD44d; Sun, 5 Jul 2020 20:59:16 +0200 (CEST) Received: from belindir.nask.net.pl (belindir-ext.nask.net.pl [195.187.242.210]) by bagnar.nask.net.pl (Postfix) with ESMTP id E4D04A1B9C; Sun, 5 Jul 2020 20:59:16 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by belindir.nask.net.pl (Postfix) with ESMTP id D824C22C09; Sun, 5 Jul 2020 20:58:46 +0200 (CEST) Received: from belindir.nask.net.pl ([127.0.0.1]) by localhost (belindir.nask.net.pl [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id GxDN8sUCE3ir; Sun, 5 Jul 2020 20:58:41 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by belindir.nask.net.pl (Postfix) with ESMTP id 7777622C0D; Sun, 5 Jul 2020 20:58:41 +0200 (CEST) X-Virus-Scanned: amavisd-new at belindir.nask.net.pl Received: from belindir.nask.net.pl ([127.0.0.1]) by localhost (belindir.nask.net.pl [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id eRShEoNG52Mn; Sun, 5 Jul 2020 20:58:41 +0200 (CEST) Received: from belindir.nask.net.pl (belindir.nask.net.pl [172.16.10.10]) by belindir.nask.net.pl (Postfix) with ESMTP id 59DA122C09; Sun, 5 Jul 2020 20:58:41 +0200 (CEST) Date: Sun, 5 Jul 2020 20:58:41 +0200 (CEST) From: =?utf-8?Q?Micha=C5=82_Leszczy=C5=84ski?= To: xen-devel@lists.xenproject.org Message-ID: <983829150.19744505.1593975521301.JavaMail.zimbra@cert.pl> In-Reply-To: References: Subject: Re: [PATCH v5 11/11] tools/proctrace: add proctrace tool MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Originating-IP: [172.16.10.10] X-Mailer: Zimbra 8.6.0_GA_1194 (ZimbraWebClient - GC83 (Win)/8.6.0_GA_1194) Thread-Topic: tools/proctrace: add proctrace tool Thread-Index: XPBWFQz1Fq+Dhs3nny1nHRh5+zAzMw== X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: luwei kang , tamas lengyel , Ian Jackson , Wei Liu , Andrew Cooper Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" ----- 5 lip 2020 o 20:55, Micha=C5=82 Leszczy=C5=84ski michal.leszczynski@c= ert.pl napisa=C5=82(a): > From: Michal Leszczynski >=20 > Add an demonstration tool that uses xc_vmtrace_* calls in order > to manage external IPT monitoring for DomU. >=20 > Signed-off-by: Michal Leszczynski > --- > tools/proctrace/Makefile | 48 +++++++++++ > tools/proctrace/proctrace.c | 163 ++++++++++++++++++++++++++++++++++++ > 2 files changed, 211 insertions(+) > create mode 100644 tools/proctrace/Makefile > create mode 100644 tools/proctrace/proctrace.c > diff --git a/tools/proctrace/proctrace.c b/tools/proctrace/proctrace.c > new file mode 100644 > index 0000000000..22bf91db8d > --- /dev/null > +++ b/tools/proctrace/proctrace.c > +#include > +#include > +#include > +#include > + > +#include > +#include > +#include > + > +#define BUF_SIZE (16384 * XC_PAGE_SIZE) I would like to discuss here, how we should retrieve the trace buffer size in runtime? Should there be a hypercall for it, or some extension to acquire_resource logic? Best regards, Micha=C5=82 Leszczy=C5=84ski CERT Polska