From patchwork Wed May 17 14:52:53 2017 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: 99996 Delivered-To: patch@linaro.org Received: by 10.182.142.97 with SMTP id rv1csp254267obb; Wed, 17 May 2017 07:54:16 -0700 (PDT) X-Received: by 10.200.53.87 with SMTP id z23mr3228518qtb.249.1495032856378; Wed, 17 May 2017 07:54:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1495032856; cv=none; d=google.com; s=arc-20160816; b=tM54sQF+43MrMgNyh9v3sZqjQx6+hWgx4mCHqRDQfH7gX4KFDo9562IWs5owiluNnk HCINiWE+M4g/QV7OjT0yGA8WUIVkA9p28KCIvDpQ88HYlXuqSE8kFiOueGGVqudyc5dV kN3LrKUUI5cJA2/ouu/CYc8J0ullVKk8Ovop6kZI1GM/Sca9qZs/PsXV/XYSuKDJlQDL EDV4X6oLSYIelMMev52jcHY3UbnxaVE8X77VjFIijIriCnnNBPWebAdaAi/j2QthJad9 QQE1hM1Gcmv8poz0zTAP96Jej72oH7KZApfnKjQ6QT8mqwPqeyI/SigkoHiRPYRox29+ IExg== 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:subject :content-transfer-encoding:mime-version:message-id:date:to:from :dkim-signature:arc-authentication-results; bh=ro1WXw0SmYWzhd37Beg435/6lNZ9ZxdR95RlRXhVnjk=; b=0sASYwcSmo9Erem2dJwSeZyRK9haTnoq40GdfTRirp8fHk039mVAIf5zzscLftt0n4 MVqIcOLctkY3QsdkIspzW0O5QHdUiRtY+uhjDb/rsvfPCNpFVS6hhvm9EOdfSqGUAqck YS5UKbulG3JCUzIKo33m0Xkqrk1B0+d6ADa3VfhVM9AhC44LqANX8T7x7QSrhGS1I54h mF6IHYKfsVGRx6kgFgNIbnvp1ZvqlkqwqubsLcSCkI3/kqErCoPVKdbbU/SmSRCPCcET aQs5Kzh2HTnBRvZ429Zy/tmym2g7JAWuzyNf+j/nFyZCnJmbvR9NyPbQ7IBxoay6ktnB qoIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id v23si2346453qka.287.2017.05.17.07.54.16 for (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 17 May 2017 07:54:16 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:49378 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dB0L9-0002w3-TI for patch@linaro.org; Wed, 17 May 2017 10:54:15 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50687) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dB0J7-0001fu-Qf for qemu-devel@nongnu.org; Wed, 17 May 2017 10:52:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dB0J3-0004dg-Op for qemu-devel@nongnu.org; Wed, 17 May 2017 10:52:09 -0400 Received: from mail-wm0-x233.google.com ([2a00:1450:400c:c09::233]:38537) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dB0J3-0004dD-ID for qemu-devel@nongnu.org; Wed, 17 May 2017 10:52:05 -0400 Received: by mail-wm0-x233.google.com with SMTP id v15so19205705wmv.1 for ; Wed, 17 May 2017 07:52:05 -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:mime-version :content-transfer-encoding; bh=ro1WXw0SmYWzhd37Beg435/6lNZ9ZxdR95RlRXhVnjk=; b=kVu/OF4j9X/t5jQSn6Rs9Su1ocUGwKLP8rhR2Du27sI/oSeyJ/RUCLXMjXqD5tcGYD DSWo9dxNzhmWJrvHin2fylJJPGeIhMDa6FqVCGvGIaWjYwLYp+uMes0W3us+JCVGiu67 RIdV+/miBMyMGxv3tn6/VBPppQF7CntVNx+bo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ro1WXw0SmYWzhd37Beg435/6lNZ9ZxdR95RlRXhVnjk=; b=by7fHpGd+TUzGmPM2q2hxt6jFEIukdwyhHoh5+GAHEcIYSsBrUowlh1yCMn9p0AELQ FWyaBRA7Yh2Eef2sWeVeJq5RsMWaqg5B38gE+XqkvQSY2aH/Jc9jU47mRtje/EmMibsC tjNGdUWHDNTJMb+FkbUuwJMvXnUq8/YiwzoInMSocIqYAQ+0UIeYOvRWdj8BiKd3L/FT iIpLL2i3OtabPRvTK7S2LJTw124gNfs30RV2faO6YD/jHjKUJElhYHgu+yMo58UVIcRA jTOCZ59SnTcre01SzUj+U3eNwTiu/L1skyh9il/WOAlvBvKSrEV3aUW95Urb9Ab6uufs TYbg== X-Gm-Message-State: AODbwcAsXRPnpI1TNFbFQHrgtMP9Hc0CJolDej/7u0pprmTS4ILHEUmR c5/CQd+7QUZVnzrj X-Received: by 10.28.60.197 with SMTP id j188mr3001350wma.30.1495032724227; Wed, 17 May 2017 07:52:04 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id y3sm1785039wrd.23.2017.05.17.07.52.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 17 May 2017 07:52:03 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 7F55E3E0202; Wed, 17 May 2017 15:52:59 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: pbonzini@redhat.com, stefanha@redhat.com Date: Wed, 17 May 2017 15:52:53 +0100 Message-Id: <20170517145259.28979-1-alex.bennee@linaro.org> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::233 Subject: [Qemu-devel] [PATCH v2 0/6] gdb updates and cputlb traces X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: cota@braap.org, =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Hi, Here is an update to the cputlb tracing and also a number of gdbstub updates. The main changes to the cputlb tracing are making each flush an explicit event instead of just dumping counts. This means you can so analysis on the delay from queuing work to scheduling at the cost of losing the raw count in the MMI interface. Alex Bennée (6): scripts/replay-dump.py: replay log dumper scripts/qemu-gdb/timers.py: new helper to dump timer state scripts/qemu-gdb/tcg: new helper to dump tcg state cputlb: remove tlb_flush_count cputlb: add trace events new script/analyse-tlb-flushes-simpletrace.py cputlb.c | 38 +++- include/exec/cputlb.h | 1 - scripts/analyse-tlb-flushes-simpletrace.py | 144 +++++++++++++++ scripts/qemu-gdb.py | 4 +- scripts/qemugdb/tcg.py | 46 +++++ scripts/qemugdb/timers.py | 54 ++++++ scripts/replay-dump.py | 272 +++++++++++++++++++++++++++++ trace-events | 7 + translate-all.c | 1 - 9 files changed, 559 insertions(+), 8 deletions(-) create mode 100755 scripts/analyse-tlb-flushes-simpletrace.py create mode 100644 scripts/qemugdb/tcg.py create mode 100644 scripts/qemugdb/timers.py create mode 100755 scripts/replay-dump.py -- 2.11.0 Reviewed-by: Stefan Hajnoczi