Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753149AbbDCFKe (ORCPT ); Fri, 3 Apr 2015 01:10:34 -0400 Received: from terminus.zytor.com ([198.137.202.10]:43093 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752459AbbDCFK2 (ORCPT ); Fri, 3 Apr 2015 01:10:28 -0400 Date: Thu, 2 Apr 2015 22:10:07 -0700 From: tip-bot for Yunlong Song Message-ID: Cc: paulus@samba.org, tglx@linutronix.de, wangnan0@huawei.com, linux-kernel@vger.kernel.org, a.p.zijlstra@chello.nl, mingo@kernel.org, yunlong.song@huawei.com, hpa@zytor.com, acme@redhat.com Reply-To: mingo@kernel.org, acme@redhat.com, hpa@zytor.com, yunlong.song@huawei.com, linux-kernel@vger.kernel.org, a.p.zijlstra@chello.nl, tglx@linutronix.de, wangnan0@huawei.com, paulus@samba.org In-Reply-To: <1427982439-27388-9-git-send-email-yunlong.song@huawei.com> References: <1427982439-27388-9-git-send-email-yunlong.song@huawei.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] perf timechart: Support using -f to override perf.data file ownership Git-Commit-ID: 44f7e432e3dc8a13f5661e8b722f53645df083d1 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 4114 Lines: 114 Commit-ID: 44f7e432e3dc8a13f5661e8b722f53645df083d1 Gitweb: http://git.kernel.org/tip/44f7e432e3dc8a13f5661e8b722f53645df083d1 Author: Yunlong Song AuthorDate: Thu, 2 Apr 2015 21:47:17 +0800 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 2 Apr 2015 13:18:50 -0300 perf timechart: Support using -f to override perf.data file ownership Enable perf timechart to use perf.data when it is not owned by current user or root. Example: # perf timechart record ls # chown Yunlong.Song:Yunlong.Song perf.data # ls -al perf.data -rw------- 1 Yunlong.Song Yunlong.Song 5471744 Apr 2 15:15 perf.data # id uid=0(root) gid=0(root) groups=0(root),64(pkcs11) Before this patch: # perf timechart File perf.data not owned by current user or root (use -f to override) # perf timechart -f Error: unknown switch `f' usage: perf timechart [] {record} -i, --input input file name -o, --output output file name -w, --width page width --highlight highlight tasks. Pass duration in ns or process name. -P, --power-only output power data only -T, --tasks-only output processes data only -p, --process process selector. Pass a pid or process name. --symfs Look for files with symbols relative to this directory -n, --proc-num min. number of tasks to print -t, --topology sort CPUs according to topology --io-skip-eagain skip EAGAIN errors --io-min-time