From: Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
To: Arnaldo de Melo <acme@redhat.com>
Cc: Thomas-Mich Richter <tmricht@linux.vnet.ibm.com>,
Michael Petlan <mpetlan@redhat.com>,
linux-perf-users@vger.kernel.org, Jiri Olsa <jolsa@redhat.com>
Subject: Re: [PATCH] perf test shell: Fix check open filename arg using 'perf trace'
Date: Tue, 5 Dec 2017 16:39:49 +0100 [thread overview]
Message-ID: <20171205153949.GA4370@linux.vnet.ibm.com> (raw)
In-Reply-To: <20171130155922.GB2893@redhat.com>
Hi Arnaldo,
On Thu, Nov 30, 2017 at 01:59:22PM -0200, Arnaldo de Melo wrote:
> Em Thu, Nov 30, 2017 at 01:56:42PM -0200, Arnaldo de Melo escreveu:
> > Em Thu, Nov 30, 2017 at 11:28:33AM +0100, Thomas-Mich Richter escreveu:
> > > On 11/29/2017 06:27 PM, Michael Petlan wrote:
> > [acme@jouet linux]$ git log -1 27702bcfe8a125a1feeeb5f07526d63b20cac47f --oneline
> > 27702bcfe8a1 perf trace: Support syscall name globbing
> > [acme@jouet linux]$
> >
> > Is in v4.14 final.
> >
> > Testing with/without those quotes:
> >
> > [root@jouet ~]# perf trace -e open* touch /etc/passwd
> > 0.000 ( 0.007 ms): touch/17246 open(filename: 0x99747e37, flags: CLOEXEC ) = 3
> > 0.022 ( 0.004 ms): touch/17246 open(filename: 0x9994b640, flags: CLOEXEC ) = 3
> > 0.189 ( 0.004 ms): touch/17246 open(filename: 0x994f1c70, flags: CLOEXEC ) = 3
> > 0.224 ( 0.056 ms): touch/17246 open(filename: 0xaa80a32a, flags: CREAT|NOCTTY|NONBLOCK|WRONLY, mode: IRUGO|IWUGO) = 3
> > [root@jouet ~]# perf trace -e 'open*' touch /etc/passwd
> > 0.000 ( 0.039 ms): touch/17250 open(filename: 0xf1445e37, flags: CLOEXEC ) = 3
> > 0.107 ( 0.030 ms): touch/17250 open(filename: 0xf1649640, flags: CLOEXEC ) = 3
> > 0.976 ( 0.009 ms): touch/17250 open(filename: 0xf11efc70, flags: CLOEXEC ) = 3
> > 1.032 ( 0.008 ms): touch/17250 open(filename: 0x9357432a, flags: CREAT|NOCTTY|NONBLOCK|WRONLY, mode: IRUGO|IWUGO) = 3
> > [root@jouet ~]#
> >
> > What differs from x86 to others is that x86 uses syscalltbl, not requiring
> > audit-libs to map syscall numbers to names, so perhaps it is something in there...
>
> Yeah :-\
>
> int syscalltbl__strglobmatch_next(struct syscalltbl *tbl __maybe_unused,
> const char *syscall_glob __maybe_unused, int *idx __maybe_unused)
> {
> return -1;
> }
>
> int syscalltbl__strglobmatch_first(struct syscalltbl *tbl, const char
> *syscall_glob, int *idx)
> {
> return syscalltbl__strglobmatch_next(tbl, syscall_glob, idx);
> }
> #endif /* HAVE_SYSCALL_TABLE */
>
> -----
>
> So someone needs to implement syscalltbl__strglobmatch_next() for arches
> that don't HAVE_SYSCALL_TABLE, which is basically at this stage !x86.
>
> Shouldn't be that difficult, but remains to be done.
Thanks for pointing in that direction. I looked at it and will post a
patch to add syscall tables for s390 too.
Kind regards,
Hendrik
next prev parent reply other threads:[~2017-12-05 15:39 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-29 17:27 [PATCH] perf test shell: Fix check open filename arg using 'perf trace' Michael Petlan
2017-11-30 10:28 ` Thomas-Mich Richter
2017-11-30 15:56 ` Arnaldo de Melo
2017-11-30 15:59 ` Arnaldo de Melo
2017-12-05 15:39 ` Hendrik Brueckner [this message]
2017-12-06 16:34 ` Arnaldo Carvalho de Melo
2017-12-07 7:39 ` Hendrik Brueckner
2017-12-01 2:33 ` Namhyung Kim
2017-12-01 15:16 ` Arnaldo Carvalho de Melo
2017-12-02 23:21 ` Michael Petlan
2017-12-05 23:18 ` Michael Petlan
2017-12-06 14:28 ` Arnaldo de Melo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20171205153949.GA4370@linux.vnet.ibm.com \
--to=brueckner@linux.vnet.ibm.com \
--cc=acme@redhat.com \
--cc=jolsa@redhat.com \
--cc=linux-perf-users@vger.kernel.org \
--cc=mpetlan@redhat.com \
--cc=tmricht@linux.vnet.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.