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=-3.3 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=no 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 E49DEC433FF for ; Thu, 15 Aug 2019 02:59:14 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (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 AEC202084F for ; Thu, 15 Aug 2019 02:59:14 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="d6p42qd5" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AEC202084F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:37974 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hy5yr-0000Om-Pq for qemu-devel@archiver.kernel.org; Wed, 14 Aug 2019 22:59:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50838) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hy5e2-0006bh-Oc for qemu-devel@nongnu.org; Wed, 14 Aug 2019 22:37:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hy5e1-0006V0-Nx for qemu-devel@nongnu.org; Wed, 14 Aug 2019 22:37:42 -0400 Received: from mail-qk1-x744.google.com ([2607:f8b0:4864:20::744]:40351) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hy5e1-0006UG-KM for qemu-devel@nongnu.org; Wed, 14 Aug 2019 22:37:41 -0400 Received: by mail-qk1-x744.google.com with SMTP id s145so782899qke.7 for ; Wed, 14 Aug 2019 19:37:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=3km3J1uOp8CgXZQpwwzjQw3p/KWs/vYz99LUiXT2Iv0=; b=d6p42qd56lqRVy6uNn8jMJxOTrWoDiHSnp2dl+E+tWAELUVakr6tBOFYbF540SNTmg VFBN6abJa+ehaA+OgOxbqJ+ibJquH2rugBew98KDekI54AdGQRh4oGvkIyhK4rWNBSw1 grXj0QooeVJebsqLoPAM798q8P7QieHor5ejNTQUYCsnEYF/YT3kKoDJjeq6deTsnUKh biWQ7UYYIbLdSfRSn6rKidZj34IEXH7eZrhMnADr1Ot+jaKcsw3KAr31VCANnZoeCO3s K1jRTlpK8uwnDHGxj6hO95JL9Pd6oJKBnTcZKq67kxvPDBbbTj3GTm/EQrnyEqHeVM7E 8Jug== 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=3km3J1uOp8CgXZQpwwzjQw3p/KWs/vYz99LUiXT2Iv0=; b=m0u7APy2gr1q66ZGSG3vG89/iBLry0yesBvJFNIOTOUr3jw7F+HhoxrDR+KyMhAySj t3Qm0v+RtwZDMgEWVUhVrNoM+JookUUJoKVJevDnnhsYl33CRc5dVJPMnIQZu1BSY/pO lNWd53ewdcMOK2r6qLbVlIgQ64AXRjSNYEQstI0isTj/tus8ZCP41GNbNPUsTueGPp8r opG4j32l+DIWB9fNIWAKb+/z8Tm1TfeHIAiCPrAJ4HKI34UQzf9XQpKMgNhkvUA838zZ NKhw5VKV2b6YBS0U1yqi42gVMpZZulBsOyT3lebCYRK1SSgvIyjKN+njQonSLJXvLvSx 2yuw== X-Gm-Message-State: APjAAAUjaRPOOsrciJspeDAbjgIS805jqac6Y0z6FdURmMbKrsBKEPiM vX9+o0LgxwuvqI8JsvjysqEwFZP6FYo= X-Google-Smtp-Source: APXvYqyVTbcytdiTQhJaMArayzWRWIUDFu9NP7njfGfLr/QVTa1cljCz07Cmi+he46UVzFHIO+LMsA== X-Received: by 2002:a37:9a4a:: with SMTP id c71mr2256351qke.258.1565836660730; Wed, 14 Aug 2019 19:37:40 -0700 (PDT) Received: from localhost.localdomain ([2804:14c:482:121::1]) by smtp.googlemail.com with ESMTPSA id t24sm764052qto.69.2019.08.14.19.37.39 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 14 Aug 2019 19:37:40 -0700 (PDT) From: vandersonmr To: qemu-devel@nongnu.org Date: Wed, 14 Aug 2019 23:37:23 -0300 Message-Id: <20190815023725.2659-1-vandersonmr2@gmail.com> X-Mailer: git-send-email 2.22.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::744 Subject: [Qemu-devel] [PATCH v1 0/2] Integrating qemu to Linux Perf X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: vandersonmr Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" This patch is part of Google Summer of Code (GSoC) 2019. More about the project can be found in: https://wiki.qemu.org/Internships/ProjectIdeas/TCGCodeQuality This adds --perf command-line option to dump Linux Perf jitdump files. These files are used to enhant Perf report and to be able to analyze and dump JITed code with perf. Example of use: perf record -k 1 qemu-x86_64 -perf ./a.out perf inject -j -i perf.data -o perf.data.jitted perf report -i perf.data.jitted vandersonmr (2): accel/tcg: adding integration with linux perf tb-stats: adding TBStatistics info into perf dump accel/tcg/Makefile.objs | 1 + accel/tcg/perf/Makefile.objs | 1 + accel/tcg/perf/jitdump.c | 193 +++++++++++++++++++++++++++++++++++ accel/tcg/perf/jitdump.h | 19 ++++ accel/tcg/translate-all.c | 12 +++ include/qemu-common.h | 3 + linux-user/main.c | 7 ++ qemu-options.hx | 12 +++ 8 files changed, 248 insertions(+) create mode 100644 accel/tcg/perf/Makefile.objs create mode 100644 accel/tcg/perf/jitdump.c create mode 100644 accel/tcg/perf/jitdump.h -- 2.22.0