From patchwork Fri Aug 11 16:28:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 712597 Delivered-To: patch@linaro.org Received: by 2002:adf:a390:0:b0:317:ecd7:513f with SMTP id l16csp1471459wrb; Fri, 11 Aug 2023 09:29:04 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF6chHXn/AdpeCUoHu/0jNIjBxP5abSSSIjIpbdnCosUbUIfNffWOBRfIRWgVNdKZK6tFa9 X-Received: by 2002:ac8:59cf:0:b0:40f:f860:f025 with SMTP id f15-20020ac859cf000000b0040ff860f025mr2645769qtf.40.1691771343992; Fri, 11 Aug 2023 09:29:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691771343; cv=none; d=google.com; s=arc-20160816; b=cLfJY//LnxzXJSUQ4LZ5UhPlky4CulFCB9xAhlef2L8mNu7iQld+oxgelBOZB2e8pK kjVKaW0OQ0NnKwlrOqNWcWp4isS+6T6Daks/aOJGsbYInC2jCDH9QlElA1aBiwkyNCs+ Js8uaShPygg61Wz+KMbK1G3I6NMQxfPqWWC6AHj7arpe6u6yHU2MDp4jHxnrwwQ6W4On KndNGFAtfREfIn6ja/xs8+VToAIkrYZxPQF4ynHh2n5HsAAu1qn+IspxV0coi0WHp7LA Nz2mGqBXt86Py+v7ZkzsYoOgc+EZi3fs1JNQGtMPfzhq4lWwpRS6TpkLycywelusNdKX //5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=zMEsHZBJkqQjHLunjzGEDP3wsnZT7wCzzg3kXjjglpM=; fh=RlN9Ukfp+puf2txuq361eNvpWpIV3yJBG4IGRZso9Sg=; b=OuqTfOy7apvMg+fJmNokE04p7Qua10nbuFMFf9GB+B6F6/JEjKvrRkjXVjmQaPi9xY Nf67hviL7p1yXH37GheCvtzFxqqYPNIUt2xKPcgqKLjBhw2VqVN08fafAweeNJD09KeJ 6U7OCacf7eZ71fXMbM1ulkfyt43kBJCLXecrh82cAYXIePFt6BfzrO1ut2k1phRmTzx4 UGm82A2/LNyQBgjMz5PwIldiofq1Vp7La6ED9E5E0/9bsY+OmcuLQbnvqM+e0w9WDePu 44jy2Ce+fnV4GIUUlIwKB+I0eB5CztCBQyMlGJfZUhzrQjJfBRQlBMViuLU62LzBNtJN Uurw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UYWiyYSf; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id c16-20020a05622a025000b00403ef028ba7si2458686qtx.156.2023.08.11.09.29.03 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 11 Aug 2023 09:29:03 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UYWiyYSf; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qUV09-0006M8-6z; Fri, 11 Aug 2023 12:28:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qUV06-0006K9-Up for qemu-devel@nongnu.org; Fri, 11 Aug 2023 12:28:35 -0400 Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qUV05-0005EP-Fy for qemu-devel@nongnu.org; Fri, 11 Aug 2023 12:28:34 -0400 Received: by mail-wr1-x42a.google.com with SMTP id ffacd0b85a97d-31965c94001so101455f8f.3 for ; Fri, 11 Aug 2023 09:28:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691771312; x=1692376112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=zMEsHZBJkqQjHLunjzGEDP3wsnZT7wCzzg3kXjjglpM=; b=UYWiyYSfa68fbuJ9Gn/kXXb+SVBhGtuzcEzXb7w1TP/xHlOxpzhI0zVbsLVTcVMbWJ k/tgE9Hhona33io6KUete3UQJ2af8EiV9YV7vNB/s19dV3AADVOnHwnJRSThDjizpQ0h ZAWp3gBTblgEpaOQgeLAAuTGB7wK5687ZRRYmQvtuPLTS7ribJaFHZXhRktHkBMa79Yu 6cbRgNJL5BgdA9GGSEEiO3SZ2RaSAfUrVJzzz3n9R5SoHehKMHWSIVEinWCr1FbBQd/4 eBLElc/EVsCZUXXgVgdglaiamFTPMW6S1YnChSnuuQukOmQGNNogg1wV7tjrDRwP+4Ew eKmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691771312; x=1692376112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=zMEsHZBJkqQjHLunjzGEDP3wsnZT7wCzzg3kXjjglpM=; b=g8A+kQIhBs7jBzEhx/4mdNmJOtfiKFyCSd2J973vb72Onr4356PMGtsiMjguwgcJAl z75BN1IILN5b+jHsh5os+hCx39A+1s4N1O/0cGSBwn/Cy7L8gmqIkozqVousxuyVDWzu 1iaBW3sgAXW39xQ5WocBiYRc1hR/h2O8rmTogFVFAd17cnXyF0duDKw+fojo8WmkQYN1 DlI9JRY8BwZ6O7DUxCcbd8GHqWC4Ed3FLTXxR099EJx7Mnxn9MrymAEtaRFdpWXBblZA JRKDVkA9K40zxBMBGv0FmWA3BOSyO2hxDtvJRseWBQtnVgodXI3+o2AI2XHLS2C82lXh DSeQ== X-Gm-Message-State: AOJu0Yz36ChcbIu2o7zTt91NNBgWB+HLHdnLfVmAc1UJd43vsf6DaytQ 5MAj7fAQExH7mXeDBH3DjzphBw== X-Received: by 2002:a5d:6b4f:0:b0:317:708e:1c29 with SMTP id x15-20020a5d6b4f000000b00317708e1c29mr1767980wrw.40.1691771311398; Fri, 11 Aug 2023 09:28:31 -0700 (PDT) Received: from zen.linaroharston ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id f17-20020adff451000000b00317efb41e44sm5931793wrp.18.2023.08.11.09.28.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Aug 2023 09:28:31 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 5ABEA1FFBB; Fri, 11 Aug 2023 17:28:30 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org, Yeqi Fu Cc: Laurent Vivier , =?utf-8?q?Alex_Benn=C3=A9e?= Subject: [RFC PATCH 0/2] linux-user: extend -dfilter to accept paths Date: Fri, 11 Aug 2023 17:28:28 +0100 Message-Id: <20230811162830.2278032-1-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42a; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x42a.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, 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org I was getting lost on debugging output and I couldn't get the mapped address of libnative to be stable. So to help I hacked up this extension which may or may not be worth developing further. Consider this a debugging RFC tool for now. Alex Bennée (2): linux-user: implement some basic FD<->path tracking linux-user: implement name lookup for dfilter include/qemu/log.h | 12 ++++++ linux-user/syscall.c | 90 +++++++++++++++++++++++++++++++++++++++++--- util/log.c | 36 +++++++++++++++++- 3 files changed, 131 insertions(+), 7 deletions(-)