lkml.org 
[lkml]   [2010]   [May]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 09/10] perf/trace/scripting: syscall-counts-by-pid script cleanup
    Date
    From: Tom Zanussi <tzanussi@gmail.com>

    A small fix for the syscall counts by pid script:

    - silence the match output in the shell script

    Cc: Frédéric Weisbecker <fweisbec@gmail.com>
    Cc: Ingo Molnar <mingo@elte.hu>
    LKML-Reference: <1273466820-9330-9-git-send-email-tzanussi@gmail.com>
    Signed-off-by: Tom Zanussi <tzanussi@gmail.com>
    Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
    ---
    .../python/bin/syscall-counts-by-pid-report | 2 +-
    1 files changed, 1 insertions(+), 1 deletions(-)

    diff --git a/tools/perf/scripts/python/bin/syscall-counts-by-pid-report b/tools/perf/scripts/python/bin/syscall-counts-by-pid-report
    index c53362e..9e9d8dd 100644
    --- a/tools/perf/scripts/python/bin/syscall-counts-by-pid-report
    +++ b/tools/perf/scripts/python/bin/syscall-counts-by-pid-report
    @@ -2,7 +2,7 @@
    # description: system-wide syscall counts, by pid
    # args: [comm]
    if [ $# -gt 0 ] ; then
    - if ! expr match "$1" "-" ; then
    + if ! expr match "$1" "-" > /dev/null ; then
    comm=$1
    shift
    fi
    --
    1.6.2.5
    --
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2010-05-12 10:11    [W:0.023 / U:30.024 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site