From patchwork Wed Apr 20 18:05:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 563984 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:6886:0:0:0:0 with SMTP id m6csp4408328map; Wed, 20 Apr 2022 11:20:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJymdmvj73KUqtSb1tX8fWUDoI3zpzQRNfdbZAimpT4LPX/GD0vZ4eTtMr0AwCOUvLEJFdNw X-Received: by 2002:a0d:ea42:0:b0:2eb:eaf1:eb71 with SMTP id t63-20020a0dea42000000b002ebeaf1eb71mr22468567ywe.57.1650478845098; Wed, 20 Apr 2022 11:20:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650478845; cv=none; d=google.com; s=arc-20160816; b=vNLBXWmII7ow/XMyarYSOEJvm1+66bAi4OoDOBM5PjsEn5bzdKU4rN2ogwii48oBak 8uu0QflzidvvnB5MdMCsV5N7oFI1yFxry10gNxi8ickwyNTxGVu9GdaVqY5axT7GE0ay ZAIKtYtbVLTA4HgWvQM7Tuf44mR+cvVzZXxpgoN0c8dc8jPn9I1XaUO259C8wR+156Gc 0BiHYAYnEd/nEgSltG2thuL40Ee0HOFjXmXomWBW1yRkRLndjFzII+bjL/99jBUKTXsq NIRlM2tcfT3SBQiHJAyvWjfgsnEaMQo8tw1lWDp3LMO60tD1rHgmZsUSPtzt7W+HedLa Wfmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc: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:to:from :dkim-signature; bh=YBEnYIn1GV5idkFObB274C97yF/rcyYAk+xYD7a+lYQ=; b=O2ZWMSjtCm/WFMyWqu63Dds/uq3KGeBCAKOVTP/NnaGIBK19hjUzGIXY+gwF1szjcP MWgt+lxsd61iXRg0tppguddONcbWufQWVRkH/TQTmF7GiXicxQGNuDRqJ/uTHsHQpFYM f15+HDydOZadS9uwh9ey/VL+7zfiRnIDGVj7Kf1wpKxziKygM5oFGIAV3UHcGl/bKw86 UNE7LIvu7JCr1hgJJy3JOBsmtnhf2N/HCgTAZlxLLh0hWeCJkryB9DgIRl8PNMtYfs8y OvOc81Xxw2DwdsbB7FJ7hsIdi1qV1vkKt5e2nrIE/Qxijyc4Hl7xxh/2M+j7AYwCnT7Z tZDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=q5PprUS2; 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 z188-20020a254cc5000000b0063e8ee7a95asi524978yba.119.2022.04.20.11.20.45 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 20 Apr 2022 11:20:45 -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=q5PprUS2; 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]:36700 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nhEwW-0001lQ-GV for patch@linaro.org; Wed, 20 Apr 2022 14:20:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53258) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nhEiq-0005S2-SK for qemu-devel@nongnu.org; Wed, 20 Apr 2022 14:06:36 -0400 Received: from mail-pj1-x102b.google.com ([2607:f8b0:4864:20::102b]:40956) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nhEip-0001Cq-Av for qemu-devel@nongnu.org; Wed, 20 Apr 2022 14:06:36 -0400 Received: by mail-pj1-x102b.google.com with SMTP id md20-20020a17090b23d400b001cb70ef790dso5617876pjb.5 for ; Wed, 20 Apr 2022 11:06:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=YBEnYIn1GV5idkFObB274C97yF/rcyYAk+xYD7a+lYQ=; b=q5PprUS2S1xxjv8u1Nt0QMCtBnGwfuq3HSP62uIZnxwFLcZW8kLCgxdWCWqJjiEh0t WvA1BwRAnzLeQ/vNg4q8JDF0pAWTgt2G1OCge1DQoPm3sElXQvm3m0+X5AR0DEnysOSe 1EVOIrPIG2cQZOOZpGHXYWsZuU4VfEBHpoRZSP+aYl0HSxGZbX14pgma1qtTv3x0UEEv Ao19qXofWYvCSPta4+P6Im1Qjhhwnazz7HJFHm/POk9TGGv3EfHs06HlXGHxyRcxtemO sRhdfI+7b6LXM7RdVH0k5jhrYewpO7kLOeNNx/aJwceLzUEavthNvuz/6rAYfGmqFhwD tWQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=YBEnYIn1GV5idkFObB274C97yF/rcyYAk+xYD7a+lYQ=; b=a0Mf84MpXtMEM7ymz45grw9RvmmgOjXK6zFPdttXr+j/3Sm1acM0B07wqAH7FAQwdP x3SQgwxcIS/o2dMjnChWCAgq2kLkgMEwmWts4LTuS6MriG/iBphMY9m3T6r2ushH4qru tfZKFGQxbwGnovb+IswHIG2KiKMRj6SK/SjqWHPgaX2F6sXpEIaieMuls+vKwcrGYxHd 2icaJukTsRyFzjgBp6tuCsfIYAgEQIp7m2d/9zOSywipq5NcuzBzaLPvR0uQiPMvXNSd NNevULJAJdgaLya41XZYxcB5y3hpcypxIDfMi2yHiyDWQWEa4HpAUgJWrGLXwMZ6rY7U s71Q== X-Gm-Message-State: AOAM530FmW5ncmlGLqGPqFgL/36WHxycq/dtQVedVddm6AehE0oF0rFZ kN8UEXTwrh2OKYGWsgYp9AwA+hTqF1zxKg== X-Received: by 2002:a17:902:cacb:b0:158:694f:240e with SMTP id y11-20020a170902cacb00b00158694f240emr22177797pld.153.1650477993847; Wed, 20 Apr 2022 11:06:33 -0700 (PDT) Received: from stoup.. (174-21-142-130.tukw.qwest.net. [174.21.142.130]) by smtp.gmail.com with ESMTPSA id i2-20020a17090a058200b001d2fc489b8asm56681pji.25.2022.04.20.11.06.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Apr 2022 11:06:33 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PULL 13/39] exec/log: Remove log_disas and log_target_disas Date: Wed, 20 Apr 2022 11:05:52 -0700 Message-Id: <20220420180618.1183855-14-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220420180618.1183855-1-richard.henderson@linaro.org> References: <20220420180618.1183855-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::102b; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x102b.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, T_SCC_BODY_TEXT_LINE=-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: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Alex_Benn=C3=A9e?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" These functions are no longer used. Reviewed-by: Alex Bennée Signed-off-by: Richard Henderson Message-Id: <20220417183019.755276-14-richard.henderson@linaro.org> --- include/exec/log.h | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/include/exec/log.h b/include/exec/log.h index 648f4d2263..06ab9841ee 100644 --- a/include/exec/log.h +++ b/include/exec/log.h @@ -43,30 +43,6 @@ static inline void log_cpu_state_mask(int mask, CPUState *cpu, int flags) } #ifdef NEED_CPU_H -/* disas() and target_disas() to qemu_logfile: */ -static inline void log_target_disas(CPUState *cpu, target_ulong start, - target_ulong len) -{ - QemuLogFile *logfile; - rcu_read_lock(); - logfile = qatomic_rcu_read(&qemu_logfile); - if (logfile) { - target_disas(logfile->fd, cpu, start, len); - } - rcu_read_unlock(); -} - -static inline void log_disas(const void *code, unsigned long size) -{ - QemuLogFile *logfile; - rcu_read_lock(); - logfile = qatomic_rcu_read(&qemu_logfile); - if (logfile) { - disas(logfile->fd, code, size); - } - rcu_read_unlock(); -} - #if defined(CONFIG_USER_ONLY) /* page_dump() output to the log file: */ static inline void log_page_dump(const char *operation)