All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] perf/python: Add ppc64le to audit uname list
@ 2017-08-02 14:42 Naveen N. Rao
  2017-08-02 15:06 ` Arnaldo Carvalho de Melo
  0 siblings, 1 reply; 4+ messages in thread
From: Naveen N. Rao @ 2017-08-02 14:42 UTC (permalink / raw)
  To: Arnaldo Carvalho de Melo; +Cc: linuxppc-dev

Before patch:
  $ uname -m
  ppc64le
  $ ./perf script -s ./scripts/python/syscall-counts.py
  Install the audit-libs-python package to get syscall names.
  For example:
    # apt-get install python-audit (Ubuntu)
    # yum install audit-libs-python (Fedora)
    etc.

  Press control+C to stop and show the summary
  ^CWarning:
  4 out of order events recorded.

  syscall events:

  event                                          count
  ----------------------------------------  -----------
  4                                             504638
  54                                              1206
  221                                               42
  55                                                21
  3                                                 12
  167                                               10
  11                                                 8
  6                                                  7
  125                                                6
  5                                                  6
  108                                                5
  162                                                4
  90                                                 4
  45                                                 3
  33                                                 3
  311                                                1
  246                                                1
  238                                                1
  93                                                 1
  91                                                 1

After patch:
  ./perf script -s ./scripts/python/syscall-counts.py
  Press control+C to stop and show the summary
  ^CWarning:
  5 out of order events recorded.

  syscall events:

  event                                          count
  ----------------------------------------  -----------
  write                                         643411
  ioctl                                           1206
  futex                                             54
  fcntl                                             27
  poll                                              14
  read                                              12
  execve                                             8
  close                                              7
  mprotect                                           6
  open                                               6
  nanosleep                                          5
  fstat                                              5
  mmap                                               4
  inotify_add_watch                                  3
  brk                                                3
  access                                             3
  timerfd_settime                                    1
  clock_gettime                                      1
  epoll_wait                                         1
  ftruncate                                          1
  munmap                                             1

Signed-off-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
---
 tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py b/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py
index 1d95009592eb..f6c84966e4f8 100644
--- a/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py
+++ b/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py
@@ -57,6 +57,7 @@ try:
 		'ia64'	: audit.MACH_IA64,
 		'ppc'	: audit.MACH_PPC,
 		'ppc64'	: audit.MACH_PPC64,
+		'ppc64le' : audit.MACH_PPC64LE,
 		's390'	: audit.MACH_S390,
 		's390x'	: audit.MACH_S390X,
 		'i386'	: audit.MACH_X86,
-- 
2.13.3

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] perf/python: Add ppc64le to audit uname list
  2017-08-02 14:42 [PATCH] perf/python: Add ppc64le to audit uname list Naveen N. Rao
@ 2017-08-02 15:06 ` Arnaldo Carvalho de Melo
  2017-08-02 20:40   ` Paul Clarke
  0 siblings, 1 reply; 4+ messages in thread
From: Arnaldo Carvalho de Melo @ 2017-08-02 15:06 UTC (permalink / raw)
  To: Naveen N. Rao; +Cc: linuxppc-dev

Em Wed, Aug 02, 2017 at 08:12:16PM +0530, Naveen N. Rao escreveu:
> Before patch:
>   $ uname -m
>   ppc64le

Thanks, applied,

- Arnaldo

>   $ ./perf script -s ./scripts/python/syscall-counts.py
>   Install the audit-libs-python package to get syscall names.
>   For example:
>     # apt-get install python-audit (Ubuntu)
>     # yum install audit-libs-python (Fedora)
>     etc.
> 
>   Press control+C to stop and show the summary
>   ^CWarning:
>   4 out of order events recorded.
> 
>   syscall events:
> 
>   event                                          count
>   ----------------------------------------  -----------
>   4                                             504638
>   54                                              1206
>   221                                               42
>   55                                                21
>   3                                                 12
>   167                                               10
>   11                                                 8
>   6                                                  7
>   125                                                6
>   5                                                  6
>   108                                                5
>   162                                                4
>   90                                                 4
>   45                                                 3
>   33                                                 3
>   311                                                1
>   246                                                1
>   238                                                1
>   93                                                 1
>   91                                                 1
> 
> After patch:
>   ./perf script -s ./scripts/python/syscall-counts.py
>   Press control+C to stop and show the summary
>   ^CWarning:
>   5 out of order events recorded.
> 
>   syscall events:
> 
>   event                                          count
>   ----------------------------------------  -----------
>   write                                         643411
>   ioctl                                           1206
>   futex                                             54
>   fcntl                                             27
>   poll                                              14
>   read                                              12
>   execve                                             8
>   close                                              7
>   mprotect                                           6
>   open                                               6
>   nanosleep                                          5
>   fstat                                              5
>   mmap                                               4
>   inotify_add_watch                                  3
>   brk                                                3
>   access                                             3
>   timerfd_settime                                    1
>   clock_gettime                                      1
>   epoll_wait                                         1
>   ftruncate                                          1
>   munmap                                             1
> 
> Signed-off-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
> ---
>  tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py b/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py
> index 1d95009592eb..f6c84966e4f8 100644
> --- a/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py
> +++ b/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py
> @@ -57,6 +57,7 @@ try:
>  		'ia64'	: audit.MACH_IA64,
>  		'ppc'	: audit.MACH_PPC,
>  		'ppc64'	: audit.MACH_PPC64,
> +		'ppc64le' : audit.MACH_PPC64LE,
>  		's390'	: audit.MACH_S390,
>  		's390x'	: audit.MACH_S390X,
>  		'i386'	: audit.MACH_X86,
> -- 
> 2.13.3

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] perf/python: Add ppc64le to audit uname list
  2017-08-02 15:06 ` Arnaldo Carvalho de Melo
@ 2017-08-02 20:40   ` Paul Clarke
  2017-08-03  0:03     ` Michael Ellerman
  0 siblings, 1 reply; 4+ messages in thread
From: Paul Clarke @ 2017-08-02 20:40 UTC (permalink / raw)
  To: Arnaldo Carvalho de Melo, Naveen N. Rao; +Cc: linuxppc-dev

Coincidentally, I just saw a developer stumble upon this within the last
week.  Could this be pushed upstream soon?

PC

On 08/02/2017 10:06 AM, Arnaldo Carvalho de Melo wrote:
> Em Wed, Aug 02, 2017 at 08:12:16PM +0530, Naveen N. Rao escreveu:
>> Before patch:
>>   $ uname -m
>>   ppc64le
> 
> Thanks, applied,
> 
> - Arnaldo
> 
>>   $ ./perf script -s ./scripts/python/syscall-counts.py
>>   Install the audit-libs-python package to get syscall names.
>>   For example:
>>     # apt-get install python-audit (Ubuntu)
>>     # yum install audit-libs-python (Fedora)
>>     etc.
>>
>>   Press control+C to stop and show the summary
>>   ^CWarning:
>>   4 out of order events recorded.
>>
>>   syscall events:
>>
>>   event                                          count
>>   ----------------------------------------  -----------
>>   4                                             504638
>>   54                                              1206
>>   221                                               42
>>   55                                                21
>>   3                                                 12
>>   167                                               10
>>   11                                                 8
>>   6                                                  7
>>   125                                                6
>>   5                                                  6
>>   108                                                5
>>   162                                                4
>>   90                                                 4
>>   45                                                 3
>>   33                                                 3
>>   311                                                1
>>   246                                                1
>>   238                                                1
>>   93                                                 1
>>   91                                                 1
>>
>> After patch:
>>   ./perf script -s ./scripts/python/syscall-counts.py
>>   Press control+C to stop and show the summary
>>   ^CWarning:
>>   5 out of order events recorded.
>>
>>   syscall events:
>>
>>   event                                          count
>>   ----------------------------------------  -----------
>>   write                                         643411
>>   ioctl                                           1206
>>   futex                                             54
>>   fcntl                                             27
>>   poll                                              14
>>   read                                              12
>>   execve                                             8
>>   close                                              7
>>   mprotect                                           6
>>   open                                               6
>>   nanosleep                                          5
>>   fstat                                              5
>>   mmap                                               4
>>   inotify_add_watch                                  3
>>   brk                                                3
>>   access                                             3
>>   timerfd_settime                                    1
>>   clock_gettime                                      1
>>   epoll_wait                                         1
>>   ftruncate                                          1
>>   munmap                                             1
>>
>> Signed-off-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
>> ---
>>  tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py | 1 +
>>  1 file changed, 1 insertion(+)
>>
>> diff --git a/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py b/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py
>> index 1d95009592eb..f6c84966e4f8 100644
>> --- a/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py
>> +++ b/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py
>> @@ -57,6 +57,7 @@ try:
>>  		'ia64'	: audit.MACH_IA64,
>>  		'ppc'	: audit.MACH_PPC,
>>  		'ppc64'	: audit.MACH_PPC64,
>> +		'ppc64le' : audit.MACH_PPC64LE,
>>  		's390'	: audit.MACH_S390,
>>  		's390x'	: audit.MACH_S390X,
>>  		'i386'	: audit.MACH_X86,
>> -- 
>> 2.13.3
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] perf/python: Add ppc64le to audit uname list
  2017-08-02 20:40   ` Paul Clarke
@ 2017-08-03  0:03     ` Michael Ellerman
  0 siblings, 0 replies; 4+ messages in thread
From: Michael Ellerman @ 2017-08-03  0:03 UTC (permalink / raw)
  To: Paul Clarke, Arnaldo Carvalho de Melo, Naveen N. Rao; +Cc: linuxppc-dev

Paul Clarke <pc@us.ibm.com> writes:

> Coincidentally, I just saw a developer stumble upon this within the last
> week.  Could this be pushed upstream soon?

acme's tree is upstream for perf.

I assume you mean into Linus' tree? If so this should land in 4.14.

cheers

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-08-03  0:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-02 14:42 [PATCH] perf/python: Add ppc64le to audit uname list Naveen N. Rao
2017-08-02 15:06 ` Arnaldo Carvalho de Melo
2017-08-02 20:40   ` Paul Clarke
2017-08-03  0:03     ` Michael Ellerman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.