Message ID | 20221020115209.1761864-11-alex.bennee@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp238021pvb; Thu, 20 Oct 2022 05:56:50 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5cQKO3uu2k8yNWCKzX/HvbfCMgUvhQEZFCtFRgfd8Ax63dOaKbnetrkmVJJopbUhqapMwG X-Received: by 2002:a37:bc3:0:b0:6ee:7931:9e5a with SMTP id 186-20020a370bc3000000b006ee79319e5amr9032765qkl.105.1666270610362; Thu, 20 Oct 2022 05:56:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666270610; cv=none; d=google.com; s=arc-20160816; b=IenwuFKAAeBkopFH/4I/o/N8H0H6R+zid+7BACaDaFBHbdpbIs7gY0uwAbdiSBf99Z sMZfRmKjf4A05MsEMvFUQT6vyb1Uu1kZ29yJ46LznhuoAjapTMoIko8Zjq3U3CpMwn/1 GFsvf7RRLgcs6PlivGfq4KdK7ViZfmisJUvHmMmkfUHX1iH8lBVLQVBqaOLdx+5v0TZF jQg09ps/VyF9R7hIYS3VtATUyNNbP8LsuhSWpvWCkF6IoCUqR4fbOfwhJH1tXQFm2wG7 ZcihG1z5eeuw4sEyCVCiUYeZ56N/zg9DkMN3edLFMwaoHqus+lrByAMCoMtcMgNWjP0n 0Vsw== 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:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=0F9rxKn3WyeYR6Nw4DlRXjaGHdV7xjAKqhTqdoDJFbA=; b=fs5VYRCMbj0GFb72t8JsB0JaaphDnHjbjAuqp4V7nOA1Eu8n4DDRoh15L/lGxGeUrW CXE7a6eQq15tIeNxOli9vWJgXw4e7KdTHX4cIw4ns5zXzbCETeJlU4jLiKXI3o+TwS+X Jwf8UImIeX6z9MfSc8LO1zXKODhM4d6itmCP0XZjTFq96bzQdWmpKizxiYwA6E2ERqAy O2FPJxTgQsGf9tGflI3BSy4ugIiJA015uXKUYD/R+7dP13jxico0I4dJqGV/XKDS0+fL NkcZ83cBJsxrK4j6ZtovU8X6bUAXrm0aI3iqf8pPWAUA7tbx2PhVzEToAcX59HLLUxOo AkTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=do9bs56w; 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: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id y68-20020a379647000000b006eeb2674274si9996246qkd.67.2022.10.20.05.56.50 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 20 Oct 2022 05:56:50 -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=do9bs56w; 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]:32782 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1olV6P-0002WC-Fy for patch@linaro.org; Thu, 20 Oct 2022 08:56:49 -0400 Received: from [::1] (helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1olUdg-0003cg-NS for patch@linaro.org; Thu, 20 Oct 2022 08:27:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56708) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <alex.bennee@linaro.org>) id 1olU67-0002e5-Be for qemu-devel@nongnu.org; Thu, 20 Oct 2022 07:52:30 -0400 Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]:37529) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <alex.bennee@linaro.org>) id 1olU61-0000oc-Mh for qemu-devel@nongnu.org; Thu, 20 Oct 2022 07:52:27 -0400 Received: by mail-wr1-x430.google.com with SMTP id bv10so33914771wrb.4 for <qemu-devel@nongnu.org>; Thu, 20 Oct 2022 04:52:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=0F9rxKn3WyeYR6Nw4DlRXjaGHdV7xjAKqhTqdoDJFbA=; b=do9bs56wi393U3SqN4g9206PdFt8zZTsrGAWM+mEAz7oRl5SnSXgIhgja5AE2RhB9+ fUTLIWTjpSwEtCXxCdvBPV3zte2Yc+hVklnidd7tvSwVDr/Vs9nvY2aerwCzJtkkyi2z nU2wHkVQtUOyV9pd+AbaKoVs26Eh2wVPuZB7V0+zX8DWYOEMlQwv7F+S+DJOXI0ihcjr xttpoL1VSoBXsuw7EJFT4sMJ3QlY2EODSjG7xeDveUa/ola//GGO3PpweKD66itw5Zd5 XOBuVHxxbvT7gAWZDqO/uUdrc0F2CNILaCcu3wCP9RAM6Ra244JVekHGpZGUbIKZZrtM JZMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=0F9rxKn3WyeYR6Nw4DlRXjaGHdV7xjAKqhTqdoDJFbA=; b=42P8J6gbZiROw5VmqrMqHd2NmDzxaWHqykyyLdoSiAY3CRsUrq8GG+kVef0P5kROBj nP7nhf379CDILm35WGYQCda0ZEb52fh/PTeuv4oLksplivAnsnKIRJ9lG3P1GpgGp8+0 UPU4yA3Aba1NgGhK7bd5yXMLl+OFHY/Z5ecEkcGPu0JowGP10psJzFS+uxkeBpjXDiYq 3ZLvfDVPkHtp99lOo8sZ4kNb/m/z3URmMiCFADwvFoLCEw5kNj7VIUljwILnUZRPeKor kThlXu/ZHQ3zUed+BxyXBp8dNC9ZrqncYoL/iRptK3QHYzbm2Rxd45qEtKoXIFseiXJQ 7Drg== X-Gm-Message-State: ACrzQf0WGX3ooA/N/c5EgyBnZTxe+i97emMBhMi6w3rFQJ9KtVO1fnWw ygqmHuaGE6PT5ffZBes0MhQMXA== X-Received: by 2002:adf:e187:0:b0:234:6c1b:cf7e with SMTP id az7-20020adfe187000000b002346c1bcf7emr3932958wrb.395.1666266739831; Thu, 20 Oct 2022 04:52:19 -0700 (PDT) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id k16-20020a5d5190000000b00236488f62d6sm834812wrv.79.2022.10.20.04.52.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Oct 2022 04:52:14 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 0227C1FFC1; Thu, 20 Oct 2022 12:52:11 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= <alex.bennee@linaro.org> To: qemu-devel@nongnu.org Cc: fam@euphon.net, berrange@redhat.com, f4bug@amsat.org, aurelien@aurel32.net, pbonzini@redhat.com, stefanha@redhat.com, crosa@redhat.com, Bin Meng <bin.meng@windriver.com>, =?utf-8?q?Marc-Andr?= =?utf-8?q?=C3=A9_Lureau?= <marcandre.lureau@redhat.com>, =?utf-8?q?Alex_Ben?= =?utf-8?q?n=C3=A9e?= <alex.bennee@linaro.org>, Richard Henderson <richard.henderson@linaro.org> Subject: [PATCH v3 10/26] tcg: Avoid using hardcoded /tmp Date: Thu, 20 Oct 2022 12:51:53 +0100 Message-Id: <20221020115209.1761864-11-alex.bennee@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221020115209.1761864-1-alex.bennee@linaro.org> References: <20221020115209.1761864-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::430; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x430.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, T_SPF_TEMPERROR=0.01 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: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patch=linaro.org@nongnu.org> |
Series |
testing/next (docker, avocado, s390x, MAINTAINERS)
|
expand
|
On 20/10/22 13:51, Alex Bennée wrote: > From: Bin Meng <bin.meng@windriver.com> > > Use g_get_tmp_dir() to get the directory to use for temporary files. > > Signed-off-by: Bin Meng <bin.meng@windriver.com> > Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> > Reviewed-by: Alex Bennée <alex.bennee@linaro.org> > Signed-off-by: Alex Bennée <alex.bennee@linaro.org> > Message-Id: <20221006151927.2079583-3-bmeng.cn@gmail.com> > --- > tcg/tcg.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
diff --git a/tcg/tcg.c b/tcg/tcg.c index 612a12f58f..84921b64f7 100644 --- a/tcg/tcg.c +++ b/tcg/tcg.c @@ -4729,7 +4729,8 @@ static void tcg_register_jit_int(const void *buf_ptr, size_t buf_size, /* Enable this block to be able to debug the ELF image file creation. One can use readelf, objdump, or other inspection utilities. */ { - FILE *f = fopen("/tmp/qemu.jit", "w+b"); + g_autofree char *jit = g_strdup_printf("%s/qemu.jit", g_get_tmp_dir()); + FILE *f = fopen(jit, "w+b"); if (f) { if (fwrite(img, img_size, 1, f) != img_size) { /* Avoid stupid unused return value warning for fwrite. */