]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
perf script: Allow --time with --reltime
authorAndi Kleen <ak@linux.intel.com>
Wed, 2 Oct 2019 16:46:42 +0000 (09:46 -0700)
committerKhalid Elmously <khalid.elmously@canonical.com>
Fri, 14 Feb 2020 06:00:53 +0000 (01:00 -0500)
commit1fa2d7ae7a2dc1783b5ff505e8e8dcc29210e79c
treead8a01d677ceca5231383d689b6a774fae9d3c6b
parenteca03eae2e21707bdad58b248b713c6b1a00a554
perf script: Allow --time with --reltime

BugLink: https://bugs.launchpad.net/bugs/1862429
commit 3714437d3fcc7956cabcb0077f2a506b61160a56 upstream.

The original --reltime patch forbid --time with --reltime.

But it turns out --time doesn't really care about --reltime, because the
relative time is only used at final output, while the time filtering
always works earlier on absolute time.

So just remove the check and allow combining the two options.

Fixes: 90b10f47c0ee ("perf script: Support relative time")
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Link: http://lore.kernel.org/lkml/20191002164642.1719-1-andi@firstfloor.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
tools/perf/builtin-script.c