1. 20 12月, 2013 4 次提交
    • A
      perf tools: Rename 'perf_record_opts' to 'record_opts · b4006796
      Arnaldo Carvalho de Melo 提交于
      Reduce typing, functions use class__method convention, so unlikely to
      clash with other libraries.
      
      This actually was discussed in the "Link:" referenced message below.
      
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: David Ahern <dsahern@gmail.com>
      Cc: Frederic Weisbecker <fweisbec@gmail.com>
      Cc: Jiri Olsa <jolsa@redhat.com>
      Cc: Mike Galbraith <efault@gmx.de>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Stephane Eranian <eranian@google.com>
      Link: http://lkml.kernel.org/r/20131112113427.GA4053@ghostprotocols.netSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      b4006796
    • A
      perf record: Rename 'perf_record' to plain 'record' · 8c6f45a7
      Arnaldo Carvalho de Melo 提交于
      Its a local struct and the functions use the __ separator from the class
      name to the method name, so its unlikely that this will clash with other
      namespaces.
      
      Save some typing then.
      
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: David Ahern <dsahern@gmail.com>
      Cc: Frederic Weisbecker <fweisbec@gmail.com>
      Cc: Jiri Olsa <jolsa@redhat.com>
      Cc: Mike Galbraith <efault@gmx.de>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Stephane Eranian <eranian@google.com>
      Link: http://lkml.kernel.org/n/tip-r011tdv7ianars9jr9ur2n4q@git.kernel.orgSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      8c6f45a7
    • A
      perf record: Simplify perf_record__write · cf8b2e69
      Arnaldo Carvalho de Melo 提交于
      1. Since all callers either test if it is less than zero or assign its
         result to an int variable, convert it from ssize_t to int;
      
      2. There is just one use for the 'session' variable, so use rec->session
         directly instead;
      
      3. No need to store the result of perf_data_file__write, since that
         result is either 'size' or -1, the later making the error result to
         be stored in 'errno' and accessed thru printf's %m in the pr_err
         call.
      
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: David Ahern <dsahern@gmail.com>
      Cc: Frederic Weisbecker <fweisbec@gmail.com>
      Cc: Jiri Olsa <jolsa@redhat.com>
      Cc: Mike Galbraith <efault@gmx.de>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Stephane Eranian <eranian@google.com>
      Link: http://lkml.kernel.org/n/tip-xwsk964dp681fica3xlqhjin@git.kernel.orgSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      cf8b2e69
    • J
      perf record: Use perf_data_file__write for output file · 50a9b868
      Jiri Olsa 提交于
      Changing the file output code to use the newly
      added perf_data_file__write interface.
      
      No functional change intended.
      Signed-off-by: NJiri Olsa <jolsa@redhat.com>
      Cc: Ingo Molnar <mingo@kernel.org>
      Cc: Frederic Weisbecker <fweisbec@gmail.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Mike Galbraith <efault@gmx.de>
      Cc: David Ahern <dsahern@gmail.com>
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
      50a9b868
  2. 19 12月, 2013 13 次提交
  3. 18 12月, 2013 3 次提交
  4. 17 12月, 2013 7 次提交
  5. 13 12月, 2013 13 次提交