From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Ahern Subject: Re: What should I do if I want to get Perf samples and Read Performance Counter at the same time? Date: Fri, 30 Aug 2013 12:01:27 -0600 Message-ID: <5220DDF7.5020704@gmail.com> References: <521E57D4.7090105@gmail.com> <52209F11.5030201@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mail-pb0-f53.google.com ([209.85.160.53]:34713 "EHLO mail-pb0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753708Ab3H3SBe (ORCPT ); Fri, 30 Aug 2013 14:01:34 -0400 Received: by mail-pb0-f53.google.com with SMTP id up15so2182424pbc.12 for ; Fri, 30 Aug 2013 11:01:34 -0700 (PDT) In-Reply-To: Sender: linux-perf-users-owner@vger.kernel.org List-ID: To: Mikhail Kulemin Cc: Peipei Wang , perf group On 8/30/13 11:15 AM, Mikhail Kulemin wrote: > You should fix perf-script.py > > replace sys.path.append(os.environ['PERF_EXEC_PATH'] + > '/scripts/python/Perf-Trace-Util/lib/Perf/Trace') > with better to set/export PERF_EXEC_PATH before running the command. David > > sys.path.append(os.getcwd()+"/tools/perf/scripts/python/ > Perf-Trace-Util/lib/Perf/Trace") > > this string instruct python interpreter where to find modules to load. > > > Please check that "perf script" command works correctly (output all > sample records from perf.data file)