Skip to contentSkip to conversation

perf changes for v3.2

GIT PULL Ingo Molnar 1 participant 1 message Oct 26, 2011

Subsystems (14)
x86 ACPI perf events Tracing +10 more subsystems
lore
Share & tools
lore
#0 lore raw

Linus,

Please pull the latest perf-core-for-linus git tree from:

git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git perf-core-for-linus

There's a ton of changes as usual. The TUI rework of perf top and perf report should be the most user visible one - let us know if there's any trouble with that (or with any of the other changes).

As usual you can turn off the TUI via 'perf report --stdio' or via editing .perfconfig and get the old output - but obviously we'd prefer it if people told us about TUI workflow efficiency problems, large and small problems alike, so that we can fix them.

Thanks,

Ingo

------------------>
Andi Kleen (2):
perf tools: Make stat/record print fatal signals of the target program
perf: Support setting the disassembler style

Andrew Vagin (1):
perf: Fix counter of ftrace events

Arnaldo Carvalho de Melo (49):
perf symbols: Stop using 'self' in map_groups__ methods
perf buildid-list: Add option to show the running kernel build id
perf buildid-list: Support showing the build id in an ELF file
perf top browser: Fix up line width calculation
perf top: Improve lost events warning
perf report: Fix stdio event name header printing
perf hists: Stop using 'self' for struct hists
perf hists: Allow limiting the number of rows and columns in fprintf perf report: Add option to show total period
perf hists: Threaded addition and sorting of entries
perf browsers: Add live mode to the hists, annotate browsers
perf top: Reuse the 'report' hist_entry/hists classes
perf top: Add callgraph support
perf annotate browser: Allow navigation to called functions
perf top: Use the TUI interface by default
perf annotate browser: Use -> to navigate on assembly lines
perf hists browser: Don't offer symbol actions when symbols not on --sort perf hists browser: Fix TAB/UNTAB use with multiple events
perf hists browser: Update the browser.nr_entries after the timer
perf tools: Make --no-asm-raw the default
perf hists browser: Recalculate browser pointers after resort/decay perf hists: Don't free decayed entries if in the annotation browser perf ui browser: Handle SIGWINCH
perf ui browser: Remove ui_browser__add_exit_keys
perf top: Remove entries from entries_collapsed on decay
perf hists browser: Fix handling of TAB/UNTAB for multiple events
perf hists browser: Invalidate ui_browser->top after timer calls
perf annotate browser: Exit when pressing ESC or the left arrow
perf ui browser: Add filter method
perf annotate browser: Allow toggling the visualization of source code lines perf top: Honour --hide_{user,kernel}_symbols and the 'U' hotkey
perf top: Fix the 'E' hotkey, select among multiple events
perf hists browser: Add missing hotkeys to the help window
perf tui: Catch signals to exit gracefully
perf ui browser: Allow initial use without navigation UI elements
perf hists: Don't format the percentage on hist_entry__snprintf
perf tui: Remove unneeded call to newtCls on startup
perf ui browser: Make the colors configurable and change the defaults perf top tui: Give color hints just on the percentage, like on --stdio perf ui browser: Honour the xterm colors
perf hists: Move the dso and thread filters from hist_browser
perf hists browser: Apply the dso and thread filters when merging new batches perf annotate browser: Don't change selection line when returning from callq perf hists browser: Honour symbol_conf.show_{nr_samples,total_period} perf hists: Don't decay total_period for filtered entries
perf hists: Don't consider filtered entries when calculating column widths perf hists browser: Elide DSO column when it is set to just one DSO, ditto for threads perf ui browser: Use libslang to read keys
perf hists browser: Refuse 'a' hotkey on non symbolic views

David Ahern (4):
perf script: Fix unknown feature comment
perf tools: Add prelink suggestion to dso update message perf tools: handle endianness of feature bitmap perf hists browser: Do not exit on tab key with single event

Don Zickus (5):
x86, nmi: Split out nmi from traps.c
x86, nmi: Create new NMI handler routines
x86, nmi: Wire up NMI handlers to new routines
x86, nmi: Add in logic to handle multiple events and unknown NMIs x86, nmi: Track NMI usage stats

Eric Dumazet (1):
watchdog: Make the kthreads NUMA affine

Geunsik Lim (1):
ftrace: Fix README to state tracing_on to start/stop tracing

Gleb Natapov (1):
perf, intel: Use GO/HO bits in perf-ctr

Hidetoshi Seto (1):
x86, mce: Do not call del_timer_sync() in IRQ context

Ingo Molnar (1):
x86, nmi, drivers: Fix nmi splitup build bug

Jim Cromie (5):
perf stat: Add --log-fd <N> option to redirect stderr elsewhere perf stat: Fix +- nan% in --no-aggr runs
perf stat: Suppress printing std-dev when its 0
perf stat: Allow tab as cvs delimiter
perf stat: Fix spelling in comment

Jiri Olsa (13):
tracing/filter: Use static allocation for filter predicates tracing/filter: Separate predicate init and filter addition tracing/filter: Remove field_name from filter_pred struct tracing/filter: Simplify tracepoint event lookup
tracing/filter: Unify predicate tree walking, change check_pred_tree function to use it tracing/filter: Change count_leafs function to use walk_pred_tree tracing/filter: Change fold_pred_tree function to use walk_pred_tree tracing/filter: Change fold_pred function to use walk_pred_tree tracing/filter: Change filter_match_preds function to use walk_pred_tree tracing/filter: Add startup tests for events filter
perf sched: Fix script command documentation
perf symbols: Treat all memory maps without dso file as loaded
perf tools: Fix tracing info recording

Joerg Roedel (2):
perf, core: Introduce attrs to count in either host or guest mode perf, amd: Use GO/HO bits in perf-ctr

Josh Stone (1):
x86, perf, kprobes: Make kprobes's twobyte_is_boostable volatile

Kevin Winchester (2):
x86: jump_label: arch_jump_label_text_poke_early: add missing __init x86, perf: Clean up perf_event cpu code

Maarten Lankhorst (1):
oprofile, x86: Convert memory allocation to static array

Mark Rutland (1):
perf: provide PMU when initing events

Masami Hiramatsu (2):
ftrace/kprobes: Fix not to delete probes if in use perf probe: Fix to show correct error string

Mathieu Desnoyers (1):
Tracepoint: Dissociate from module mutex

Mike Galbraith (1):
perf hists browser: Add missing stdarg.h include

Neil Horman (1):
perf script: Add drop monitor script

Peter Zijlstra (2):
perf, x86: Avoid kfree() in CPU_STARTING
perf: Add PM notifiers to fix CPU hotplug races

Randy Dunlap (1):
x86: Perf_event_amd.c needs <asm/apicdef.h>

Ricardo Ribalda Delgado (1):
perf symbols: Increase symbol KSYM_NAME_LEN size

Robert Richter (3):
oprofile, x86: Fix overflow and warning (commit 1d12d35) perf, x86: Share IBS macros between perf and oprofile perf, x86: Implement IBS initialization

Stephane Eranian (6):
perf annotate: Make output more readable
perf annotate: Add --symfs option
perf stat: Add -o and --append options
perf tools: Fix broken number of samples for perf report -n perf tools: Make perf.data more self-descriptive (v8) perf hists: Fix compilation when NO_NEWT_SUPPORT is set

Steven Rostedt (8):
tracing: Clean up tb_fmt to not give faulty compile warning
tracing: Add preempt disable for filter self test
tracing: Add a counter clock for those that do not trust clocks
tracing: Fix preemptirqsoff tracer to not stop at preempt off
tracing: Warn on output if the function tracer was found corrupted
tracing: Do not allocate buffer for trace_marker
tracing: Fix returning of duplicate data after EOF in trace_pipe_raw
m32r: Allow use of atomic64

Thomas Gleixner (1):
watchdog: Drop FIFO policy in exit path

Thomas Jarosch (1):
perf buildid: Fix possible unterminated readlink() result buffer

Vaibhav Nagarnaik (2):
trace: Add a new readonly entry to report total buffer size
trace: Add ring buffer stats to measure rate of events

 arch/m32r/Kconfig                                  |    1 +
 arch/x86/include/asm/nmi.h                         |   37 +-
 arch/x86/include/asm/perf_event.h                  |   55 +-
 arch/x86/include/asm/reboot.h                      |    2 +-
 arch/x86/kernel/Makefile                           |    2 +-
 arch/x86/kernel/apic/hw_nmi.c                      |   27 +-
 arch/x86/kernel/apic/x2apic_uv_x.c                 |   20 +-
 arch/x86/kernel/cpu/Makefile                       |    7 +-
 arch/x86/kernel/cpu/mcheck/mce-inject.c            |   20 +-
 arch/x86/kernel/cpu/mcheck/mce.c                   |   23 +-
 arch/x86/kernel/cpu/perf_event.c                   |  442 +-------
 arch/x86/kernel/cpu/perf_event.h                   |  505 ++++++++
 arch/x86/kernel/cpu/perf_event_amd.c               |   38 +-
 arch/x86/kernel/cpu/perf_event_amd_ibs.c           |  294 +++++
 arch/x86/kernel/cpu/perf_event_intel.c             |  146 ++-
 arch/x86/kernel/cpu/perf_event_intel_ds.c          |   79 +-
 arch/x86/kernel/cpu/perf_event_intel_lbr.c         |   28 +-
 arch/x86/kernel/cpu/perf_event_p4.c                |   10 +-
 arch/x86/kernel/cpu/perf_event_p6.c                |    9 +-
 arch/x86/kernel/crash.c                            |    5 +-
 arch/x86/kernel/jump_label.c                       |    2 +-
 arch/x86/kernel/kgdb.c                             |   60 +-
 arch/x86/kernel/kprobes.c                          |    4 +-
 arch/x86/kernel/nmi.c                              |  433 +++++++
 arch/x86/kernel/process_32.c                       |    2 +
 arch/x86/kernel/process_64.c                       |    2 +
 arch/x86/kernel/reboot.c                           |   23 +-
 arch/x86/kernel/traps.c                            |  155 ---
 arch/x86/oprofile/nmi_int.c                        |   42 +-
 arch/x86/oprofile/nmi_timer_int.c                  |   28 +-
 arch/x86/oprofile/op_model_amd.c                   |  234 +----
 arch/x86/oprofile/op_model_ppro.c                  |   27 +-
 arch/x86/oprofile/op_x86_model.h                   |    1 -
 drivers/acpi/apei/ghes.c                           |   22 +-
 drivers/char/ipmi/ipmi_watchdog.c                  |   33 +-
 drivers/watchdog/hpwdt.c                           |   25 +-
 include/linux/module.h                             |   12 -
 include/linux/perf_event.h                         |    5 +-
 include/linux/ring_buffer.h                        |    2 +
 include/linux/trace_clock.h                        |    1 +
 include/linux/tracepoint.h                         |   25 +-
 include/trace/ftrace.h                             |    3 +
 kernel/events/core.c                               |  101 ++-
 kernel/module.c                                    |   47 -
 kernel/trace/Makefile                              |    2 +
 kernel/trace/ftrace.c                              |    8 +
 kernel/trace/ring_buffer.c                         |   70 ++-
 kernel/trace/trace.c                               |  181 +++-
 kernel/trace/trace.h                               |   16 +-
 kernel/trace/trace_clock.c                         |   12 +
 kernel/trace/trace_events_filter.c                 |  795 ++++++++------
 kernel/trace/trace_events_filter_test.h            |   50 +
 kernel/trace/trace_irqsoff.c                       |    4 +-
 kernel/trace/trace_kprobe.c                        |   58 +-
 kernel/trace/trace_printk.c                        |   19 +-
 kernel/tracepoint.c                                |  169 +++-
 kernel/watchdog.c                                  |    7 +-
 tools/perf/Documentation/perf-annotate.txt         |   13 +
 tools/perf/Documentation/perf-buildid-list.txt     |    6 +
 tools/perf/Documentation/perf-report.txt           |   20 +-
 tools/perf/Documentation/perf-sched.txt            |    6 +-
 tools/perf/Documentation/perf-script.txt           |    7 +
 tools/perf/Documentation/perf-stat.txt             |   16 +
 tools/perf/Documentation/perf-top.txt              |   48 +-
 tools/perf/Documentation/perfconfig.example        |   20 +
 tools/perf/Makefile                                |    5 +-
 tools/perf/arch/powerpc/Makefile                   |    1 +
 tools/perf/arch/powerpc/util/header.c              |   36 +
 tools/perf/arch/x86/Makefile                       |    1 +
 tools/perf/arch/x86/util/header.c                  |   59 +
 tools/perf/builtin-annotate.c                      |   25 +-
 tools/perf/builtin-buildid-list.c                  |   52 +-
 tools/perf/builtin-diff.c                          |    2 +-
 tools/perf/builtin-record.c                        |   34 +-
 tools/perf/builtin-report.c                        |   28 +-
 tools/perf/builtin-script.c                        |    6 +-
 tools/perf/builtin-stat.c                          |  190 ++--
 tools/perf/builtin-top.c                           |  495 +++++---
 tools/perf/builtin.h                               |    1 -
 tools/perf/perf.c                                  |   24 +
 tools/perf/perf.h                                  |   13 +
 .../perf/scripts/python/bin/net_dropmonitor-record |    2 +
 .../perf/scripts/python/bin/net_dropmonitor-report |    4 +
 tools/perf/scripts/python/net_dropmonitor.py       |   72 ++
 tools/perf/util/annotate.c                         |   11 +-
 tools/perf/util/annotate.h                         |    9 +-
 tools/perf/util/color.c                            |    2 +-
 tools/perf/util/evlist.c                           |    6 +
 tools/perf/util/evlist.h                           |    4 +
 tools/perf/util/evsel.c                            |    1 +
 tools/perf/util/header.c                           | 1231 +++++++++++++++++++-
 tools/perf/util/header.h                           |   29 +-
 tools/perf/util/hist.c                             |  447 ++++++--
 tools/perf/util/hist.h                             |   61 +-
 tools/perf/util/map.c                              |  102 +-
 tools/perf/util/map.h                              |   42 +-
 tools/perf/util/probe-event.c                      |    4 +-
 tools/perf/util/session.c                          |   19 +
 tools/perf/util/session.h                          |    1 +
 tools/perf/util/sort.c                             |    4 +-
 tools/perf/util/sort.h                             |    2 +
 tools/perf/util/symbol.c                           |    3 +-
 tools/perf/util/symbol.h                           |    5 +-
 tools/perf/util/top.c                              |  141 +---
 tools/perf/util/top.h                              |   39 +-
 tools/perf/util/trace-event-info.c                 |  112 ++-
 tools/perf/util/trace-event.h                      |   13 +-
 tools/perf/util/ui/browser.c                       |  386 +++++--
 tools/perf/util/ui/browser.h                       |   12 +-
 tools/perf/util/ui/browsers/annotate.c             |  201 +++-
 tools/perf/util/ui/browsers/hists.c                |  297 +++--
 tools/perf/util/ui/browsers/map.c                  |    6 +-
 tools/perf/util/ui/browsers/top.c                  |  212 ----
 tools/perf/util/ui/helpline.h                      |    3 +
 tools/perf/util/ui/keysyms.h                       |   25 +
 tools/perf/util/ui/libslang.h                      |    2 +
 tools/perf/util/ui/setup.c                         |   38 +-
 117 files changed, 6208 insertions(+), 2878 deletions(-)
 create mode 100644 arch/x86/kernel/cpu/perf_event.h
 create mode 100644 arch/x86/kernel/cpu/perf_event_amd_ibs.c
 create mode 100644 arch/x86/kernel/nmi.c
 create mode 100644 kernel/trace/trace_events_filter_test.h
 create mode 100644 tools/perf/Documentation/perfconfig.example
 create mode 100644 tools/perf/arch/powerpc/util/header.c
 create mode 100644 tools/perf/arch/x86/util/header.c
 create mode 100755 tools/perf/scripts/python/bin/net_dropmonitor-record
 create mode 100755 tools/perf/scripts/python/bin/net_dropmonitor-report
 create mode 100755 tools/perf/scripts/python/net_dropmonitor.py
 delete mode 100644 tools/perf/util/ui/browsers/top.c
 create mode 100644 tools/perf/util/ui/keysyms.h
arch/m32r/Kconfig +1 -0
index b92b944..6c4e9aa 100644
@@ -10,6 +10,7 @@ config M32R
 	select HAVE_GENERIC_HARDIRQS
 	select GENERIC_IRQ_PROBE
 	select GENERIC_IRQ_SHOW
+	select GENERIC_ATOMIC64
 
 config SBUS
 	bool
arch/x86/include/asm/nmi.h +18 -19
index 4886a68..fd3f9f1 100644
@@ -22,27 +22,26 @@ void arch_trigger_all_cpu_backtrace(void);
 #define arch_trigger_all_cpu_backtrace arch_trigger_all_cpu_backtrace
 #endif
 
-/*
- * Define some priorities for the nmi notifier call chain.
- *
- * Create a local nmi bit that has a higher priority than
- * external nmis, because the local ones are more frequent.
- *
- * Also setup some default high/normal/low settings for
- * subsystems to registers with.  Using 4 bits to separate
- * the priorities.  This can go a lot higher if needed be.
- */
-
-#define NMI_LOCAL_SHIFT		16	/* randomly picked */
-#define NMI_LOCAL_BIT		(1ULL << NMI_LOCAL_SHIFT)
-#define NMI_HIGH_PRIOR		(1ULL << 8)
-#define NMI_NORMAL_PRIOR	(1ULL << 4)
-#define NMI_LOW_PRIOR		(1ULL << 0)
-#define NMI_LOCAL_HIGH_PRIOR	(NMI_LOCAL_BIT | NMI_HIGH_PRIOR)
-#define NMI_LOCAL_NORMAL_PRIOR	(NMI_LOCAL_BIT | NMI_NORMAL_PRIOR)
-#define NMI_LOCAL_LOW_PRIOR	(NMI_LOCAL_BIT | NMI_LOW_PRIOR)
+#define NMI_FLAG_FIRST	1
+
+enum {
+	NMI_LOCAL=0,
+	NMI_UNKNOWN,
+	NMI_MAX
+};
+
+#define NMI_DONE	0
+#define NMI_HANDLED	1
+
+typedef int (*nmi_handler_t)(unsigned int, struct pt_regs *);
+
+int register_nmi_handler(unsigned int, nmi_handler_t, unsigned long,
+			 const char *);
+
+void unregister_nmi_handler(unsigned int, const char *);
 
 void stop_nmi(void);
 void restart_nmi(void);
+void local_touch_nmi(void);
 
 #endif /* _ASM_X86_NMI_H */
arch/x86/include/asm/perf_event.h +52 -3

91 lines not on this page · raw message

arch/x86/include/asm/reboot.h +1 -1
index 3250e3d..92f29706 100644
@@ -23,7 +23,7 @@ void machine_real_restart(unsigned int type);
 #define MRR_BIOS	0
 #define MRR_APM		1
 
-typedef void (*nmi_shootdown_cb)(int, struct die_args*);
+typedef void (*nmi_shootdown_cb)(int, struct pt_regs*);
 void nmi_shootdown_cpus(nmi_shootdown_cb callback);
 
 #endif /* _ASM_X86_REBOOT_H */
arch/x86/kernel/Makefile +1 -1
index 82f2912..8baca3c 100644
@@ -19,7 +19,7 @@ endif
 
 obj-y			:= process_$(BITS).o signal.o entry_$(BITS).o
 obj-y			+= traps.o irq.o irq_$(BITS).o dumpstack_$(BITS).o
-obj-y			+= time.o ioport.o ldt.o dumpstack.o
+obj-y			+= time.o ioport.o ldt.o dumpstack.o nmi.o
 obj-y			+= setup.o x86_init.o i8259.o irqinit.o jump_label.o
 obj-$(CONFIG_IRQ_WORK)  += irq_work.o
 obj-y			+= probe_roms.o
arch/x86/kernel/apic/hw_nmi.c +5 -22
index d5e57db0..31cb9ae 100644
@@ -60,22 +60,10 @@ void arch_trigger_all_cpu_backtrace(void)
 }
 
 static int __kprobes
-arch_trigger_all_cpu_backtrace_handler(struct notifier_block *self,
-			 unsigned long cmd, void *__args)
+arch_trigger_all_cpu_backtrace_handler(unsigned int cmd, struct pt_regs *regs)
 {
-	struct die_args *args = __args;
-	struct pt_regs *regs;
 	int cpu;
 
-	switch (cmd) {
-	case DIE_NMI:
-		break;
-
-	default:
-		return NOTIFY_DONE;
-	}
-
-	regs = args->regs;
 	cpu = smp_processor_id();
 
 	if (cpumask_test_cpu(cpu, to_cpumask(backtrace_mask))) {
@@ -86,21 +74,16 @@ arch_trigger_all_cpu_backtrace_handler(struct notifier_block *self,
 		show_regs(regs);
 		arch_spin_unlock(&lock);
 		cpumask_clear_cpu(cpu, to_cpumask(backtrace_mask));
-		return NOTIFY_STOP;
+		return NMI_HANDLED;
 	}
 
-	return NOTIFY_DONE;
+	return NMI_DONE;
 }
 
-static __read_mostly struct notifier_block backtrace_notifier = {
-	.notifier_call          = arch_trigger_all_cpu_backtrace_handler,
-	.next                   = NULL,
-	.priority               = NMI_LOCAL_LOW_PRIOR,
-};
-
 static int __init register_trigger_all_cpu_backtrace(void)
 {
-	register_die_notifier(&backtrace_notifier);
+	register_nmi_handler(NMI_LOCAL, arch_trigger_all_cpu_backtrace_handler,
+				0, "arch_bt");
 	return 0;
 }
 early_initcall(register_trigger_all_cpu_backtrace);
arch/x86/kernel/apic/x2apic_uv_x.c +4 -16
index 34b1859..75be00e 100644
@@ -672,18 +672,11 @@ void __cpuinit uv_cpu_init(void)
 /*
  * When NMI is received, print a stack trace.
  */
-int uv_handle_nmi(struct notifier_block *self, unsigned long reason, void *data)
+int uv_handle_nmi(unsigned int reason, struct pt_regs *regs)
 {
 	unsigned long real_uv_nmi;
 	int bid;
 
-	if (reason != DIE_NMIUNKNOWN)
-		return NOTIFY_OK;
-
-	if (in_crash_kexec)
-		/* do nothing if entering the crash kernel */
-		return NOTIFY_OK;
-
 	/*
 	 * Each blade has an MMR that indicates when an NMI has been sent
 	 * to cpus on the blade. If an NMI is detected, atomically
@@ -704,7 +697,7 @@ int uv_handle_nmi(struct notifier_block *self, unsigned long reason, void *data)
 	}
 
 	if (likely(__get_cpu_var(cpu_last_nmi_count) == uv_blade_info[bid].nmi_count))
-		return NOTIFY_DONE;
+		return NMI_DONE;
 
 	__get_cpu_var(cpu_last_nmi_count) = uv_blade_info[bid].nmi_count;
 
@@ -717,17 +710,12 @@ int uv_handle_nmi(struct notifier_block *self, unsigned long reason, void *data)
 	dump_stack();
 	spin_unlock(&uv_nmi_lock);
 
-	return NOTIFY_STOP;
+	return NMI_HANDLED;
 }
 
-static struct notifier_block uv_dump_stack_nmi_nb = {
-	.notifier_call	= uv_handle_nmi,
-	.priority = NMI_LOCAL_LOW_PRIOR - 1,
-};
-
 void uv_register_nmi_notifier(void)
 {
-	if (register_die_notifier(&uv_dump_stack_nmi_nb))
+	if (register_nmi_handler(NMI_UNKNOWN, uv_handle_nmi, 0, "uv"))
 		printk(KERN_WARNING "UV NMI handler failed to register\n");
 }
 
arch/x86/kernel/cpu/Makefile +6 -1
index 6042981..fe6eb19 100644
@@ -28,10 +28,15 @@ obj-$(CONFIG_CPU_SUP_UMC_32)		+= umc.o
 
 obj-$(CONFIG_PERF_EVENTS)		+= perf_event.o
 
+ifdef CONFIG_PERF_EVENTS
+obj-$(CONFIG_CPU_SUP_AMD)		+= perf_event_amd.o
+obj-$(CONFIG_CPU_SUP_INTEL)		+= perf_event_p6.o perf_event_p4.o perf_event_intel_lbr.o perf_event_intel_ds.o perf_event_intel.o
+endif
+
 obj-$(CONFIG_X86_MCE)			+= mcheck/
 obj-$(CONFIG_MTRR)			+= mtrr/
 
-obj-$(CONFIG_X86_LOCAL_APIC)		+= perfctr-watchdog.o
+obj-$(CONFIG_X86_LOCAL_APIC)		+= perfctr-watchdog.o perf_event_amd_ibs.o
 
 quiet_cmd_mkcapflags = MKCAP   $@
       cmd_mkcapflags = $(PERL) $(srctree)/$(src)/mkcapflags.pl $< $@
arch/x86/kernel/cpu/mcheck/mce-inject.c +7 -13
index 0ed633c..6199232 100644
@@ -78,27 +78,20 @@ static void raise_exception(struct mce *m, struct pt_regs *pregs)
 
 static cpumask_var_t mce_inject_cpumask;
 
-static int mce_raise_notify(struct notifier_block *self,
-			    unsigned long val, void *data)
+static int mce_raise_notify(unsigned int cmd, struct pt_regs *regs)
 {
-	struct die_args *args = (struct die_args *)data;
 	int cpu = smp_processor_id();
 	struct mce *m = &__get_cpu_var(injectm);
-	if (val != DIE_NMI || !cpumask_test_cpu(cpu, mce_inject_cpumask))
-		return NOTIFY_DONE;
+	if (!cpumask_test_cpu(cpu, mce_inject_cpumask))
+		return NMI_DONE;
 	cpumask_clear_cpu(cpu, mce_inject_cpumask);
 	if (m->inject_flags & MCJ_EXCEPTION)
-		raise_exception(m, args->regs);
+		raise_exception(m, regs);
 	else if (m->status)
 		raise_poll(m);
-	return NOTIFY_STOP;
+	return NMI_HANDLED;
 }
 
-static struct notifier_block mce_raise_nb = {
-	.notifier_call = mce_raise_notify,
-	.priority = NMI_LOCAL_NORMAL_PRIOR,
-};
-
 /* Inject mce on current CPU */
 static int raise_local(void)
 {
@@ -216,7 +209,8 @@ static int inject_init(void)
 		return -ENOMEM;
 	printk(KERN_INFO "Machine check injector initialized\n");
 	mce_chrdev_ops.write = mce_write;
-	register_die_notifier(&mce_raise_nb);
+	register_nmi_handler(NMI_LOCAL, mce_raise_notify, 0,
+				"mce_notify");
 	return 0;
 }
 
arch/x86/kernel/cpu/mcheck/mce.c +14 -9
index 08363b0..fce51ad1 100644
@@ -908,9 +908,6 @@ void do_machine_check(struct pt_regs *regs, long error_code)
 
 	percpu_inc(mce_exception_count);
 
-	if (notify_die(DIE_NMI, "machine check", regs, error_code,
-			   18, SIGKILL) == NOTIFY_STOP)
-		goto out;
 	if (!banks)
 		goto out;
 
@@ -1140,6 +1137,15 @@ static void mce_start_timer(unsigned long data)
 	add_timer_on(t, smp_processor_id());
 }
 
+/* Must not be called in IRQ context where del_timer_sync() can deadlock */
+static void mce_timer_delete_all(void)
+{
+	int cpu;
+
+	for_each_online_cpu(cpu)
+		del_timer_sync(&per_cpu(mce_timer, cpu));
+}
+
 static void mce_do_trigger(struct work_struct *work)
 {
 	call_usermodehelper(mce_helper, mce_helper_argv, NULL, UMH_NO_WAIT);
@@ -1750,7 +1756,6 @@ static struct syscore_ops mce_syscore_ops = {
 
 static void mce_cpu_restart(void *data)
 {
-	del_timer_sync(&__get_cpu_var(mce_timer));
 	if (!mce_available(__this_cpu_ptr(&cpu_info)))
 		return;
 	__mcheck_cpu_init_generic();
@@ -1760,16 +1765,15 @@ static void mce_cpu_restart(void *data)
 /* Reinit MCEs after user configuration changes */
 static void mce_restart(void)
 {
+	mce_timer_delete_all();
 	on_each_cpu(mce_cpu_restart, NULL, 1);
 }
 
 /* Toggle features for corrected errors */
-static void mce_disable_ce(void *all)
+static void mce_disable_cmci(void *data)
 {
 	if (!mce_available(__this_cpu_ptr(&cpu_info)))
 		return;
-	if (all)
-		del_timer_sync(&__get_cpu_var(mce_timer));
 	cmci_clear();
 }
 
@@ -1852,7 +1856,8 @@ static ssize_t set_ignore_ce(struct sys_device *s,
 	if (mce_ignore_ce ^ !!new) {
 		if (new) {
 			/* disable ce features */
-			on_each_cpu(mce_disable_ce, (void *)1, 1);
+			mce_timer_delete_all();
+			on_each_cpu(mce_disable_cmci, NULL, 1);
 			mce_ignore_ce = 1;
 		} else {
 			/* enable ce features */
@@ -1875,7 +1880,7 @@ static ssize_t set_cmci_disabled(struct sys_device *s,
 	if (mce_cmci_disabled ^ !!new) {
 		if (new) {
 			/* disable cmci */
-			on_each_cpu(mce_disable_ce, NULL, 1);
+			on_each_cpu(mce_disable_cmci, NULL, 1);
 			mce_cmci_disabled = 1;
 		} else {
 			/* enable cmci */
arch/x86/kernel/cpu/perf_event.c +28 -414

578 lines not on this page · raw message

arch/x86/kernel/cpu/perf_event.h new file +505 -0

505 lines not on this page · raw message

arch/x86/kernel/cpu/perf_event_amd.c +24 -14
index 941caa2..aeefd45 100644
@@ -1,4 +1,10 @@
-#ifdef CONFIG_CPU_SUP_AMD
+#include <linux/perf_event.h>
+#include <linux/types.h>
+#include <linux/init.h>
+#include <linux/slab.h>
+#include <asm/apicdef.h>
+
+#include "perf_event.h"
 
 static __initconst const u64 amd_hw_cache_event_ids
 				[PERF_COUNT_HW_CACHE_MAX]
@@ -132,6 +138,19 @@ static int amd_pmu_hw_config(struct perf_event *event)
 	if (ret)
 		return ret;
 
+	if (event->attr.exclude_host && event->attr.exclude_guest)
+		/*
+		 * When HO == GO == 1 the hardware treats that as GO == HO == 0
+		 * and will count in both modes. We don't want to count in that
+		 * case so we emulate no-counting by setting US = OS = 0.
+		 */
+		event->hw.config &= ~(ARCH_PERFMON_EVENTSEL_USR |
+				      ARCH_PERFMON_EVENTSEL_OS);
+	else if (event->attr.exclude_host)
+		event->hw.config |= AMD_PERFMON_EVENTSEL_GUESTONLY;
+	else if (event->attr.exclude_guest)
+		event->hw.config |= AMD_PERFMON_EVENTSEL_HOSTONLY;
+
 	if (event->attr.type != PERF_TYPE_RAW)
 		return 0;
 
@@ -350,7 +369,7 @@ static void amd_pmu_cpu_starting(int cpu)
 			continue;
 
 		if (nb->nb_id == nb_id) {
-			kfree(cpuc->amd_nb);
+			cpuc->kfree_on_online = cpuc->amd_nb;
 			cpuc->amd_nb = nb;
 			break;
 		}
@@ -392,7 +411,7 @@ static __initconst const struct x86_pmu amd_pmu = {
 	.perfctr		= MSR_K7_PERFCTR0,
 	.event_map		= amd_pmu_event_map,
 	.max_events		= ARRAY_SIZE(amd_perfmon_event_map),
-	.num_counters		= 4,
+	.num_counters		= AMD64_NUM_COUNTERS,
 	.cntval_bits		= 48,
 	.cntval_mask		= (1ULL << 48) - 1,
 	.apic			= 1,
@@ -556,7 +575,7 @@ static __initconst const struct x86_pmu amd_pmu_f15h = {
 	.perfctr		= MSR_F15H_PERF_CTR,
 	.event_map		= amd_pmu_event_map,
 	.max_events		= ARRAY_SIZE(amd_perfmon_event_map),
-	.num_counters		= 6,
+	.num_counters		= AMD64_NUM_COUNTERS_F15H,
 	.cntval_bits		= 48,
 	.cntval_mask		= (1ULL << 48) - 1,
 	.apic			= 1,
@@ -573,7 +592,7 @@ static __initconst const struct x86_pmu amd_pmu_f15h = {
 #endif
 };
 
-static __init int amd_pmu_init(void)
+__init int amd_pmu_init(void)
 {
 	/* Performance-monitoring supported from K7 and later: */
 	if (boot_cpu_data.x86 < 6)
@@ -602,12 +621,3 @@ static __init int amd_pmu_init(void)
 
 	return 0;
 }
-
-#else /* CONFIG_CPU_SUP_AMD */
-
-static int amd_pmu_init(void)
-{
-	return 0;
-}
-
-#endif
arch/x86/kernel/cpu/perf_event_amd_ibs.c new file +294 -0

294 lines not on this page · raw message

arch/x86/kernel/cpu/perf_event_intel.c +118 -28

242 lines not on this page · raw message

arch/x86/kernel/cpu/perf_event_intel_ds.c +25 -54

202 lines not on this page · raw message

arch/x86/kernel/cpu/perf_event_intel_lbr.c +16 -12
index d202c1b..3fab3de 100644
@@ -1,4 +1,10 @@
-#ifdef CONFIG_CPU_SUP_INTEL
+#include <linux/perf_event.h>
+#include <linux/types.h>
+
+#include <asm/perf_event.h>
+#include <asm/msr.h>
+
+#include "perf_event.h"
 
 enum {
 	LBR_FORMAT_32		= 0x00,
@@ -48,7 +54,7 @@ static void intel_pmu_lbr_reset_64(void)
 	}
 }
 
-static void intel_pmu_lbr_reset(void)
+void intel_pmu_lbr_reset(void)
 {
 	if (!x86_pmu.lbr_nr)
 		return;
@@ -59,7 +65,7 @@ static void intel_pmu_lbr_reset(void)
 		intel_pmu_lbr_reset_64();
 }
 
-static void intel_pmu_lbr_enable(struct perf_event *event)
+void intel_pmu_lbr_enable(struct perf_event *event)
 {
 	struct cpu_hw_events *cpuc = &__get_cpu_var(cpu_hw_events);
 
@@ -81,7 +87,7 @@ static void intel_pmu_lbr_enable(struct perf_event *event)
 	cpuc->lbr_users++;
 }
 
-static void intel_pmu_lbr_disable(struct perf_event *event)
+void intel_pmu_lbr_disable(struct perf_event *event)
 {
 	struct cpu_hw_events *cpuc = &__get_cpu_var(cpu_hw_events);
 
@@ -95,7 +101,7 @@ static void intel_pmu_lbr_disable(struct perf_event *event)
 		__intel_pmu_lbr_disable();
 }
 
-static void intel_pmu_lbr_enable_all(void)
+void intel_pmu_lbr_enable_all(void)
 {
 	struct cpu_hw_events *cpuc = &__get_cpu_var(cpu_hw_events);
 
@@ -103,7 +109,7 @@ static void intel_pmu_lbr_enable_all(void)
 		__intel_pmu_lbr_enable();
 }
 
-static void intel_pmu_lbr_disable_all(void)
+void intel_pmu_lbr_disable_all(void)
 {
 	struct cpu_hw_events *cpuc = &__get_cpu_var(cpu_hw_events);
 
@@ -178,7 +184,7 @@ static void intel_pmu_lbr_read_64(struct cpu_hw_events *cpuc)
 	cpuc->lbr_stack.nr = i;
 }
 
-static void intel_pmu_lbr_read(void)
+void intel_pmu_lbr_read(void)
 {
 	struct cpu_hw_events *cpuc = &__get_cpu_var(cpu_hw_events);
 
@@ -191,7 +197,7 @@ static void intel_pmu_lbr_read(void)
 		intel_pmu_lbr_read_64(cpuc);
 }
 
-static void intel_pmu_lbr_init_core(void)
+void intel_pmu_lbr_init_core(void)
 {
 	x86_pmu.lbr_nr     = 4;
 	x86_pmu.lbr_tos    = 0x01c9;
@@ -199,7 +205,7 @@ static void intel_pmu_lbr_init_core(void)
 	x86_pmu.lbr_to     = 0x60;
 }
 
-static void intel_pmu_lbr_init_nhm(void)
+void intel_pmu_lbr_init_nhm(void)
 {
 	x86_pmu.lbr_nr     = 16;
 	x86_pmu.lbr_tos    = 0x01c9;
@@ -207,12 +213,10 @@ static void intel_pmu_lbr_init_nhm(void)
 	x86_pmu.lbr_to     = 0x6c0;
 }
 
-static void intel_pmu_lbr_init_atom(void)
+void intel_pmu_lbr_init_atom(void)
 {
 	x86_pmu.lbr_nr	   = 8;
 	x86_pmu.lbr_tos    = 0x01c9;
 	x86_pmu.lbr_from   = 0x40;
 	x86_pmu.lbr_to     = 0x60;
 }
-
-#endif /* CONFIG_CPU_SUP_INTEL */
arch/x86/kernel/cpu/perf_event_p4.c +6 -4
index 7809d2bc..492bf13 100644
@@ -7,9 +7,13 @@
  *  For licencing details see kernel-base/COPYING
  */
 
-#ifdef CONFIG_CPU_SUP_INTEL
+#include <linux/perf_event.h>
 
 #include <asm/perf_event_p4.h>
+#include <asm/hardirq.h>
+#include <asm/apic.h>
+
+#include "perf_event.h"
 
 #define P4_CNTR_LIMIT 3
 /*
@@ -1303,7 +1307,7 @@ static __initconst const struct x86_pmu p4_pmu = {
 	.perfctr_second_write	= 1,
 };
 
-static __init int p4_pmu_init(void)
+__init int p4_pmu_init(void)
 {
 	unsigned int low, high;
 
@@ -1326,5 +1330,3 @@ static __init int p4_pmu_init(void)
 
 	return 0;
 }
-
-#endif /* CONFIG_CPU_SUP_INTEL */
arch/x86/kernel/cpu/perf_event_p6.c +5 -4
index 20c097e..c7181be 100644
@@ -1,4 +1,7 @@
-#ifdef CONFIG_CPU_SUP_INTEL
+#include <linux/perf_event.h>
+#include <linux/types.h>
+
+#include "perf_event.h"
 
 /*
  * Not sure about some of these
@@ -114,7 +117,7 @@ static __initconst const struct x86_pmu p6_pmu = {
 	.event_constraints	= p6_event_constraints,
 };
 
-static __init int p6_pmu_init(void)
+__init int p6_pmu_init(void)
 {
 	switch (boot_cpu_data.x86_model) {
 	case 1:
@@ -138,5 +141,3 @@ static __init int p6_pmu_init(void)
 
 	return 0;
 }
-
-#endif /* CONFIG_CPU_SUP_INTEL */
arch/x86/kernel/crash.c +1 -4
index 764c7c2..13ad899 100644
@@ -32,15 +32,12 @@ int in_crash_kexec;
 
 #if defined(CONFIG_SMP) && defined(CONFIG_X86_LOCAL_APIC)
 
-static void kdump_nmi_callback(int cpu, struct die_args *args)
+static void kdump_nmi_callback(int cpu, struct pt_regs *regs)
 {
-	struct pt_regs *regs;
 #ifdef CONFIG_X86_32
 	struct pt_regs fixed_regs;
 #endif
 
-	regs = args->regs;
-
 #ifdef CONFIG_X86_32
 	if (!user_mode_vm(regs)) {
 		crash_fixup_ss_esp(&fixed_regs, regs);
arch/x86/kernel/jump_label.c +1 -1
index 3fee346..cacdd46 100644
@@ -42,7 +42,7 @@ void arch_jump_label_transform(struct jump_entry *entry,
 	put_online_cpus();
 }
 
-void arch_jump_label_text_poke_early(jump_label_t addr)
+void __init_or_module arch_jump_label_text_poke_early(jump_label_t addr)
 {
 	text_poke_early((void *)addr, ideal_nops[NOP_ATOMIC5],
 			JUMP_LABEL_NOP_SIZE);
arch/x86/kernel/kgdb.c +45 -15

97 lines not on this page · raw message

arch/x86/kernel/kprobes.c +3 -1
index f1a6244..c0ed3d9 100644
@@ -75,8 +75,10 @@ DEFINE_PER_CPU(struct kprobe_ctlblk, kprobe_ctlblk);
 	/*
 	 * Undefined/reserved opcodes, conditional jump, Opcode Extension
 	 * Groups, and some special opcodes can not boost.
+	 * This is volatile to keep gcc from statically optimizing it out, as
+	 * variable_test_bit makes gcc think only *(unsigned long*) is used.
 	 */
-static const u32 twobyte_is_boostable[256 / 32] = {
+static volatile const u32 twobyte_is_boostable[256 / 32] = {
 	/*      0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f          */
 	/*      ----------------------------------------------          */
 	W(0x00, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0) | /* 00 */
arch/x86/kernel/nmi.c new file +433 -0

433 lines not on this page · raw message

arch/x86/kernel/process_32.c +2 -0
index 7a3b651..46ff054 100644
@@ -57,6 +57,7 @@
 #include <asm/idle.h>
 #include <asm/syscalls.h>
 #include <asm/debugreg.h>
+#include <asm/nmi.h>
 
 asmlinkage void ret_from_fork(void) __asm__("ret_from_fork");
 
@@ -107,6 +108,7 @@ void cpu_idle(void)
 			if (cpu_is_offline(cpu))
 				play_dead();
 
+			local_touch_nmi();
 			local_irq_disable();
 			/* Don't trace irqs off for idle */
 			stop_critical_timings();
arch/x86/kernel/process_64.c +2 -0
index f693e44..3bd7e6e 100644
@@ -51,6 +51,7 @@
 #include <asm/idle.h>
 #include <asm/syscalls.h>
 #include <asm/debugreg.h>
+#include <asm/nmi.h>
 
 asmlinkage extern void ret_from_fork(void);
 
@@ -133,6 +134,7 @@ void cpu_idle(void)
 			 * from here on, until they go to idle.
 			 * Otherwise, idle callbacks can misfire.
 			 */
+			local_touch_nmi();
 			local_irq_disable();
 			enter_idle();
 			/* Don't trace irqs off for idle */
arch/x86/kernel/reboot.c +7 -16
index 9242436..e334be1 100644

Lines of this file are not shown. View the raw message.

arch/x86/kernel/traps.c +0 -155

155 lines not on this page · raw message

arch/x86/oprofile/nmi_int.c +11 -29
index 68894fd..c04dc14 100644

Lines of this file are not shown. View the raw message.

arch/x86/oprofile/nmi_timer_int.c +6 -22
index 720bf5a..7f8052c 100644

Lines of this file are not shown. View the raw message.

arch/x86/oprofile/op_model_amd.c +3 -231

234 lines not on this page · raw message

arch/x86/oprofile/op_model_ppro.c +2 -25
index 94b7450..d90528e 100644

Lines of this file are not shown. View the raw message.

arch/x86/oprofile/op_x86_model.h +0 -1
index 89017fa..71e8a67 100644

Lines of this file are not shown. View the raw message.

drivers/acpi/apei/ghes.c +8 -14
index 0784f99..b8e08cb 100644

Lines of this file are not shown. View the raw message.

drivers/char/ipmi/ipmi_watchdog.c +11 -22
index 3302586..c2917ffa 100644

Lines of this file are not shown. View the raw message.

drivers/watchdog/hpwdt.c +7 -18
index 809cbda..3774c9b 100644

Lines of this file are not shown. View the raw message.

include/linux/module.h +0 -12
index 1c30087..8639216 100644

Lines of this file are not shown. View the raw message.

include/linux/perf_event.h +4 -1
index c816075..1e9ebe5 100644

Lines of this file are not shown. View the raw message.

include/linux/ring_buffer.h +2 -0
index b891de9..67be037 100644

Lines of this file are not shown. View the raw message.

include/linux/trace_clock.h +1 -0
index 7a81303..4eb4902 100644

Lines of this file are not shown. View the raw message.

include/linux/tracepoint.h +11 -14
index d530a44..df0a779 100644

Lines of this file are not shown. View the raw message.

include/trace/ftrace.h +3 -0
index 533c49f..7697249 100644

Lines of this file are not shown. View the raw message.

kernel/events/core.c +97 -4

101 lines not on this page · raw message

kernel/module.c +0 -47

47 lines not on this page · raw message

kernel/trace/Makefile +2 -0
index 761c510..b384ed5 100644

Lines of this file are not shown. View the raw message.

kernel/trace/ftrace.c +8 -0
index c3e4575..077d853 100644

Lines of this file are not shown. View the raw message.

kernel/trace/ring_buffer.c +69 -1

70 lines not on this page · raw message

kernel/trace/trace.c +149 -32

181 lines not on this page · raw message

kernel/trace/trace.h +6 -10
index 616846b..092e1f8 100644

Lines of this file are not shown. View the raw message.

kernel/trace/trace_clock.c +12 -0
index 6302747..3947835 100644

Lines of this file are not shown. View the raw message.

kernel/trace/trace_events_filter.c +462 -333

795 lines not on this page · raw message

kernel/trace/trace_events_filter_test.h new file +50 -0

50 lines not on this page · raw message

kernel/trace/trace_irqsoff.c +2 -2
index 667aa8c..a1a3359 100644

Lines of this file are not shown. View the raw message.

kernel/trace/trace_kprobe.c +49 -9

58 lines not on this page · raw message

kernel/trace/trace_printk.c +10 -9
index 1f06468..6fd4ffd 100644

Lines of this file are not shown. View the raw message.

kernel/tracepoint.c +147 -22

169 lines not on this page · raw message

kernel/watchdog.c +4 -3
index 36491cd..d680381 100644

Lines of this file are not shown. View the raw message.

tools/perf/Documentation/perf-annotate.txt +13 -0
index 85c5f02..fe6762e 100644

Lines of this file are not shown. View the raw message.

tools/perf/Documentation/perf-buildid-list.txt +6 -0
index 5eaac6f..cc22325 100644

Lines of this file are not shown. View the raw message.

tools/perf/Documentation/perf-report.txt +19 -1
index 04253c0..212f24d 100644

Lines of this file are not shown. View the raw message.

tools/perf/Documentation/perf-sched.txt +3 -3
index 46822d5..5b212b5 100644

Lines of this file are not shown. View the raw message.

tools/perf/Documentation/perf-script.txt +7 -0
index db01786..dec87ec 100644

Lines of this file are not shown. View the raw message.

tools/perf/Documentation/perf-stat.txt +16 -0
index 918cc38..8966b9a 100644

Lines of this file are not shown. View the raw message.

tools/perf/Documentation/perf-top.txt +45 -3

48 lines not on this page · raw message

tools/perf/Documentation/perfconfig.example new file +20 -0
new file mode 100644
index 0000000..d144866

Lines of this file are not shown. View the raw message.

tools/perf/Makefile +1 -4
index e9d5c27..b98e307 100644

Lines of this file are not shown. View the raw message.

tools/perf/arch/powerpc/Makefile +1 -0
index 15130b5..744e629 100644

Lines of this file are not shown. View the raw message.

tools/perf/arch/powerpc/util/header.c new file +36 -0
new file mode 100644
index 0000000..eba80c2

Lines of this file are not shown. View the raw message.

tools/perf/arch/x86/Makefile +1 -0
index 15130b5..744e629 100644

Lines of this file are not shown. View the raw message.

tools/perf/arch/x86/util/header.c new file +59 -0

59 lines not on this page · raw message

tools/perf/builtin-annotate.c +18 -7
index 555aefd..46b4c24 100644

Lines of this file are not shown. View the raw message.

tools/perf/builtin-buildid-list.c +50 -2

52 lines not on this page · raw message

tools/perf/builtin-diff.c +1 -1
index e821999..b39f3a1 100644

Lines of this file are not shown. View the raw message.

tools/perf/builtin-record.c +32 -2
index f4c3fbe..f82480f 100644

Lines of this file are not shown. View the raw message.

tools/perf/builtin-report.c +20 -8
index d7ff277..4d7c834 100644

Lines of this file are not shown. View the raw message.

tools/perf/builtin-script.c +5 -1
index 09024ec..2f62a29 100644

Lines of this file are not shown. View the raw message.

tools/perf/builtin-stat.c +121 -69

190 lines not on this page · raw message

tools/perf/builtin-top.c +306 -189

495 lines not on this page · raw message

tools/perf/builtin.h +0 -1
index 4702e24..b382bd5 100644

Lines of this file are not shown. View the raw message.

tools/perf/perf.c +24 -0
index ec635b7..73d0cac 100644

Lines of this file are not shown. View the raw message.

tools/perf/perf.h +13 -0
index a5fc660..914c895 100644

Lines of this file are not shown. View the raw message.

tools/perf/scripts/python/bin/net_dropmonitor-record new file +2 -0
new file mode 100755
index 0000000..423fb81

Lines of this file are not shown. View the raw message.

tools/perf/scripts/python/bin/net_dropmonitor-report new file +4 -0
new file mode 100755
index 0000000..8d698f5

Lines of this file are not shown. View the raw message.

tools/perf/scripts/python/net_dropmonitor.py new file +72 -0

72 lines not on this page · raw message

tools/perf/util/annotate.c +9 -2
index e01af2b..bc8f477 100644

Lines of this file are not shown. View the raw message.

tools/perf/util/annotate.h +7 -2
index c2c2868..d907252 100644

Lines of this file are not shown. View the raw message.

tools/perf/util/color.c +1 -1
index e191eb9..521c38a 100644

Lines of this file are not shown. View the raw message.

tools/perf/util/evlist.c +6 -0
index 72e9f48..2f6bc89 100644

Lines of this file are not shown. View the raw message.

tools/perf/util/evlist.h +4 -0
index f349150..6be71fc 100644

Lines of this file are not shown. View the raw message.

tools/perf/util/evsel.c +1 -0
index e389815..b46f6e4 100644

Lines of this file are not shown. View the raw message.

tools/perf/util/header.c +1184 -47

1,231 lines not on this page · raw message

tools/perf/util/header.h +27 -2
index 1886256..3d5a742 100644

Lines of this file are not shown. View the raw message.

tools/perf/util/hist.c +333 -114

447 lines not on this page · raw message

tools/perf/util/hist.h +43 -18

61 lines not on this page · raw message

tools/perf/util/map.c +57 -45

102 lines not on this page · raw message

tools/perf/util/map.h +21 -21

42 lines not on this page · raw message

tools/perf/util/probe-event.c +3 -1
index 1c7bfa5..eb25900 100644

Lines of this file are not shown. View the raw message.

tools/perf/util/session.c +19 -0
index 72458d9..20e011c 100644

Lines of this file are not shown. View the raw message.

tools/perf/util/session.h +1 -0
index 974d0cb..514b06d 100644

Lines of this file are not shown. View the raw message.

tools/perf/util/sort.c +3 -1
index 1ee8f1e..16da30d 100644

Lines of this file are not shown. View the raw message.

tools/perf/util/sort.h +2 -0
index 77d0388..3f67ae3 100644

Lines of this file are not shown. View the raw message.

tools/perf/util/symbol.c +2 -1
index 40eeaf0..632b50c 100644

Lines of this file are not shown. View the raw message.

tools/perf/util/symbol.h +4 -1
index 4f377d9..29f8d74 100644

Lines of this file are not shown. View the raw message.

tools/perf/util/top.c +2 -139

141 lines not on this page · raw message

tools/perf/util/top.h +5 -34
index bfbf95b..01d1057 100644

Lines of this file are not shown. View the raw message.

tools/perf/util/trace-event-info.c +88 -24

112 lines not on this page · raw message

tools/perf/util/trace-event.h +12 -1
index f674dda..a841008 100644

Lines of this file are not shown. View the raw message.

tools/perf/util/ui/browser.c +288 -98

386 lines not on this page · raw message

tools/perf/util/ui/browser.h +7 -5
index fc63dda..a2c707d 100644

Lines of this file are not shown. View the raw message.

tools/perf/util/ui/browsers/annotate.c +167 -34

201 lines not on this page · raw message

tools/perf/util/ui/browsers/hists.c +188 -109

297 lines not on this page · raw message

tools/perf/util/ui/browsers/map.c +2 -4
index 8462bff..6905bcc 100644

Lines of this file are not shown. View the raw message.

tools/perf/util/ui/browsers/top.c deleted +0 -212

212 lines not on this page · raw message

tools/perf/util/ui/helpline.h +3 -0
index ab6028d..fdcbc02 100644

Lines of this file are not shown. View the raw message.

tools/perf/util/ui/keysyms.h new file +25 -0
new file mode 100644
index 0000000..3458b19

Lines of this file are not shown. View the raw message.

tools/perf/util/ui/libslang.h +2 -0
index 2b63e1c..4d54b64 100644

Lines of this file are not shown. View the raw message.

tools/perf/util/ui/setup.c +36 -2
index ee46d67..1e6ba06 100644

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

Part of the diff is not shown here. View the raw message.