1. 07 2月, 2013 10 次提交
  2. 06 2月, 2013 1 次提交
  3. 03 2月, 2013 1 次提交
  4. 02 2月, 2013 1 次提交
    • S
      tracing: Init current_trace to nop_trace and remove NULL checks · d840f718
      Steven Rostedt (Red Hat) 提交于
      On early boot up, when the ftrace ring buffer is initialized, the
      static variable current_trace is initialized to &nop_trace.
      Before this initialization, current_trace is NULL and will never
      become NULL again. It is always reassigned to a ftrace tracer.
      
      Several places check if current_trace is NULL before it uses
      it, and this check is frivolous, because at the point in time
      when the checks are made the only way current_trace could be
      NULL is if ftrace failed its allocations at boot up, and the
      paths to these locations would probably not be possible.
      
      By initializing current_trace to &nop_trace where it is declared,
      current_trace will never be NULL, and we can remove all these
      checks of current_trace being NULL which never needed to be
      checked in the first place.
      
      Cc: Dan Carpenter <dan.carpenter@oracle.com>
      Cc: Hiraku Toyooka <hiraku.toyooka.gu@hitachi.com>
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      d840f718
  5. 01 2月, 2013 26 次提交
  6. 31 1月, 2013 1 次提交
    • I
      Merge tag 'perf-core-for-mingo' of... · 152fefa9
      Ingo Molnar 提交于
      Merge tag 'perf-core-for-mingo' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/core
      
      Pull perf/core improvements and fixes from Arnaldo Carvalho de Melo:
      
      . Fix some leaks in exit paths.
      
      . Use memdup where applicable
      
      . Remove some die() calls, allowing callers to handle exit paths
        gracefully.
      
      . Correct typo in tools Makefile, fix from Borislav Petkov.
      
      . Add 'perf bench numa mem' NUMA performance measurement suite, from Ingo Molnar.
      
      . Handle dynamic array's element size properly, fix from Jiri Olsa.
      
      . Fix memory leaks on evsel->counts, from Namhyung Kim.
      
      . Make numa benchmark optional, allowing the build in machines where required
        numa libraries are not present, fix from Peter Hurley.
      
      . Add interval printing in 'perf stat', from Stephane Eranian.
      
      . Fix compile warnings in tests/attr.c, from Sukadev Bhattiprolu.
      
      . Fix double free, pclose instead of fclose, leaks and double fclose errors
        found with the cppcheck tool, from Thomas Jarosch.
      Signed-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      152fefa9