Replace HTTP links with HTTPS ones: performance events
Subsystems (3)
PATCH 1/1 Replace HTTP links with HTTPS ones: performance events
Rationale:
Reduces attack surface on kernel devs opening the links for MITM as HTTPS traffic is much harder to manipulate.
Deterministic algorithm:
For each file:
If not .svg:
For each line:
If doesn't contain \bxmlns\b:
For each link, \bhttp://[^# \t\r\n]*(?:\w|/):
If both the HTTP and HTTPS versions return 200 OK and serve the same content:
Replace HTTP with HTTPS.
---
Continuing my work started at 93431e0607e5.
See also: git log --oneline '--author=Alexander A. Klimov <[email protected]>' v5.7..master
If there are any URLs to be removed completely or at least not HTTPSified:
Just clearly say so and I'll *undo my change*.
See also: https://lkml.org/lkml/2020/6/27/64
If there are any valid, but yet not changed URLs:
See: https://lkml.org/lkml/2020/6/26/837
If you apply the patch, please let me know.
Rationale:
I'd like not to submit patches much faster than you maintainers apply them.
arch/x86/events/intel/pt.c | 2 +- arch/x86/events/intel/pt.h | 2 +- tools/perf/Documentation/perf-data.txt | 2 +- tools/perf/Documentation/perf-list.txt | 4 ++-- tools/perf/arch/powerpc/include/dwarf-regs-table.h | 2 +- tools/perf/arch/powerpc/util/dwarf-regs.c | 2 +- tools/perf/arch/s390/include/dwarf-regs-table.h | 2 +- tools/perf/bench/futex.h | 2 +- tools/perf/bench/sched-pipe.c | 2 +- tools/perf/builtin-c2c.c | 2 +- tools/perf/builtin-trace.c | 2 +- tools/perf/scripts/python/futex-contention.py | 2 +- tools/perf/util/annotate.h | 2 +- tools/perf/util/c++/clang.cpp | 2 +- tools/perf/util/dso.h | 2 +- tools/perf/util/stat.c | 4 ++-- tools/perf/util/target.h | 2 +- 17 files changed, 19 insertions(+), 19 deletions(-)
arch/x86/events/intel/pt.c +1 -1
@@ -5,7 +5,7 @@* * Intel PT is specified in the Intel Architecture Instruction Set Extensions * Programming Reference: -* http://software.intel.com/en-us/intel-isa-extensions +* https://software.intel.com/en-us/intel-isa-extensions */ #undef DEBUG
arch/x86/events/intel/pt.h +1 -1
@@ -5,7 +5,7 @@* * Intel PT is specified in the Intel Architecture Instruction Set Extensions * Programming Reference: -* http://software.intel.com/en-us/intel-isa-extensions +* https://software.intel.com/en-us/intel-isa-extensions */ #ifndef __INTEL_PT_H__
tools/perf/Documentation/perf-data.txt +1 -1
@@ -45,4 +45,4 @@ OPTIONS for 'convert' SEE ALSO -------- linkperf:perf[1] -[1] Common Trace Format - http://www.efficios.com/ctf +[1] Common Trace Format - https://www.efficios.com/ctf
tools/perf/Documentation/perf-list.txt +2 -2
@@ -309,5 +309,5 @@ SEE ALSO -------- linkperf:perf-stat[1], linkperf:perf-top[1], linkperf:perf-record[1], -http://www.intel.com/sdm/[Intel® 64 and IA-32 Architectures Software Developer's Manual Volume 3B: System Programming Guide], -http://support.amd.com/us/Processor_TechDocs/24593_APM_v2.pdf[AMD64 Architecture Programmer’s Manual Volume 2: System Programming] +https://www.intel.com/sdm/[Intel® 64 and IA-32 Architectures Software Developer's Manual Volume 3B: System Programming Guide], +https://support.amd.com/us/Processor_TechDocs/24593_APM_v2.pdf[AMD64 Architecture Programmer’s Manual Volume 2: System Programming]
tools/perf/arch/powerpc/include/dwarf-regs-table.h +1 -1
@@ -4,7 +4,7 @@/* * Reference: -* http://refspecs.linuxfoundation.org/ELF/ppc64/PPC-elf64abi-1.9.html +* https://refspecs.linuxfoundation.org/ELF/ppc64/PPC-elf64abi-1.9.html * http://refspecs.linux-foundation.org/elf/elfspec_ppc.pdf */ #define REG_DWARFNUM_NAME (reg, idx) [idx] = "%" #reg
tools/perf/arch/powerpc/util/dwarf-regs.c +1 -1
@@ -29,7 +29,7 @@ struct pt_regs_dwarfnum {/* * Reference: -* http://refspecs.linuxfoundation.org/ELF/ppc64/PPC-elf64abi-1.9.html +* https://refspecs.linuxfoundation.org/ELF/ppc64/PPC-elf64abi-1.9.html */ static const struct pt_regs_dwarfnum regdwarfnum_table[] = {GPR_DWARFNUM_NAME (0 ),
tools/perf/arch/s390/include/dwarf-regs-table.h +1 -1
@@ -6,7 +6,7 @@/* * For reference, see DWARF register mapping: -* http://refspecs.linuxfoundation.org/ELF/zSeries/lzsabi0_s390/x1542.html +* https://refspecs.linuxfoundation.org/ELF/zSeries/lzsabi0_s390/x1542.html */ static const char *const s390_dwarf_regs[] = {"%r0" ,"%r1" ,"%r2" ,"%r3" ,"%r4" ,"%r5" ,"%r6" ,"%r7" ,
tools/perf/bench/futex.h +1 -1
@@ -2,7 +2,7 @@/* * Glibc independent futex library for testing kernel functionality. * Shamelessly stolen from Darren Hart <[email protected]> -* http://git.kernel.org/cgit/linux/kernel/git/dvhart/futextest.git/ +* https://git.kernel.org/cgit/linux/kernel/git/dvhart/futextest.git/ */ #ifndef _FUTEX_H
tools/perf/bench/sched-pipe.c +1 -1
@@ -6,7 +6,7 @@* pipe: Benchmark for pipe() * * Based on pipe-test-1m.c by Ingo Molnar <[email protected]> -* http://people.redhat.com/mingo/cfs-scheduler/tools/pipe-test-1m.c +* https://people.redhat.com/mingo/cfs-scheduler/tools/pipe-test-1m.c * Ported to perf by Hitoshi Mitake <[email protected]> */ #include <subcmd/parse-options.h>
tools/perf/builtin-c2c.c +1 -1
@@ -1,7 +1,7 @@// SPDX-License-Identifier: GPL-2.0 /* * This is rewrite of original c2c tool introduced in here: -* http://lwn.net/Articles/588866/ +* https://lwn.net/Articles/588866/ * * The original tool was changed to fit in current perf state. *
tools/perf/builtin-trace.c +1 -1
@@ -11,7 +11,7 @@* * Initially based on the 'trace' prototype by Thomas Gleixner: * -* http://lwn.net/Articles/415728/ ("Announcing a new utility: 'trace'") +* https://lwn.net/Articles/415728/ ("Announcing a new utility: 'trace'") */ #include "util/record.h"
tools/perf/scripts/python/futex-contention.py +1 -1
@@ -4,7 +4,7 @@ # # Translation of: # -# http://sourceware.org/systemtap/wiki/WSFutexContention +# https://sourceware.org/systemtap/wiki/WSFutexContention # # to perf python scripting. #
tools/perf/util/annotate.h +1 -1
@@ -365,7 +365,7 @@ enum symbol_disassemble_errno {* errno since SUS requires the errno has distinct positive values. * See 'Issue 6' in the link below. * -* http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/errno.h.html +* https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/errno.h.html */ __SYMBOL_ANNOTATE_ERRNO__START = -10000,
tools/perf/util/c++/clang.cpp +1 -1
@@ -3,7 +3,7 @@ * llvm C frontend for perf. Support dynamically compile C file * * Inspired by clang example code: - * http://llvm.org/svn/llvm-project/cfe/trunk/examples/clang-interpreter/main.cpp + * https://llvm.org/svn/llvm-project/cfe/trunk/examples/clang-interpreter/main.cpp * * Copyright (C) 2016 Wang Nan <[email protected]> * Copyright (C) 2016 Huawei Inc.
tools/perf/util/dso.h +1 -1
@@ -82,7 +82,7 @@ enum dso_load_errno {* errno since SUS requires the errno has distinct positive values. * See 'Issue 6' in the link below. * -* http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/errno.h.html +* https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/errno.h.html */ __DSO_LOAD_ERRNO__START = -10000,
tools/perf/util/stat.c +2 -2
@@ -37,13 +37,13 @@ double avg_stats(struct stats *stats) }/* -* http://en.wikipedia.org/wiki/Algorithms_for_calculating_variance +* https://en.wikipedia.org/wiki/Algorithms_for_calculating_variance * * (\Sum n_i^2) - ((\Sum n_i)^2)/n * s^2 = ------------------------------- * n - 1 * -* http://en.wikipedia.org/wiki/Stddev +* https://en.wikipedia.org/wiki/Stddev * * The std dev of the mean is related to the std dev by: *
tools/perf/util/target.h +1 -1
@@ -25,7 +25,7 @@ enum target_errno {* errno since SUS requires the errno has distinct positive values. * See 'Issue 6' in the link below. * -* http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/errno.h.html +* https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/errno.h.html */ __TARGET_ERRNO__START = -10000,
Signature · 1 line
2.27.0