Re: [PATCH] s390: Add support for z13
Andreas Arnez <[email protected]>
| Newsgroups | gmane.linux.oprofile |
|---|---|
| Organization | IBM Deutschland Research & Development GmbH |
| Message-ID | <[email protected]> |
On Wed, Oct 12 2016, Michael Petlan wrote: > Could you please try it with setting /proc/sys/kernel/kptr_restrict to '0' > and /proc/sys/kernel/perf_event_paranoid to '-1', being logged as root user? Sure. With these settings I've tried the commands below on an IBM z13 machine. > `ophelp -r` > --> should detect the machine, print "IBM z13" $ ophelp -r IBM z13 > `ophelp -d` > --> should print default event "CPU_CYCLES" $ ophelp -d CPU_CYCLES:4127518:0:1:1 > `ocount ls` > --> should return some non-zero value for event CPU_CYCLES $ ocount ls buffers.dia ocount.1 operf.1 opimport.1.in oprofile.html buffers.png ocount.1.in operf.1.in op-jit-devel.html oprofile.xml CodingStyle opannotate.1 opgprof.1 op-jit-devel.xml srcdoc internals.html opannotate.1.in opgprof.1.in opreport.1 xsl internals.xml oparchive.1 ophelp.1 opreport.1.in Makefile oparchive.1.in ophelp.1.in opreport.xsd Makefile.am op-check-perfevents.1 ophelp.xsd oprofile.1 Makefile.in op-check-perfevents.1.in opimport.1 oprofile.1.in Events were actively counted for 638199 nanoseconds. Event counts (actual) for /usr/bin/ls: Event Count % time counted CPU_CYCLES 2,663,679 100.00 > > `ocount -e INSTRUCTIONS ls` > --> should use INSTRUCTIONS and return a non-zero value too $ ocount -e INSTRUCTIONS ls buffers.dia ocount.1 operf.1 opimport.1.in oprofile.html buffers.png ocount.1.in operf.1.in op-jit-devel.html oprofile.xml CodingStyle opannotate.1 opgprof.1 op-jit-devel.xml srcdoc internals.html opannotate.1.in opgprof.1.in opreport.1 xsl internals.xml oparchive.1 ophelp.1 opreport.1.in Makefile oparchive.1.in ophelp.1.in opreport.xsd Makefile.am op-check-perfevents.1 ophelp.xsd oprofile.1 Makefile.in op-check-perfevents.1.in opimport.1 oprofile.1.in Events were actively counted for 659414 nanoseconds. Event counts (actual) for /usr/bin/ls: Event Count % time counted INSTRUCTIONS 1,436,364 100.00 > Please try out also the --system-wide mode as root. # ocount --system-wide ocount: Press Ctl-c or 'kill -SIGINT 61412' to stop counting ^C Events were actively counted for 1.5 seconds. Event counts (actual) for the whole system: Event Count % time counted CPU_CYCLES 15,981,710 100.00 > If the above commands work, at least the basic z13 support can be verified. Looks OK to me. -- Andreas ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot