Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp24336704rwd; Sat, 1 Jul 2023 18:09:12 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ759aE/MyJFri60HyD6TgAaCQ9qMBw6Ff5/kyF4zGtkH9c6jmayaUolMS3MiC1y2kVi8oat X-Received: by 2002:a05:6a20:12cf:b0:126:df8b:e812 with SMTP id v15-20020a056a2012cf00b00126df8be812mr8681774pzg.25.1688260152413; Sat, 01 Jul 2023 18:09:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688260152; cv=none; d=google.com; s=arc-20160816; b=uwn6QCYGfhAzMZvaPeNbJGLpd627UZkwGNN6e3fVVyUqo2je41Y53v11dnyMgWDlRg Drw9YpYOyRsKXXyt3aakPb3wV7d9ZX4g9Ga+YYRNhwmzveXWEFq9PmvaM9rRw43dsoj3 OWqTq62PZh+ELtmYMZspaSuE0kWch/YPNTZmm3WT9DAon/aUTBuCVwlyItbDINc6Kb0w jS2d38T9ODaUfNiP443rNvRvIYXnHsIc+NDf4ro6lqwMS0gIk28Vek0ONfewHLVJuqya S3x7gkBVgH/ETWPU2DX+DI+Mv9/uI6J4bdBP+r5uQdyqnq2F7kl726OFDkSliFsnwOtM xVdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=ELMjRSxqJ6H5e0NhpRaM3xpsLlkA3k75BUUbq7Vq6aM=; fh=qg0XpHrrfjSy6nePy3ZLIayRkwEhRnO8Y6NeBhcC42U=; b=yeBLoUMb9HNZtefnuxc0qgSz1NhkwmOvVM/HGpksuo0VAKa3NaN/v9td1tSXrZAedI HWDUkatqvBE6AXIq2cnVmsmVbDQIVMr2ErfkT0A9xmk3Z6yPApH5AUloqO/t/aLmy6Pa fZdeq+wTGkiqDXzQerXhprYAZOqP2K4kphxh89egs38+/Tcp1kjhopK8GSgWmKNP09J5 DAC6+M7v3GsuxjiWf8aWp3Jv5g/sQ90RTiVv8UEeruExGLOQUgXpZUEOoeLNo7aY9hql /uJe3RAYVtQkBPWRIJA/H4MHRnLLwU15r+wAwIeAzfBWXhOwS5XPM93xq08NsAIvVtjM t7rg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c194-20020a621ccb000000b0062565210347si3823941pfc.275.2023.07.01.18.09.00; Sat, 01 Jul 2023 18:09:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229572AbjGBBCt convert rfc822-to-8bit (ORCPT + 99 others); Sat, 1 Jul 2023 21:02:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229618AbjGBBCs (ORCPT ); Sat, 1 Jul 2023 21:02:48 -0400 Received: from mail-yb1-f176.google.com (mail-yb1-f176.google.com [209.85.219.176]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F9C1172B; Sat, 1 Jul 2023 18:02:47 -0700 (PDT) Received: by mail-yb1-f176.google.com with SMTP id 3f1490d57ef6-bd0a359ca35so2967026276.3; Sat, 01 Jul 2023 18:02:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688259767; x=1690851767; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=kANjNnclVCsfgygTcdj+03tBXimKIyR8Ds3CCIEhaFY=; b=F5IpATF7vFhMvQ6mBpAlHc7JP64GtwDZWBTCNMgq23iU3lWE4GudbOHgBK6RRgvTAb rVKJFzxlcUAYijANIadqdAv8OteX39xPOs1ZWm7eaDG/QgGQa6yoJx0hA0+Rd/kpEHfr PFv6TBA8+EKTVFqY0T2Q7P5W8aHTo9ku1fvTCXupYYiHkXSwCFsDidyzSQAX298hKCdd OjXuWLtjy87hfdNhrKCNlgeakQbltZbBSyOBskkbAJNMAUwx6W7/vNsSA0aIml7xvgi6 L6LRpLiL/zFVQu8LYyQuucW6mAUVtB/bGEC5wZd1WbmqQmAl10gGlE6AAaZLTvkd8t0V F81w== X-Gm-Message-State: ABy/qLYT0mBDrIuIPBaxgPerAt7foCQTZOcfM4vMtz1gW6uPOJtRLH44 RTtCbHgfWCNV2m1QakHrcEY3ObhP0FrsV5UxdHA= X-Received: by 2002:a25:2144:0:b0:bff:7eb7:c275 with SMTP id h65-20020a252144000000b00bff7eb7c275mr5050789ybh.52.1688259766660; Sat, 01 Jul 2023 18:02:46 -0700 (PDT) MIME-Version: 1.0 References: <20230628200141.2739587-1-namhyung@kernel.org> In-Reply-To: <20230628200141.2739587-1-namhyung@kernel.org> From: Namhyung Kim Date: Sat, 1 Jul 2023 18:02:35 -0700 Message-ID: Subject: Re: [PATCHSET 0/4] perf lock contention: Add CSV style output support (v2) To: Arnaldo Carvalho de Melo , Jiri Olsa Cc: Ian Rogers , Adrian Hunter , Peter Zijlstra , Ingo Molnar , LKML , linux-perf-users@vger.kernel.org, Song Liu , Hao Luo Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 28, 2023 at 1:01 PM Namhyung Kim wrote: > > Hello, > > This is v2 of perf lock contention CSV output change. > I've added --output option and a test case according to Ian's feedback. > > Sometimes we want to process the output by external programs. Let's add > the -x option to specify the field separator like perf stat. > > $ sudo ./perf lock con -ab -x, sleep 1 > # output: contended, total wait, max wait, avg wait, type, caller > 19, 194232, 21415, 10222, spinlock, process_one_work+0x1f0 > 15, 162748, 23843, 10849, rwsem:R, do_user_addr_fault+0x40e > 4, 86740, 23415, 21685, rwlock:R, ep_poll_callback+0x2d > 1, 84281, 84281, 84281, mutex, iwl_mvm_async_handlers_wk+0x135 > 8, 67608, 27404, 8451, spinlock, __queue_work+0x174 > 3, 58616, 31125, 19538, rwsem:W, do_mprotect_pkey+0xff > 3, 52953, 21172, 17651, rwlock:W, do_epoll_wait+0x248 > 2, 30324, 19704, 15162, rwsem:R, do_madvise+0x3ad > 1, 24619, 24619, 24619, spinlock, rcu_core+0xd4 > > The first line is a comment that shows the output format. Each line is > separated by the given string ("," in this case). The time is printed > in nsec without the unit so that it can be parsed easily. > > The code is available at 'perf/lock-con-csv-v2' branch in > > git://git.kernel.org/pub/scm/linux/kernel/git/namhyung/linux-perf.git > > Thanks, > Namhyung > > > Namhyung Kim (4): > perf lock: Remove stale comments > perf lock contention: Add -x option for CSV style output > perf lock contention: Add --output option > perf test: Test perf lock contention CSV output Applied to perf-tools-next, thanks!