aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/sysctl_net_unix.c
diff options
context:
space:
mode:
authorKan Liang <[email protected]>2025-01-17 15:19:11 +0000
committerIngo Molnar <[email protected]>2025-02-25 13:54:14 +0000
commit88ec7eedbbd21cad38707620ad6c48a4e9a87c18 (patch)
tree3db1ada398a43fbf771ca0febf20e0d1c2c48564 /net/unix/sysctl_net_unix.c
parentuprobes: Reject the shared zeropage in uprobe_write_opcode() (diff)
downloadkernel-88ec7eedbbd21cad38707620ad6c48a4e9a87c18.tar.gz
kernel-88ec7eedbbd21cad38707620ad6c48a4e9a87c18.zip
perf/x86: Fix low freqency setting issue
Perf doesn't work at low frequencies: $ perf record -e cpu_core/instructions/ppp -F 120 Error: The sys_perf_event_open() syscall returned with 22 (Invalid argument) for event (cpu_core/instructions/ppp). "dmesg | grep -i perf" may provide additional information. The limit_period() check avoids a low sampling period on a counter. It doesn't intend to limit the frequency. The check in the x86_pmu_hw_config() should be limited to non-freq mode. The attr.sample_period and attr.sample_freq are union. The attr.sample_period should not be used to indicate the frequency mode. Fixes: c46e665f0377 ("perf/x86: Add INST_RETIRED.ALL workarounds") Signed-off-by: Kan Liang <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Reviewed-by: Ravi Bangoria <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: [email protected] Link: https://lore.kernel.org/r/[email protected] Closes: https://lore.kernel.org/lkml/[email protected]/
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions