Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp4710858img; Tue, 26 Mar 2019 15:19:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqwAfwl+1JVdgj3Kn0NXFhAPZYjDUiigEBvdIAo4VQQqVetDa+wi5Gp5k/uhOxWL0MGSjKsj X-Received: by 2002:a17:902:4101:: with SMTP id e1mr34373814pld.25.1553638770400; Tue, 26 Mar 2019 15:19:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553638770; cv=none; d=google.com; s=arc-20160816; b=undeJJjtJ5VZC+oXb61rCCLU2IXx7ZipkE+cBVD/9dPn9+mKGXCcDlPneMO07/96Gz xV+AD4r9CwJ5rY9ENmmAfe8UYiuRe/C4lPKW6wt7fMEfNtPZjvsLVcVxfpIzu0muur1L gk6CB//dAEaEEdq1tGlvesvwoV5v3DphRGUzrzNgtfWkQIZiElCRTCdGRR4WnGqG8tg/ DGRhuLwLLdPTqogNTSK5ZGTcq6YF8PtUbi9HER/sKPDh2jkIX+1XcNtXZDzieXLWHfSL DsgCsemQITEp3akKDx97C9jxJgSSpH+YlZ9G8lV0om9eVwnQ26HbgjB3tNaBkiH9JFxg T0/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=n/qJkzSxw7qpLd6RRveKxgK6FL9Ny63mYdqQK4G35BM=; b=FDSICRYPKUBPcaLj7JVIN5pP76koETY5eUIQ3Ge5zQdWPp6Wd8vs0IuKyOLG13yfIi vCbL/Kkj9VvlL+wc8GPeqywm094+XgxKyR8GLgZKzpn4AlEVluiAuoP8xPPD+Sq9whRy G4BIJHFUx/BF8cAoKzrYidfBkMifMbzM38TKM7DFSloulvJvyGSJ71FLOCzxe5Kfb/cE zmsCUUAU2NbsCq/hjfB4avM4QkbpUw0JXmm1s5qR7eyK8teiV0dxVp2vs+dlkLHGe8zU GVHhpxK6r9wzDR2QTuxl/PoR1K//xkuCFHq1/qDd5ROhkX3oWTKwp5AWoX2zNysbsvhA hRaw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bc12si17012209plb.13.2019.03.26.15.19.15; Tue, 26 Mar 2019 15:19:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731880AbfCZWSa (ORCPT + 99 others); Tue, 26 Mar 2019 18:18:30 -0400 Received: from mga09.intel.com ([134.134.136.24]:49993 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726782AbfCZWS3 (ORCPT ); Tue, 26 Mar 2019 18:18:29 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Mar 2019 15:18:28 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,274,1549958400"; d="scan'208";a="310658176" Received: from tassilo.jf.intel.com (HELO tassilo.localdomain) ([10.7.201.137]) by orsmga005.jf.intel.com with ESMTP; 26 Mar 2019 15:18:28 -0700 Received: by tassilo.localdomain (Postfix, from userid 1000) id A70EF301BD4; Tue, 26 Mar 2019 15:18:28 -0700 (PDT) From: Andi Kleen To: acme@kernel.org Cc: jolsa@kernel.org, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org Subject: perf: Add duration_time to perf stat Date: Tue, 26 Mar 2019 15:18:19 -0700 Message-Id: <20190326221823.11518-1-andi@firstfloor.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Currently it's not possible to get the wall clock time of a measurement in CSV mode output, it's only in the non CSV perf stat output. Often this is needed to normalize event counts to time. Add a new duration_time event that can be specified and reports the wall clock time in ns.