• A
    perf tools: Use ui__error() for reporting --fields errors · 56271170
    Arnaldo Carvalho de Melo 提交于
    So that we can get it working for TUI, where using just pr_err() would
    end up making the message emitted to stderr to be erased by the TUI exit
    routine restoring the terminal to its previous state.
    
    Now we can see that trying to use a tracepoint field as one of the
    --field entries isn't working:
    
      # perf top --stdio --no-children -e syscalls:sys_enter_write --fields pid,sym,count
      Error:
      Unknown --fields key: `count'
       Usage: perf top [<options>]
    
            --fields <key[,keys...]>
                              output field(s): overhead, period, sample plus all of sort keys
      #
    
    Cc: Adrian Hunter <adrian.hunter@intel.com>
    Cc: David Ahern <dsahern@gmail.com>
    Cc: Jiri Olsa <jolsa@kernel.org>
    Cc: Namhyung Kim <namhyung@kernel.org>
    Cc: Wang Nan <wangnan0@huawei.com>
    Link: https://lkml.kernel.org/n/tip-usy9hhy7umdd4bbblkn63t8w@git.kernel.orgSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
    56271170
sort.c 70.6 KB