Skip to content

Commit 35b740e

Browse files
committed
Merge branch 'perf-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
* 'perf-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: (106 commits) perf kvm: Fix copy & paste error in description perf script: Kill script_spec__delete perf top: Fix a memory leak perf stat: Introduce get_ratio_color() helper perf session: Remove impossible condition check perf tools: Fix feature-bits rework fallout, remove unused variable perf script: Add generic perl handler to process events perf tools: Use for_each_set_bit() to iterate over feature flags perf tools: Unify handling of features when writing feature section perf report: Accept fifos as input file perf tools: Moving code in some files perf tools: Fix out-of-bound access to struct perf_session perf tools: Continue processing header on unknown features perf tools: Improve macros for struct feature_ops perf: builtin-record: Document and check that mmap_pages must be a power of two. perf: builtin-record: Provide advice if mmap'ing fails with EPERM. perf tools: Fix truncated annotation perf script: look up thread using tid instead of pid perf tools: Look up thread names for system wide profiling perf tools: Fix comm for processes with named threads ...
2 parents 423d091 + 9e18342 commit 35b740e

File tree

117 files changed

+5582
-3003
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

117 files changed

+5582
-3003
lines changed

Documentation/kernel-parameters.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1885,6 +1885,11 @@ bytes respectively. Such letter suffixes can also be entirely omitted.
18851885
arch_perfmon: [X86] Force use of architectural
18861886
perfmon on Intel CPUs instead of the
18871887
CPU specific event set.
1888+
timer: [X86] Force use of architectural NMI
1889+
timer mode (see also oprofile.timer
1890+
for generic hr timer mode)
1891+
[s390] Force legacy basic mode sampling
1892+
(report cpu_type "timer")
18881893

18891894
oops=panic Always panic on oopses. Default is to just kill the
18901895
process, but there is a small probability of

Documentation/trace/events.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,6 @@ And for string fields they are:
191191

192192
Currently, only exact string matches are supported.
193193

194-
Currently, the maximum number of predicates in a filter is 16.
195-
196194
5.2 Setting filters
197195
-------------------
198196

arch/Kconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ config OPROFILE_EVENT_MULTIPLEX
3030
config HAVE_OPROFILE
3131
bool
3232

33+
config OPROFILE_NMI_TIMER
34+
def_bool y
35+
depends on PERF_EVENTS && HAVE_PERF_EVENTS_NMI
36+
3337
config KPROBES
3438
bool "Kprobes"
3539
depends on MODULES

arch/s390/oprofile/hwsampler.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#include <asm/irq.h>
2323

2424
#include "hwsampler.h"
25+
#include "op_counter.h"
2526

2627
#define MAX_NUM_SDB 511
2728
#define MIN_NUM_SDB 1
@@ -896,21 +897,25 @@ static void add_samples_to_oprofile(unsigned int cpu, unsigned long *sdbt,
896897
if (sample_data_ptr->P == 1) {
897898
/* userspace sample */
898899
unsigned int pid = sample_data_ptr->prim_asn;
900+
if (!counter_config.user)
901+
goto skip_sample;
899902
rcu_read_lock();
900903
tsk = pid_task(find_vpid(pid), PIDTYPE_PID);
901904
if (tsk)
902905
regs = task_pt_regs(tsk);
903906
rcu_read_unlock();
904907
} else {
905908
/* kernelspace sample */
909+
if (!counter_config.kernel)
910+
goto skip_sample;
906911
regs = task_pt_regs(current);
907912
}
908913

909914
mutex_lock(&hws_sem);
910915
oprofile_add_ext_hw_sample(sample_data_ptr->ia, regs, 0,
911916
!sample_data_ptr->P, tsk);
912917
mutex_unlock(&hws_sem);
913-
918+
skip_sample:
914919
sample_data_ptr++;
915920
}
916921
}

0 commit comments

Comments
 (0)