答复: oprofile-list Digest, Vol 108, Issue 1

"蒋雄伟(蒋冲)" <[email protected]>
Newsgroups gmane.linux.oprofile,gmane.comp.emulators.xen.devel
Message-ID <[email protected]>
In /xen/arch/x86/oprofile/op_counter.h  there is a definition

#define OP_MAX_COUNTER 8

As far as I know , the number of counter equals the number of events.  As
all we know that the number of events is more than 8. 
So my question is : Is it the maximum concurrent counter or the total
counter ? 

-----邮件原件-----
发件人: [email protected]
[mailto:[email protected]] 
发送时间: 2015年5月5日 10:50
收件人: [email protected]
主题: oprofile-list Digest, Vol 108, Issue 1

Send oprofile-list mailing list submissions to
	[email protected]

To subscribe or unsubscribe via the World Wide Web, visit
	https://lists.sourceforge.net/lists/listinfo/oprofile-list
or, via email, send a message with subject or body 'help' to
	[email protected]

You can reach the person managing the list at
	[email protected]

When replying, please edit your Subject line so it is more specific than
"Re: Contents of oprofile-list digest..."


Today's Topics:

   1. Re: Does oprofile suffer from aliasing? (William Cohen)
   2. Perf event setup failed (Mike Accola)
   3. Re: Perf event setup failed (Michael Petlan)
   4. Error cross compiling oprofile (Paul Fine)


----------------------------------------------------------------------

Message: 1
Date: Thu, 30 Apr 2015 14:18:19 -0400
From: William Cohen <[email protected]>
Subject: Re: Does oprofile suffer from aliasing?
To: Grant Edwards <[email protected]>,
	[email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=windows-1252

On 04/30/2015 12:43 PM, Grant Edwards wrote:
> On 2015-04-30, William Cohen <[email protected]> wrote:
>>
>>> AFAICT the ARM926 core doesn't have a PMU at all -- I can find no 
>>> mention of one in either ARM docs for the ARM926 or Atmel docs for 
>>> the
>>> at91 parts.
> [...]
>>> Is there such a thing as software-only PMU support?
> 
>> The perf command included with newer kernels (since 2.6.31) allow 
>> recording both performance monitoring hardware events and software 
>> events.
> 
> So that would be a sort of software-only PMU support (from the user's 
> POV)?

Hi Grant,

Yes, in theory perf should provide software-only events if no pmu is
available. I have seen that happen on trimslice when the device tree didn't
describe performance monitoring hardware.  However, using perf depends on
having a newer kernel that works on the particular device.  In the past I
have encountered arm devices that only worked with particular kernels with
various patches (for example genesi efika smartbook).  I hope that you have
a reasonable new kernel that works on the arm926.

> 
>> Assuming that perf is working you should be able to do following to 
>> see what events it supports:
>>
>> # perf list
> [...]
>> # perf record --freq 1000 -e cpu-clock -a sleep 10
> [...]
>> # perf report
> 
> OK, thanks.  It's probably time to try to get a newer kernel running. 
> IIRC, Atmel provides kernel config examples for a few different 
> versions up to 3.6 for my platform.
> 
> So, let's say I have a hardware interrupt I can hook stuff to (I do), 
> and I can generate "random enough" edges on the pin in question with a 
> predictable frequency distribution (that might take a bit of 
> soldering, but shouldn't be too difficult).
> 
> Can I stick something in the ISR for that interrupt that will cause a 
> "sample"?
> 

You could do something like that with the "perf probe" described on:

https://lwn.net/Articles/355456/
http://www.brendangregg.com/perf.html

It looks like you would need to have a script to do process to group things
by the argument.

-Will




------------------------------

Message: 2
Date: Mon, 4 May 2015 09:56:50 -0500
From: Mike Accola <[email protected]>
Subject: Perf event setup failed
To: [email protected]
Message-ID:
	
<OFE1EF3D3A.4EEEBF45-ON86257E3B.0051E486-86257E3B.00521D5C@us.ibm.com>
Content-Type: text/plain; charset="us-ascii"

I was trying to use operf using the
br_misp_retired:400009:all_branches_pebs event on a machine with Haswell
processor.

I can run count with this event to get counters just fine.

However, when I try to use it with operf, I get this error:

operf -c -e br_misp_retired:400009:all_branches_pebs -d outdir -s
perf_event_open failed with Operation not supported Caught runtime_error:
Internal Error.  Perf event setup failed.
Error running profiler

Any ideas why?

I am using a version of operf 1.0.0 that we compile ourselves.

Thanks.



Mike Accola
IBM InfoSphere Streams
IBM Analytics

Phone: 720-349-3409
E-mail: [email protected]



 
 
-------------- next part --------------
An HTML attachment was scrubbed...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 7301 bytes
Desc: not available

------------------------------

Message: 3
Date: Mon, 04 May 2015 18:46:06 +0200
From: Michael Petlan <[email protected]>
Subject: Re: Perf event setup failed
To: Mike Accola <[email protected]>
Cc: [email protected]
Message-ID: <1430757966.5694.16.camel@Rudolf-RHEL-7>
Content-Type: text/plain; charset="UTF-8"

Hi Mike,

could you try the following:

perf stat -e r04c5:pp ./something

and then

perf record -e r04c5:pp ./something
perf report


Could you provide some additional info, like kernel version, which
distro is it and cpuinfo?

Thanks.

Regards,
Michael


On Mon, 2015-05-04 at 09:56 -0500, Mike Accola wrote:
> I was trying to use operf using the
> br_misp_retired:400009:all_branches_pebs event on a machine with
> Haswell processor. 
> 
> I can run count with this event to get counters just fine. 
> 
> However, when I try to use it with operf, I get this error: 
> 
> operf -c -e br_misp_retired:400009:all_branches_pebs -d outdir -s 
> perf_event_open failed with Operation not supported 
> Caught runtime_error: Internal Error.  Perf event setup failed. 
> Error running profiler 
> 
> Any ideas why? 
> 
> I am using a version of operf 1.0.0 that we compile ourselves. 
> 
> Thanks.
> 
> 
> ___________________________________
> Mike Accola 
> IBM InfoSphere Streams 
> IBM Analytics
> 
> Phone: 720-349-3409 
> E-mail: [email protected] 
> 
> 
> 
> 
> 
>   
> 
>   
> 
>
----------------------------------------------------------------------------
--
> One dashboard for servers and applications across Physical-Virtual-Cloud 
> Widest out-of-the-box monitoring support with 50+ applications
> Performance metrics, stats and reports that give you Actionable Insights
> Deep dive visibility with transaction tracing using APM Insight.
> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
> _______________________________________________
> oprofile-list mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/oprofile-list





------------------------------

Message: 4
Date: Mon, 4 May 2015 22:49:36 -0400
From: Paul Fine <[email protected]>
Subject: Error cross compiling oprofile
To: [email protected]
Message-ID:
	<CAC7FuqmEaS5H39HCjGhrBqo=Q_feAwAzThpMWqnxDM+KNnudgw@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Hi,

I am trying to cross compile oprofile for the ARM on the TI C6A816x
running linux-2.6.37.  The "make" step gave me this error:

Making all in pe_profiling
make[2]: Entering directory
`/home/pfine/oprofile/oprofile-1.0.0/pe_profiling'
arm-none-linux-gnueabi-g++ -DHAVE_CONFIG_H -I. -I..  -I ../libutil -I
../libop -I ../libutil++ -I ../libperf_events -I ../libpe_utils
-I/home/pfine/oprofile/linux_hdr_install/include   -W -Wall -fno-common
-ftemplate-depth-50 -g -O2 -MT operf.o -MD -MP -MF .deps/operf.Tpo -c -o
operf.o operf.cpp
operf.cpp: In function 'int start_profiling()':
operf.cpp:330: error: 'pipe2' was not declared in this scope
make[2]: *** [operf.o] Error 1


I can't find the pipe2() function call in the kernel headers.  Any idea
what I am missing?

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

----------------------------------------------------------------------------
--
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y

------------------------------

_______________________________________________
oprofile-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oprofile-list


End of oprofile-list Digest, Vol 108, Issue 1
*********************************************


------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
oprofile-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oprofile-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.