Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

Pull perf fixes from Thomas Gleixner:
"A larger set of updates for perf.

Kernel:

- Handle the SBOX uncore monitoring correctly on Broadwell CPUs which
do not have SBOX.

- Store context switch out type in PERF_RECORD_SWITCH[_CPU_WIDE]. The
percentage of preempting and non-preempting context switches help
understanding the nature of workloads (CPU or IO bound) that are
running on a machine. This adds the kernel facility and userspace
changes needed to show this information in 'perf script' and 'perf
report -D' (Alexey Budankov)

- Remove a WARN_ON() in the trace/kprobes code which is pointless
because the return error code is already telling the caller what's
wrong.

- Revert a fugly workaround for clang BPF targets.

- Fix sample_max_stack maximum check and do not proceed when an error
has been detect, return them to avoid misidentifying errors (Jiri
Olsa)

- Add SPDX idenitifiers and get rid of GPL boilderplate.

Tools:

- Synchronize kernel ABI headers, v4.17-rc1 (Ingo Molnar)

- Support MAP_FIXED_NOREPLACE, noticed when updating the
tools/include/ copies (Arnaldo Carvalho de Melo)

- Add '\n' at the end of parse-options error messages (Ravi Bangoria)

- Add s390 support for detailed/verbose PMU event description (Thomas
Richter)

- perf annotate fixes and improvements:

* Allow showing offsets in more than just jump targets, use the
new 'O' hotkey in the TUI, config ~/.perfconfig
annotate.offset_level for it and for --stdio2 (Arnaldo Carvalho
de Melo)

* Use the resolved variable names from objdump disassembled lines
to make them more compact, just like was already done for some
instructions, like "mov", this eventually will be done more
generally, but lets now add some more to the existing mechanism
(Arnaldo Carvalho de Melo)

- perf record fixes:

* Change warning for missing topology sysfs entry to debug, as not
all architectures have those files, s390 being one of those
(Thomas Richter)

* Remove old error messages about things that unlikely to be the
root cause in modern systems (Andi Kleen)

- perf sched fixes:

* Fix -g/--call-graph documentation (Takuya Yamamoto)

- perf stat:

* Enable 1ms interval for printing event counters values in
(Alexey Budankov)

- perf test fixes:

* Run dwarf unwind on arm32 (Kim Phillips)

* Remove unused ptrace.h include from LLVM test, sidesteping older
clang's lack of support for some asm constructs (Arnaldo
Carvalho de Melo)

* Fixup BPF test using epoll_pwait syscall function probe, to cope
with the syscall routines renames performed in this development
cycle (Arnaldo Carvalho de Melo)

- perf version fixes:

* Do not print info about HAVE_LIBAUDIT_SUPPORT in 'perf version
--build-options' when HAVE_SYSCALL_TABLE_SUPPORT is true, as
libaudit won't be used in that case, print info about
syscall_table support instead (Jin Yao)

- Build system fixes:

* Use HAVE_..._SUPPORT used consistently (Jin Yao)

* Restore READ_ONCE() C++ compatibility in tools/include (Mark
Rutland)

* Give hints about package names needed to build jvmti (Arnaldo
Carvalho de Melo)"

* 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: (37 commits)
perf/x86/intel/uncore: Fix SBOX support for Broadwell CPUs
perf/x86/intel/uncore: Revert "Remove SBOX support for Broadwell server"
coresight: Move to SPDX identifier
perf test BPF: Fixup BPF test using epoll_pwait syscall function probe
perf tests mmap: Show which tracepoint is failing
perf tools: Add '\n' at the end of parse-options error messages
perf record: Remove suggestion to enable APIC
perf record: Remove misleading error suggestion
perf hists browser: Clarify top/report browser help
perf mem: Allow all record/report options
perf trace: Support MAP_FIXED_NOREPLACE
perf: Remove superfluous allocation error check
perf: Fix sample_max_stack maximum check
perf: Return proper values for user stack errors
perf list: Add s390 support for detailed/verbose PMU event description
perf script: Extend misc field decoding with switch out event type
perf report: Extend raw dump (-D) out with switch out event type
perf/core: Store context switch out type in PERF_RECORD_SWITCH[_CPU_WIDE]
tools/headers: Synchronize kernel ABI headers, v4.17-rc1
trace_kprobe: Remove warning message "Could not insert probe at..."
...

+759 -545
+37
arch/x86/events/intel/uncore_snbep.c
··· 3028 3028 .format_group = &hswep_uncore_cbox_format_group, 3029 3029 }; 3030 3030 3031 + static struct intel_uncore_type bdx_uncore_sbox = { 3032 + .name = "sbox", 3033 + .num_counters = 4, 3034 + .num_boxes = 4, 3035 + .perf_ctr_bits = 48, 3036 + .event_ctl = HSWEP_S0_MSR_PMON_CTL0, 3037 + .perf_ctr = HSWEP_S0_MSR_PMON_CTR0, 3038 + .event_mask = HSWEP_S_MSR_PMON_RAW_EVENT_MASK, 3039 + .box_ctl = HSWEP_S0_MSR_PMON_BOX_CTL, 3040 + .msr_offset = HSWEP_SBOX_MSR_OFFSET, 3041 + .ops = &hswep_uncore_sbox_msr_ops, 3042 + .format_group = &hswep_uncore_sbox_format_group, 3043 + }; 3044 + 3045 + #define BDX_MSR_UNCORE_SBOX 3 3046 + 3031 3047 static struct intel_uncore_type *bdx_msr_uncores[] = { 3032 3048 &bdx_uncore_ubox, 3033 3049 &bdx_uncore_cbox, 3034 3050 &hswep_uncore_pcu, 3051 + &bdx_uncore_sbox, 3035 3052 NULL, 3036 3053 }; 3037 3054 ··· 3060 3043 3061 3044 void bdx_uncore_cpu_init(void) 3062 3045 { 3046 + int pkg = topology_phys_to_logical_pkg(0); 3047 + 3063 3048 if (bdx_uncore_cbox.num_boxes > boot_cpu_data.x86_max_cores) 3064 3049 bdx_uncore_cbox.num_boxes = boot_cpu_data.x86_max_cores; 3065 3050 uncore_msr_uncores = bdx_msr_uncores; 3066 3051 3052 + /* BDX-DE doesn't have SBOX */ 3053 + if (boot_cpu_data.x86_model == 86) { 3054 + uncore_msr_uncores[BDX_MSR_UNCORE_SBOX] = NULL; 3055 + /* Detect systems with no SBOXes */ 3056 + } else if (uncore_extra_pci_dev[pkg].dev[HSWEP_PCI_PCU_3]) { 3057 + struct pci_dev *pdev; 3058 + u32 capid4; 3059 + 3060 + pdev = uncore_extra_pci_dev[pkg].dev[HSWEP_PCI_PCU_3]; 3061 + pci_read_config_dword(pdev, 0x94, &capid4); 3062 + if (((capid4 >> 6) & 0x3) == 0) 3063 + bdx_msr_uncores[BDX_MSR_UNCORE_SBOX] = NULL; 3064 + } 3067 3065 hswep_uncore_pcu.constraints = bdx_uncore_pcu_constraints; 3068 3066 } 3069 3067 ··· 3295 3263 { /* QPI Port 2 filter */ 3296 3264 PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x6f46), 3297 3265 .driver_data = UNCORE_PCI_DEV_DATA(UNCORE_EXTRA_PCI_DEV, 2), 3266 + }, 3267 + { /* PCU.3 (for Capability registers) */ 3268 + PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x6fc0), 3269 + .driver_data = UNCORE_PCI_DEV_DATA(UNCORE_EXTRA_PCI_DEV, 3270 + HSWEP_PCI_PCU_3), 3298 3271 }, 3299 3272 { /* end: all zeroes */ } 3300 3273 };
-2
arch/x86/include/asm/asm.h
··· 136 136 #endif 137 137 138 138 #ifndef __ASSEMBLY__ 139 - #ifndef __BPF__ 140 139 /* 141 140 * This output constraint should be used for any inline asm which has a "call" 142 141 * instruction. Otherwise the asm may be inserted before the frame pointer ··· 144 145 */ 145 146 register unsigned long current_stack_pointer asm(_ASM_SP); 146 147 #define ASM_CALL_CONSTRAINT "+r" (current_stack_pointer) 147 - #endif 148 148 #endif 149 149 150 150 #endif /* _ASM_X86_ASM_H */
+1 -12
include/linux/coresight-pmu.h
··· 1 + /* SPDX-License-Identifier: GPL-2.0 */ 1 2 /* 2 3 * Copyright(C) 2015 Linaro Limited. All rights reserved. 3 4 * Author: Mathieu Poirier <mathieu.poirier@linaro.org> 4 - * 5 - * This program is free software; you can redistribute it and/or modify it 6 - * under the terms of the GNU General Public License version 2 as published by 7 - * the Free Software Foundation. 8 - * 9 - * This program is distributed in the hope that it will be useful, but WITHOUT 10 - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 12 - * more details. 13 - * 14 - * You should have received a copy of the GNU General Public License along with 15 - * this program. If not, see <http://www.gnu.org/licenses/>. 16 5 */ 17 6 18 7 #ifndef _LINUX_CORESIGHT_PMU_H
+15 -3
include/uapi/linux/perf_event.h
··· 650 650 #define PERF_RECORD_MISC_COMM_EXEC (1 << 13) 651 651 #define PERF_RECORD_MISC_SWITCH_OUT (1 << 13) 652 652 /* 653 - * Indicates that the content of PERF_SAMPLE_IP points to 654 - * the actual instruction that triggered the event. See also 655 - * perf_event_attr::precise_ip. 653 + * These PERF_RECORD_MISC_* flags below are safely reused 654 + * for the following events: 655 + * 656 + * PERF_RECORD_MISC_EXACT_IP - PERF_RECORD_SAMPLE of precise events 657 + * PERF_RECORD_MISC_SWITCH_OUT_PREEMPT - PERF_RECORD_SWITCH* events 658 + * 659 + * 660 + * PERF_RECORD_MISC_EXACT_IP: 661 + * Indicates that the content of PERF_SAMPLE_IP points to 662 + * the actual instruction that triggered the event. See also 663 + * perf_event_attr::precise_ip. 664 + * 665 + * PERF_RECORD_MISC_SWITCH_OUT_PREEMPT: 666 + * Indicates that thread was preempted in TASK_RUNNING state. 656 667 */ 657 668 #define PERF_RECORD_MISC_EXACT_IP (1 << 14) 669 + #define PERF_RECORD_MISC_SWITCH_OUT_PREEMPT (1 << 14) 658 670 /* 659 671 * Reserve the last bit to indicate some extended misc field 660 672 */
+11 -14
kernel/events/callchain.c
··· 119 119 goto exit; 120 120 } 121 121 122 - if (count > 1) { 123 - /* If the allocation failed, give up */ 124 - if (!callchain_cpus_entries) 125 - err = -ENOMEM; 126 - /* 127 - * If requesting per event more than the global cap, 128 - * return a different error to help userspace figure 129 - * this out. 130 - * 131 - * And also do it here so that we have &callchain_mutex held. 132 - */ 133 - if (event_max_stack > sysctl_perf_event_max_stack) 134 - err = -EOVERFLOW; 122 + /* 123 + * If requesting per event more than the global cap, 124 + * return a different error to help userspace figure 125 + * this out. 126 + * 127 + * And also do it here so that we have &callchain_mutex held. 128 + */ 129 + if (event_max_stack > sysctl_perf_event_max_stack) { 130 + err = -EOVERFLOW; 135 131 goto exit; 136 132 } 137 133 138 - err = alloc_callchain_buffers(); 134 + if (count == 1) 135 + err = alloc_callchain_buffers(); 139 136 exit: 140 137 if (err) 141 138 atomic_dec(&nr_callchain_events);
+6 -2
kernel/events/core.c
··· 7587 7587 }, 7588 7588 }; 7589 7589 7590 + if (!sched_in && task->state == TASK_RUNNING) 7591 + switch_event.event_id.header.misc |= 7592 + PERF_RECORD_MISC_SWITCH_OUT_PREEMPT; 7593 + 7590 7594 perf_iterate_sb(perf_event_switch_output, 7591 7595 &switch_event, 7592 7596 NULL); ··· 10209 10205 * __u16 sample size limit. 10210 10206 */ 10211 10207 if (attr->sample_stack_user >= USHRT_MAX) 10212 - ret = -EINVAL; 10208 + return -EINVAL; 10213 10209 else if (!IS_ALIGNED(attr->sample_stack_user, sizeof(u64))) 10214 - ret = -EINVAL; 10210 + return -EINVAL; 10215 10211 } 10216 10212 10217 10213 if (!attr->sample_max_stack)
-2
kernel/trace/trace_kprobe.c
··· 512 512 if (ret == 0) 513 513 tk->tp.flags |= TP_FLAG_REGISTERED; 514 514 else { 515 - pr_warn("Could not insert probe at %s+%lu: %d\n", 516 - trace_kprobe_symbol(tk), trace_kprobe_offset(tk), ret); 517 515 if (ret == -ENOENT && trace_kprobe_is_on_module(tk)) { 518 516 pr_warn("This probe might be able to register after target module is loaded. Continue.\n"); 519 517 ret = 0;
+9
tools/arch/arm/include/uapi/asm/kvm.h
··· 135 135 #define KVM_REG_ARM_CRM_SHIFT 7 136 136 #define KVM_REG_ARM_32_CRN_MASK 0x0000000000007800 137 137 #define KVM_REG_ARM_32_CRN_SHIFT 11 138 + /* 139 + * For KVM currently all guest registers are nonsecure, but we reserve a bit 140 + * in the encoding to distinguish secure from nonsecure for AArch32 system 141 + * registers that are banked by security. This is 1 for the secure banked 142 + * register, and 0 for the nonsecure banked register or if the register is 143 + * not banked by security. 144 + */ 145 + #define KVM_REG_ARM_SECURE_MASK 0x0000000010000000 146 + #define KVM_REG_ARM_SECURE_SHIFT 28 138 147 139 148 #define ARM_CP15_REG_SHIFT_MASK(x,n) \ 140 149 (((x) << KVM_REG_ARM_ ## n ## _SHIFT) & KVM_REG_ARM_ ## n ## _MASK)
+1 -7
tools/arch/x86/include/asm/required-features.h
··· 53 53 # define NEED_MOVBE 0 54 54 #endif 55 55 56 - #ifdef CONFIG_X86_5LEVEL 57 - # define NEED_LA57 (1<<(X86_FEATURE_LA57 & 31)) 58 - #else 59 - # define NEED_LA57 0 60 - #endif 61 - 62 56 #ifdef CONFIG_X86_64 63 57 #ifdef CONFIG_PARAVIRT 64 58 /* Paravirtualized systems may not have PSE or PGE available */ ··· 98 104 #define REQUIRED_MASK13 0 99 105 #define REQUIRED_MASK14 0 100 106 #define REQUIRED_MASK15 0 101 - #define REQUIRED_MASK16 (NEED_LA57) 107 + #define REQUIRED_MASK16 0 102 108 #define REQUIRED_MASK17 0 103 109 #define REQUIRED_MASK18 0 104 110 #define REQUIRED_MASK_CHECK BUILD_BUG_ON_ZERO(NCAPINTS != 19)
+18 -1
tools/arch/x86/include/uapi/asm/kvm.h
··· 354 354 __u64 padding[16]; 355 355 }; 356 356 357 - /* definition of registers in kvm_run */ 357 + #define KVM_SYNC_X86_REGS (1UL << 0) 358 + #define KVM_SYNC_X86_SREGS (1UL << 1) 359 + #define KVM_SYNC_X86_EVENTS (1UL << 2) 360 + 361 + #define KVM_SYNC_X86_VALID_FIELDS \ 362 + (KVM_SYNC_X86_REGS| \ 363 + KVM_SYNC_X86_SREGS| \ 364 + KVM_SYNC_X86_EVENTS) 365 + 366 + /* kvm_sync_regs struct included by kvm_run struct */ 358 367 struct kvm_sync_regs { 368 + /* Members of this structure are potentially malicious. 369 + * Care must be taken by code reading, esp. interpreting, 370 + * data fields from them inside KVM to prevent TOCTOU and 371 + * double-fetch types of vulnerabilities. 372 + */ 373 + struct kvm_regs regs; 374 + struct kvm_sregs sregs; 375 + struct kvm_vcpu_events events; 359 376 }; 360 377 361 378 #define KVM_X86_QUIRK_LINT0_REENABLED (1 << 0)
+14 -4
tools/include/linux/compiler.h
··· 151 151 * required ordering. 152 152 */ 153 153 154 - #define READ_ONCE(x) \ 155 - ({ union { typeof(x) __val; char __c[1]; } __u; __read_once_size(&(x), __u.__c, sizeof(x)); __u.__val; }) 154 + #define READ_ONCE(x) \ 155 + ({ \ 156 + union { typeof(x) __val; char __c[1]; } __u = \ 157 + { .__c = { 0 } }; \ 158 + __read_once_size(&(x), __u.__c, sizeof(x)); \ 159 + __u.__val; \ 160 + }) 156 161 157 - #define WRITE_ONCE(x, val) \ 158 - ({ union { typeof(x) __val; char __c[1]; } __u = { .__val = (val) }; __write_once_size(&(x), __u.__c, sizeof(x)); __u.__val; }) 162 + #define WRITE_ONCE(x, val) \ 163 + ({ \ 164 + union { typeof(x) __val; char __c[1]; } __u = \ 165 + { .__val = (val) }; \ 166 + __write_once_size(&(x), __u.__c, sizeof(x)); \ 167 + __u.__val; \ 168 + }) 159 169 160 170 161 171 #ifndef __fallthrough
+1 -12
tools/include/linux/coresight-pmu.h
··· 1 + /* SPDX-License-Identifier: GPL-2.0 */ 1 2 /* 2 3 * Copyright(C) 2015 Linaro Limited. All rights reserved. 3 4 * Author: Mathieu Poirier <mathieu.poirier@linaro.org> 4 - * 5 - * This program is free software; you can redistribute it and/or modify it 6 - * under the terms of the GNU General Public License version 2 as published by 7 - * the Free Software Foundation. 8 - * 9 - * This program is distributed in the hope that it will be useful, but WITHOUT 10 - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 12 - * more details. 13 - * 14 - * You should have received a copy of the GNU General Public License along with 15 - * this program. If not, see <http://www.gnu.org/licenses/>. 16 5 */ 17 6 18 7 #ifndef _LINUX_CORESIGHT_PMU_H
+3
tools/include/uapi/asm-generic/mman-common.h
··· 27 27 # define MAP_UNINITIALIZED 0x0 /* Don't support this flag */ 28 28 #endif 29 29 30 + /* 0x0100 - 0x80000 flags are defined in asm-generic/mman.h */ 31 + #define MAP_FIXED_NOREPLACE 0x100000 /* MAP_FIXED which doesn't unmap underlying mapping */ 32 + 30 33 /* 31 34 * Flags for mlock 32 35 */
+1
tools/include/uapi/linux/bpf.h
··· 864 864 /* BPF_FUNC_skb_set_tunnel_key flags. */ 865 865 #define BPF_F_ZERO_CSUM_TX (1ULL << 1) 866 866 #define BPF_F_DONT_FRAGMENT (1ULL << 2) 867 + #define BPF_F_SEQ_NUMBER (1ULL << 3) 867 868 868 869 /* BPF_FUNC_perf_event_output, BPF_FUNC_perf_event_read and 869 870 * BPF_FUNC_perf_event_read_value flags.
+39
tools/include/uapi/linux/if_link.h
··· 941 941 IFLA_EVENT_BONDING_OPTIONS, /* change in bonding options */ 942 942 }; 943 943 944 + /* tun section */ 945 + 946 + enum { 947 + IFLA_TUN_UNSPEC, 948 + IFLA_TUN_OWNER, 949 + IFLA_TUN_GROUP, 950 + IFLA_TUN_TYPE, 951 + IFLA_TUN_PI, 952 + IFLA_TUN_VNET_HDR, 953 + IFLA_TUN_PERSIST, 954 + IFLA_TUN_MULTI_QUEUE, 955 + IFLA_TUN_NUM_QUEUES, 956 + IFLA_TUN_NUM_DISABLED_QUEUES, 957 + __IFLA_TUN_MAX, 958 + }; 959 + 960 + #define IFLA_TUN_MAX (__IFLA_TUN_MAX - 1) 961 + 962 + /* rmnet section */ 963 + 964 + #define RMNET_FLAGS_INGRESS_DEAGGREGATION (1U << 0) 965 + #define RMNET_FLAGS_INGRESS_MAP_COMMANDS (1U << 1) 966 + #define RMNET_FLAGS_INGRESS_MAP_CKSUMV4 (1U << 2) 967 + #define RMNET_FLAGS_EGRESS_MAP_CKSUMV4 (1U << 3) 968 + 969 + enum { 970 + IFLA_RMNET_UNSPEC, 971 + IFLA_RMNET_MUX_ID, 972 + IFLA_RMNET_FLAGS, 973 + __IFLA_RMNET_MAX, 974 + }; 975 + 976 + #define IFLA_RMNET_MAX (__IFLA_RMNET_MAX - 1) 977 + 978 + struct ifla_rmnet_flags { 979 + __u32 flags; 980 + __u32 mask; 981 + }; 982 + 944 983 #endif /* _UAPI_LINUX_IF_LINK_H */
+20 -1
tools/include/uapi/linux/kvm.h
··· 396 396 char padding[256]; 397 397 }; 398 398 399 + /* 2048 is the size of the char array used to bound/pad the size 400 + * of the union that holds sync regs. 401 + */ 402 + #define SYNC_REGS_SIZE_BYTES 2048 399 403 /* 400 404 * shared registers between kvm and userspace. 401 405 * kvm_valid_regs specifies the register classes set by the host ··· 411 407 __u64 kvm_dirty_regs; 412 408 union { 413 409 struct kvm_sync_regs regs; 414 - char padding[2048]; 410 + char padding[SYNC_REGS_SIZE_BYTES]; 415 411 } s; 416 412 }; 417 413 ··· 940 936 #define KVM_CAP_PPC_GET_CPU_CHAR 151 941 937 #define KVM_CAP_S390_BPB 152 942 938 #define KVM_CAP_GET_MSR_FEATURES 153 939 + #define KVM_CAP_HYPERV_EVENTFD 154 943 940 944 941 #ifdef KVM_CAP_IRQ_ROUTING 945 942 ··· 1380 1375 #define KVM_MEMORY_ENCRYPT_REG_REGION _IOR(KVMIO, 0xbb, struct kvm_enc_region) 1381 1376 #define KVM_MEMORY_ENCRYPT_UNREG_REGION _IOR(KVMIO, 0xbc, struct kvm_enc_region) 1382 1377 1378 + /* Available with KVM_CAP_HYPERV_EVENTFD */ 1379 + #define KVM_HYPERV_EVENTFD _IOW(KVMIO, 0xbd, struct kvm_hyperv_eventfd) 1380 + 1381 + 1383 1382 /* Secure Encrypted Virtualization command */ 1384 1383 enum sev_cmd_id { 1385 1384 /* Guest initialization commands */ ··· 1523 1514 #define KVM_ARM_DEV_EL1_VTIMER (1 << 0) 1524 1515 #define KVM_ARM_DEV_EL1_PTIMER (1 << 1) 1525 1516 #define KVM_ARM_DEV_PMU (1 << 2) 1517 + 1518 + struct kvm_hyperv_eventfd { 1519 + __u32 conn_id; 1520 + __s32 fd; 1521 + __u32 flags; 1522 + __u32 padding[3]; 1523 + }; 1524 + 1525 + #define KVM_HYPERV_CONN_ID_MASK 0x00ffffff 1526 + #define KVM_HYPERV_EVENTFD_DEASSIGN (1 << 0) 1526 1527 1527 1528 #endif /* __LINUX_KVM_H */
+15 -3
tools/include/uapi/linux/perf_event.h
··· 650 650 #define PERF_RECORD_MISC_COMM_EXEC (1 << 13) 651 651 #define PERF_RECORD_MISC_SWITCH_OUT (1 << 13) 652 652 /* 653 - * Indicates that the content of PERF_SAMPLE_IP points to 654 - * the actual instruction that triggered the event. See also 655 - * perf_event_attr::precise_ip. 653 + * These PERF_RECORD_MISC_* flags below are safely reused 654 + * for the following events: 655 + * 656 + * PERF_RECORD_MISC_EXACT_IP - PERF_RECORD_SAMPLE of precise events 657 + * PERF_RECORD_MISC_SWITCH_OUT_PREEMPT - PERF_RECORD_SWITCH* events 658 + * 659 + * 660 + * PERF_RECORD_MISC_EXACT_IP: 661 + * Indicates that the content of PERF_SAMPLE_IP points to 662 + * the actual instruction that triggered the event. See also 663 + * perf_event_attr::precise_ip. 664 + * 665 + * PERF_RECORD_MISC_SWITCH_OUT_PREEMPT: 666 + * Indicates that thread was preempted in TASK_RUNNING state. 656 667 */ 657 668 #define PERF_RECORD_MISC_EXACT_IP (1 << 14) 669 + #define PERF_RECORD_MISC_SWITCH_OUT_PREEMPT (1 << 14) 658 670 /* 659 671 * Reserve the last bit to indicate some extended misc field 660 672 */
+1
tools/include/uapi/sound/asound.h
··· 242 242 #define SNDRV_PCM_FORMAT_DSD_U16_BE ((__force snd_pcm_format_t) 51) /* DSD, 2-byte samples DSD (x16), big endian */ 243 243 #define SNDRV_PCM_FORMAT_DSD_U32_BE ((__force snd_pcm_format_t) 52) /* DSD, 4-byte samples DSD (x32), big endian */ 244 244 #define SNDRV_PCM_FORMAT_LAST SNDRV_PCM_FORMAT_DSD_U32_BE 245 + #define SNDRV_PCM_FORMAT_FIRST SNDRV_PCM_FORMAT_S8 245 246 246 247 #ifdef SNDRV_LITTLE_ENDIAN 247 248 #define SNDRV_PCM_FORMAT_S16 SNDRV_PCM_FORMAT_S16_LE
+3 -3
tools/lib/subcmd/parse-options.c
··· 433 433 434 434 if (ambiguous_option) { 435 435 fprintf(stderr, 436 - " Error: Ambiguous option: %s (could be --%s%s or --%s%s)", 436 + " Error: Ambiguous option: %s (could be --%s%s or --%s%s)\n", 437 437 arg, 438 438 (ambiguous_flags & OPT_UNSET) ? "no-" : "", 439 439 ambiguous_option->long_name, ··· 458 458 return; 459 459 460 460 if (strstarts(arg, "no-")) { 461 - fprintf(stderr, " Error: did you mean `--%s` (with two dashes ?)", arg); 461 + fprintf(stderr, " Error: did you mean `--%s` (with two dashes ?)\n", arg); 462 462 exit(129); 463 463 } 464 464 ··· 466 466 if (!options->long_name) 467 467 continue; 468 468 if (strstarts(options->long_name, arg)) { 469 - fprintf(stderr, " Error: did you mean `--%s` (with two dashes ?)", arg); 469 + fprintf(stderr, " Error: did you mean `--%s` (with two dashes ?)\n", arg); 470 470 exit(129); 471 471 } 472 472 }
+5
tools/perf/Documentation/perf-config.txt
··· 334 334 335 335 99.93 │ mov %eax,%eax 336 336 337 + annotate.offset_level:: 338 + Default is '1', meaning just jump targets will have offsets show right beside 339 + the instruction. When set to '2' 'call' instructions will also have its offsets 340 + shown, 3 or higher will show offsets for all instructions. 341 + 337 342 hist.*:: 338 343 hist.percentage:: 339 344 This option control the way to calculate overhead of filtered entries -
+3
tools/perf/Documentation/perf-mem.txt
··· 67 67 --phys-data:: 68 68 Record/Report sample physical addresses 69 69 70 + In addition, for report all perf report options are valid, and for record 71 + all perf record options. 72 + 70 73 SEE ALSO 71 74 -------- 72 75 linkperf:perf-record[1], linkperf:perf-report[1]
+2 -2
tools/perf/Documentation/perf-sched.txt
··· 104 104 kallsyms pathname 105 105 106 106 -g:: 107 - --no-call-graph:: 108 - Do not display call chains if present. 107 + --call-graph:: 108 + Display call chains if present (default on). 109 109 110 110 --max-stack:: 111 111 Maximum number of functions to display in backtrace, default 5.
+9 -8
tools/perf/Documentation/perf-script.txt
··· 228 228 For sample events it's possible to display misc field with -F +misc option, 229 229 following letters are displayed for each bit: 230 230 231 - PERF_RECORD_MISC_KERNEL K 232 - PERF_RECORD_MISC_USER U 233 - PERF_RECORD_MISC_HYPERVISOR H 234 - PERF_RECORD_MISC_GUEST_KERNEL G 235 - PERF_RECORD_MISC_GUEST_USER g 236 - PERF_RECORD_MISC_MMAP_DATA* M 237 - PERF_RECORD_MISC_COMM_EXEC E 238 - PERF_RECORD_MISC_SWITCH_OUT S 231 + PERF_RECORD_MISC_KERNEL K 232 + PERF_RECORD_MISC_USER U 233 + PERF_RECORD_MISC_HYPERVISOR H 234 + PERF_RECORD_MISC_GUEST_KERNEL G 235 + PERF_RECORD_MISC_GUEST_USER g 236 + PERF_RECORD_MISC_MMAP_DATA* M 237 + PERF_RECORD_MISC_COMM_EXEC E 238 + PERF_RECORD_MISC_SWITCH_OUT S 239 + PERF_RECORD_MISC_SWITCH_OUT_PREEMPT Sp 239 240 240 241 $ perf script -F +misc ... 241 242 sched-messaging 1414 K 28690.636582: 4590 cycles ...
+1 -1
tools/perf/Documentation/perf-stat.txt
··· 153 153 154 154 -I msecs:: 155 155 --interval-print msecs:: 156 - Print count deltas every N milliseconds (minimum: 10ms) 156 + Print count deltas every N milliseconds (minimum: 1ms) 157 157 The overhead percentage could be high in some cases, for instance with small, sub 100ms intervals. Use with caution. 158 158 example: 'perf stat -I 1000 -e cycles -a sleep 5' 159 159
+2 -2
tools/perf/Makefile.config
··· 68 68 endif 69 69 70 70 ifneq ($(NO_SYSCALL_TABLE),1) 71 - CFLAGS += -DHAVE_SYSCALL_TABLE 71 + CFLAGS += -DHAVE_SYSCALL_TABLE_SUPPORT 72 72 endif 73 73 74 74 # So far there's only x86 and arm libdw unwind support merged in perf. ··· 847 847 ifeq ($(feature-jvmti), 1) 848 848 $(call detected_var,JDIR) 849 849 else 850 - $(warning No openjdk development package found, please install JDK package) 850 + $(warning No openjdk development package found, please install JDK package, e.g. openjdk-8-jdk, java-1.8.0-openjdk-devel) 851 851 NO_JVMTI := 1 852 852 endif 853 853 endif
+12
tools/perf/arch/arm/include/arch-tests.h
··· 1 + /* SPDX-License-Identifier: GPL-2.0 */ 2 + #ifndef ARCH_TESTS_H 3 + #define ARCH_TESTS_H 4 + 5 + #ifdef HAVE_DWARF_UNWIND_SUPPORT 6 + struct thread; 7 + struct perf_sample; 8 + #endif 9 + 10 + extern struct test arch_tests[]; 11 + 12 + #endif
+2
tools/perf/arch/arm/tests/Build
··· 1 1 libperf-y += regs_load.o 2 2 libperf-y += dwarf-unwind.o 3 + 4 + libperf-y += arch-tests.o
+16
tools/perf/arch/arm/tests/arch-tests.c
··· 1 + // SPDX-License-Identifier: GPL-2.0 2 + #include <string.h> 3 + #include "tests/tests.h" 4 + #include "arch-tests.h" 5 + 6 + struct test arch_tests[] = { 7 + #ifdef HAVE_DWARF_UNWIND_SUPPORT 8 + { 9 + .desc = "DWARF unwind", 10 + .func = test__dwarf_unwind, 11 + }, 12 + #endif 13 + { 14 + .func = NULL, 15 + }, 16 + };
+1 -12
tools/perf/arch/arm/util/auxtrace.c
··· 1 + // SPDX-License-Identifier: GPL-2.0 1 2 /* 2 3 * Copyright(C) 2015 Linaro Limited. All rights reserved. 3 4 * Author: Mathieu Poirier <mathieu.poirier@linaro.org> 4 - * 5 - * This program is free software; you can redistribute it and/or modify it 6 - * under the terms of the GNU General Public License version 2 as published by 7 - * the Free Software Foundation. 8 - * 9 - * This program is distributed in the hope that it will be useful, but WITHOUT 10 - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 12 - * more details. 13 - * 14 - * You should have received a copy of the GNU General Public License along with 15 - * this program. If not, see <http://www.gnu.org/licenses/>. 16 5 */ 17 6 18 7 #include <stdbool.h>
+1 -12
tools/perf/arch/arm/util/cs-etm.c
··· 1 + // SPDX-License-Identifier: GPL-2.0 1 2 /* 2 3 * Copyright(C) 2015 Linaro Limited. All rights reserved. 3 4 * Author: Mathieu Poirier <mathieu.poirier@linaro.org> 4 - * 5 - * This program is free software; you can redistribute it and/or modify it 6 - * under the terms of the GNU General Public License version 2 as published by 7 - * the Free Software Foundation. 8 - * 9 - * This program is distributed in the hope that it will be useful, but WITHOUT 10 - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 12 - * more details. 13 - * 14 - * You should have received a copy of the GNU General Public License along with 15 - * this program. If not, see <http://www.gnu.org/licenses/>. 16 5 */ 17 6 18 7 #include <api/fs/fs.h>
+1 -12
tools/perf/arch/arm/util/cs-etm.h
··· 1 + /* SPDX-License-Identifier: GPL-2.0 */ 1 2 /* 2 3 * Copyright(C) 2015 Linaro Limited. All rights reserved. 3 4 * Author: Mathieu Poirier <mathieu.poirier@linaro.org> 4 - * 5 - * This program is free software; you can redistribute it and/or modify it 6 - * under the terms of the GNU General Public License version 2 as published by 7 - * the Free Software Foundation. 8 - * 9 - * This program is distributed in the hope that it will be useful, but WITHOUT 10 - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 12 - * more details. 13 - * 14 - * You should have received a copy of the GNU General Public License along with 15 - * this program. If not, see <http://www.gnu.org/licenses/>. 16 5 */ 17 6 18 7 #ifndef INCLUDE__PERF_CS_ETM_H__
+1 -12
tools/perf/arch/arm/util/pmu.c
··· 1 + // SPDX-License-Identifier: GPL-2.0 1 2 /* 2 3 * Copyright(C) 2015 Linaro Limited. All rights reserved. 3 4 * Author: Mathieu Poirier <mathieu.poirier@linaro.org> 4 - * 5 - * This program is free software; you can redistribute it and/or modify it 6 - * under the terms of the GNU General Public License version 2 as published by 7 - * the Free Software Foundation. 8 - * 9 - * This program is distributed in the hope that it will be useful, but WITHOUT 10 - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 12 - * more details. 13 - * 14 - * You should have received a copy of the GNU General Public License along with 15 - * this program. If not, see <http://www.gnu.org/licenses/>. 16 5 */ 17 6 18 7 #include <string.h>
+1 -1
tools/perf/arch/x86/Makefile
··· 21 21 $(header): $(sys)/syscall_64.tbl $(systbl) 22 22 @(test -d ../../kernel -a -d ../../tools -a -d ../perf && ( \ 23 23 (diff -B arch/x86/entry/syscalls/syscall_64.tbl ../../arch/x86/entry/syscalls/syscall_64.tbl >/dev/null) \ 24 - || echo "Warning: Kernel ABI header at 'tools/arch/x86/entry/syscalls/syscall_64.tbl' differs from latest version at 'arch/x86/entry/syscalls/syscall_64.tbl'" >&2 )) || true 24 + || echo "Warning: Kernel ABI header at 'tools/perf/arch/x86/entry/syscalls/syscall_64.tbl' differs from latest version at 'arch/x86/entry/syscalls/syscall_64.tbl'" >&2 )) || true 25 25 $(Q)$(SHELL) '$(systbl)' $(sys)/syscall_64.tbl 'x86_64' > $@ 26 26 27 27 clean::
+66 -1
tools/perf/arch/x86/annotate/instructions.c
··· 1 1 // SPDX-License-Identifier: GPL-2.0 2 2 static struct ins x86__instructions[] = { 3 + { .name = "adc", .ops = &mov_ops, }, 4 + { .name = "adcb", .ops = &mov_ops, }, 5 + { .name = "adcl", .ops = &mov_ops, }, 3 6 { .name = "add", .ops = &mov_ops, }, 4 7 { .name = "addl", .ops = &mov_ops, }, 5 8 { .name = "addq", .ops = &mov_ops, }, 9 + { .name = "addsd", .ops = &mov_ops, }, 6 10 { .name = "addw", .ops = &mov_ops, }, 7 11 { .name = "and", .ops = &mov_ops, }, 12 + { .name = "andb", .ops = &mov_ops, }, 13 + { .name = "andl", .ops = &mov_ops, }, 14 + { .name = "andpd", .ops = &mov_ops, }, 15 + { .name = "andps", .ops = &mov_ops, }, 16 + { .name = "andq", .ops = &mov_ops, }, 17 + { .name = "andw", .ops = &mov_ops, }, 18 + { .name = "bsr", .ops = &mov_ops, }, 19 + { .name = "bt", .ops = &mov_ops, }, 20 + { .name = "btr", .ops = &mov_ops, }, 8 21 { .name = "bts", .ops = &mov_ops, }, 22 + { .name = "btsq", .ops = &mov_ops, }, 9 23 { .name = "call", .ops = &call_ops, }, 10 24 { .name = "callq", .ops = &call_ops, }, 25 + { .name = "cmovbe", .ops = &mov_ops, }, 26 + { .name = "cmove", .ops = &mov_ops, }, 27 + { .name = "cmovae", .ops = &mov_ops, }, 11 28 { .name = "cmp", .ops = &mov_ops, }, 12 29 { .name = "cmpb", .ops = &mov_ops, }, 13 30 { .name = "cmpl", .ops = &mov_ops, }, 14 31 { .name = "cmpq", .ops = &mov_ops, }, 15 32 { .name = "cmpw", .ops = &mov_ops, }, 16 33 { .name = "cmpxch", .ops = &mov_ops, }, 34 + { .name = "cmpxchg", .ops = &mov_ops, }, 35 + { .name = "cs", .ops = &mov_ops, }, 17 36 { .name = "dec", .ops = &dec_ops, }, 18 37 { .name = "decl", .ops = &dec_ops, }, 38 + { .name = "divsd", .ops = &mov_ops, }, 39 + { .name = "divss", .ops = &mov_ops, }, 40 + { .name = "gs", .ops = &mov_ops, }, 19 41 { .name = "imul", .ops = &mov_ops, }, 20 42 { .name = "inc", .ops = &dec_ops, }, 21 43 { .name = "incl", .ops = &dec_ops, }, ··· 79 57 { .name = "lea", .ops = &mov_ops, }, 80 58 { .name = "lock", .ops = &lock_ops, }, 81 59 { .name = "mov", .ops = &mov_ops, }, 60 + { .name = "movapd", .ops = &mov_ops, }, 61 + { .name = "movaps", .ops = &mov_ops, }, 82 62 { .name = "movb", .ops = &mov_ops, }, 83 63 { .name = "movdqa", .ops = &mov_ops, }, 64 + { .name = "movdqu", .ops = &mov_ops, }, 84 65 { .name = "movl", .ops = &mov_ops, }, 85 66 { .name = "movq", .ops = &mov_ops, }, 67 + { .name = "movsd", .ops = &mov_ops, }, 86 68 { .name = "movslq", .ops = &mov_ops, }, 69 + { .name = "movss", .ops = &mov_ops, }, 70 + { .name = "movupd", .ops = &mov_ops, }, 71 + { .name = "movups", .ops = &mov_ops, }, 72 + { .name = "movw", .ops = &mov_ops, }, 87 73 { .name = "movzbl", .ops = &mov_ops, }, 88 74 { .name = "movzwl", .ops = &mov_ops, }, 75 + { .name = "mulsd", .ops = &mov_ops, }, 76 + { .name = "mulss", .ops = &mov_ops, }, 89 77 { .name = "nop", .ops = &nop_ops, }, 90 78 { .name = "nopl", .ops = &nop_ops, }, 91 79 { .name = "nopw", .ops = &nop_ops, }, 92 80 { .name = "or", .ops = &mov_ops, }, 81 + { .name = "orb", .ops = &mov_ops, }, 93 82 { .name = "orl", .ops = &mov_ops, }, 83 + { .name = "orps", .ops = &mov_ops, }, 84 + { .name = "orq", .ops = &mov_ops, }, 85 + { .name = "pand", .ops = &mov_ops, }, 86 + { .name = "paddq", .ops = &mov_ops, }, 87 + { .name = "pcmpeqb", .ops = &mov_ops, }, 88 + { .name = "por", .ops = &mov_ops, }, 89 + { .name = "rclb", .ops = &mov_ops, }, 90 + { .name = "rcll", .ops = &mov_ops, }, 91 + { .name = "retq", .ops = &ret_ops, }, 92 + { .name = "sbb", .ops = &mov_ops, }, 93 + { .name = "sbbl", .ops = &mov_ops, }, 94 + { .name = "sete", .ops = &mov_ops, }, 95 + { .name = "sub", .ops = &mov_ops, }, 96 + { .name = "subl", .ops = &mov_ops, }, 97 + { .name = "subq", .ops = &mov_ops, }, 98 + { .name = "subsd", .ops = &mov_ops, }, 99 + { .name = "subw", .ops = &mov_ops, }, 94 100 { .name = "test", .ops = &mov_ops, }, 95 101 { .name = "testb", .ops = &mov_ops, }, 96 102 { .name = "testl", .ops = &mov_ops, }, 103 + { .name = "ucomisd", .ops = &mov_ops, }, 104 + { .name = "ucomiss", .ops = &mov_ops, }, 105 + { .name = "vaddsd", .ops = &mov_ops, }, 106 + { .name = "vandpd", .ops = &mov_ops, }, 107 + { .name = "vmovdqa", .ops = &mov_ops, }, 108 + { .name = "vmovq", .ops = &mov_ops, }, 109 + { .name = "vmovsd", .ops = &mov_ops, }, 110 + { .name = "vmulsd", .ops = &mov_ops, }, 111 + { .name = "vorpd", .ops = &mov_ops, }, 112 + { .name = "vsubsd", .ops = &mov_ops, }, 113 + { .name = "vucomisd", .ops = &mov_ops, }, 97 114 { .name = "xadd", .ops = &mov_ops, }, 98 115 { .name = "xbeginl", .ops = &jump_ops, }, 99 116 { .name = "xbeginq", .ops = &jump_ops, }, 100 - { .name = "retq", .ops = &ret_ops, }, 117 + { .name = "xchg", .ops = &mov_ops, }, 118 + { .name = "xor", .ops = &mov_ops, }, 119 + { .name = "xorb", .ops = &mov_ops, }, 120 + { .name = "xorpd", .ops = &mov_ops, }, 121 + { .name = "xorps", .ops = &mov_ops, }, 101 122 }; 102 123 103 124 static bool x86__ins_is_fused(struct arch *arch, const char *ins1,
+358 -354
tools/perf/arch/x86/entry/syscalls/syscall_64.tbl
··· 4 4 # The format is: 5 5 # <number> <abi> <name> <entry point> 6 6 # 7 + # The __x64_sys_*() stubs are created on-the-fly for sys_*() system calls 8 + # 7 9 # The abi is "common", "64" or "x32" for this file. 8 10 # 9 - 0 common read sys_read 10 - 1 common write sys_write 11 - 2 common open sys_open 12 - 3 common close sys_close 13 - 4 common stat sys_newstat 14 - 5 common fstat sys_newfstat 15 - 6 common lstat sys_newlstat 16 - 7 common poll sys_poll 17 - 8 common lseek sys_lseek 18 - 9 common mmap sys_mmap 19 - 10 common mprotect sys_mprotect 20 - 11 common munmap sys_munmap 21 - 12 common brk sys_brk 22 - 13 64 rt_sigaction sys_rt_sigaction 23 - 14 common rt_sigprocmask sys_rt_sigprocmask 24 - 15 64 rt_sigreturn sys_rt_sigreturn/ptregs 25 - 16 64 ioctl sys_ioctl 26 - 17 common pread64 sys_pread64 27 - 18 common pwrite64 sys_pwrite64 28 - 19 64 readv sys_readv 29 - 20 64 writev sys_writev 30 - 21 common access sys_access 31 - 22 common pipe sys_pipe 32 - 23 common select sys_select 33 - 24 common sched_yield sys_sched_yield 34 - 25 common mremap sys_mremap 35 - 26 common msync sys_msync 36 - 27 common mincore sys_mincore 37 - 28 common madvise sys_madvise 38 - 29 common shmget sys_shmget 39 - 30 common shmat sys_shmat 40 - 31 common shmctl sys_shmctl 41 - 32 common dup sys_dup 42 - 33 common dup2 sys_dup2 43 - 34 common pause sys_pause 44 - 35 common nanosleep sys_nanosleep 45 - 36 common getitimer sys_getitimer 46 - 37 common alarm sys_alarm 47 - 38 common setitimer sys_setitimer 48 - 39 common getpid sys_getpid 49 - 40 common sendfile sys_sendfile64 50 - 41 common socket sys_socket 51 - 42 common connect sys_connect 52 - 43 common accept sys_accept 53 - 44 common sendto sys_sendto 54 - 45 64 recvfrom sys_recvfrom 55 - 46 64 sendmsg sys_sendmsg 56 - 47 64 recvmsg sys_recvmsg 57 - 48 common shutdown sys_shutdown 58 - 49 common bind sys_bind 59 - 50 common listen sys_listen 60 - 51 common getsockname sys_getsockname 61 - 52 common getpeername sys_getpeername 62 - 53 common socketpair sys_socketpair 63 - 54 64 setsockopt sys_setsockopt 64 - 55 64 getsockopt sys_getsockopt 65 - 56 common clone sys_clone/ptregs 66 - 57 common fork sys_fork/ptregs 67 - 58 common vfork sys_vfork/ptregs 68 - 59 64 execve sys_execve/ptregs 69 - 60 common exit sys_exit 70 - 61 common wait4 sys_wait4 71 - 62 common kill sys_kill 72 - 63 common uname sys_newuname 73 - 64 common semget sys_semget 74 - 65 common semop sys_semop 75 - 66 common semctl sys_semctl 76 - 67 common shmdt sys_shmdt 77 - 68 common msgget sys_msgget 78 - 69 common msgsnd sys_msgsnd 79 - 70 common msgrcv sys_msgrcv 80 - 71 common msgctl sys_msgctl 81 - 72 common fcntl sys_fcntl 82 - 73 common flock sys_flock 83 - 74 common fsync sys_fsync 84 - 75 common fdatasync sys_fdatasync 85 - 76 common truncate sys_truncate 86 - 77 common ftruncate sys_ftruncate 87 - 78 common getdents sys_getdents 88 - 79 common getcwd sys_getcwd 89 - 80 common chdir sys_chdir 90 - 81 common fchdir sys_fchdir 91 - 82 common rename sys_rename 92 - 83 common mkdir sys_mkdir 93 - 84 common rmdir sys_rmdir 94 - 85 common creat sys_creat 95 - 86 common link sys_link 96 - 87 common unlink sys_unlink 97 - 88 common symlink sys_symlink 98 - 89 common readlink sys_readlink 99 - 90 common chmod sys_chmod 100 - 91 common fchmod sys_fchmod 101 - 92 common chown sys_chown 102 - 93 common fchown sys_fchown 103 - 94 common lchown sys_lchown 104 - 95 common umask sys_umask 105 - 96 common gettimeofday sys_gettimeofday 106 - 97 common getrlimit sys_getrlimit 107 - 98 common getrusage sys_getrusage 108 - 99 common sysinfo sys_sysinfo 109 - 100 common times sys_times 110 - 101 64 ptrace sys_ptrace 111 - 102 common getuid sys_getuid 112 - 103 common syslog sys_syslog 113 - 104 common getgid sys_getgid 114 - 105 common setuid sys_setuid 115 - 106 common setgid sys_setgid 116 - 107 common geteuid sys_geteuid 117 - 108 common getegid sys_getegid 118 - 109 common setpgid sys_setpgid 119 - 110 common getppid sys_getppid 120 - 111 common getpgrp sys_getpgrp 121 - 112 common setsid sys_setsid 122 - 113 common setreuid sys_setreuid 123 - 114 common setregid sys_setregid 124 - 115 common getgroups sys_getgroups 125 - 116 common setgroups sys_setgroups 126 - 117 common setresuid sys_setresuid 127 - 118 common getresuid sys_getresuid 128 - 119 common setresgid sys_setresgid 129 - 120 common getresgid sys_getresgid 130 - 121 common getpgid sys_getpgid 131 - 122 common setfsuid sys_setfsuid 132 - 123 common setfsgid sys_setfsgid 133 - 124 common getsid sys_getsid 134 - 125 common capget sys_capget 135 - 126 common capset sys_capset 136 - 127 64 rt_sigpending sys_rt_sigpending 137 - 128 64 rt_sigtimedwait sys_rt_sigtimedwait 138 - 129 64 rt_sigqueueinfo sys_rt_sigqueueinfo 139 - 130 common rt_sigsuspend sys_rt_sigsuspend 140 - 131 64 sigaltstack sys_sigaltstack 141 - 132 common utime sys_utime 142 - 133 common mknod sys_mknod 11 + 0 common read __x64_sys_read 12 + 1 common write __x64_sys_write 13 + 2 common open __x64_sys_open 14 + 3 common close __x64_sys_close 15 + 4 common stat __x64_sys_newstat 16 + 5 common fstat __x64_sys_newfstat 17 + 6 common lstat __x64_sys_newlstat 18 + 7 common poll __x64_sys_poll 19 + 8 common lseek __x64_sys_lseek 20 + 9 common mmap __x64_sys_mmap 21 + 10 common mprotect __x64_sys_mprotect 22 + 11 common munmap __x64_sys_munmap 23 + 12 common brk __x64_sys_brk 24 + 13 64 rt_sigaction __x64_sys_rt_sigaction 25 + 14 common rt_sigprocmask __x64_sys_rt_sigprocmask 26 + 15 64 rt_sigreturn __x64_sys_rt_sigreturn/ptregs 27 + 16 64 ioctl __x64_sys_ioctl 28 + 17 common pread64 __x64_sys_pread64 29 + 18 common pwrite64 __x64_sys_pwrite64 30 + 19 64 readv __x64_sys_readv 31 + 20 64 writev __x64_sys_writev 32 + 21 common access __x64_sys_access 33 + 22 common pipe __x64_sys_pipe 34 + 23 common select __x64_sys_select 35 + 24 common sched_yield __x64_sys_sched_yield 36 + 25 common mremap __x64_sys_mremap 37 + 26 common msync __x64_sys_msync 38 + 27 common mincore __x64_sys_mincore 39 + 28 common madvise __x64_sys_madvise 40 + 29 common shmget __x64_sys_shmget 41 + 30 common shmat __x64_sys_shmat 42 + 31 common shmctl __x64_sys_shmctl 43 + 32 common dup __x64_sys_dup 44 + 33 common dup2 __x64_sys_dup2 45 + 34 common pause __x64_sys_pause 46 + 35 common nanosleep __x64_sys_nanosleep 47 + 36 common getitimer __x64_sys_getitimer 48 + 37 common alarm __x64_sys_alarm 49 + 38 common setitimer __x64_sys_setitimer 50 + 39 common getpid __x64_sys_getpid 51 + 40 common sendfile __x64_sys_sendfile64 52 + 41 common socket __x64_sys_socket 53 + 42 common connect __x64_sys_connect 54 + 43 common accept __x64_sys_accept 55 + 44 common sendto __x64_sys_sendto 56 + 45 64 recvfrom __x64_sys_recvfrom 57 + 46 64 sendmsg __x64_sys_sendmsg 58 + 47 64 recvmsg __x64_sys_recvmsg 59 + 48 common shutdown __x64_sys_shutdown 60 + 49 common bind __x64_sys_bind 61 + 50 common listen __x64_sys_listen 62 + 51 common getsockname __x64_sys_getsockname 63 + 52 common getpeername __x64_sys_getpeername 64 + 53 common socketpair __x64_sys_socketpair 65 + 54 64 setsockopt __x64_sys_setsockopt 66 + 55 64 getsockopt __x64_sys_getsockopt 67 + 56 common clone __x64_sys_clone/ptregs 68 + 57 common fork __x64_sys_fork/ptregs 69 + 58 common vfork __x64_sys_vfork/ptregs 70 + 59 64 execve __x64_sys_execve/ptregs 71 + 60 common exit __x64_sys_exit 72 + 61 common wait4 __x64_sys_wait4 73 + 62 common kill __x64_sys_kill 74 + 63 common uname __x64_sys_newuname 75 + 64 common semget __x64_sys_semget 76 + 65 common semop __x64_sys_semop 77 + 66 common semctl __x64_sys_semctl 78 + 67 common shmdt __x64_sys_shmdt 79 + 68 common msgget __x64_sys_msgget 80 + 69 common msgsnd __x64_sys_msgsnd 81 + 70 common msgrcv __x64_sys_msgrcv 82 + 71 common msgctl __x64_sys_msgctl 83 + 72 common fcntl __x64_sys_fcntl 84 + 73 common flock __x64_sys_flock 85 + 74 common fsync __x64_sys_fsync 86 + 75 common fdatasync __x64_sys_fdatasync 87 + 76 common truncate __x64_sys_truncate 88 + 77 common ftruncate __x64_sys_ftruncate 89 + 78 common getdents __x64_sys_getdents 90 + 79 common getcwd __x64_sys_getcwd 91 + 80 common chdir __x64_sys_chdir 92 + 81 common fchdir __x64_sys_fchdir 93 + 82 common rename __x64_sys_rename 94 + 83 common mkdir __x64_sys_mkdir 95 + 84 common rmdir __x64_sys_rmdir 96 + 85 common creat __x64_sys_creat 97 + 86 common link __x64_sys_link 98 + 87 common unlink __x64_sys_unlink 99 + 88 common symlink __x64_sys_symlink 100 + 89 common readlink __x64_sys_readlink 101 + 90 common chmod __x64_sys_chmod 102 + 91 common fchmod __x64_sys_fchmod 103 + 92 common chown __x64_sys_chown 104 + 93 common fchown __x64_sys_fchown 105 + 94 common lchown __x64_sys_lchown 106 + 95 common umask __x64_sys_umask 107 + 96 common gettimeofday __x64_sys_gettimeofday 108 + 97 common getrlimit __x64_sys_getrlimit 109 + 98 common getrusage __x64_sys_getrusage 110 + 99 common sysinfo __x64_sys_sysinfo 111 + 100 common times __x64_sys_times 112 + 101 64 ptrace __x64_sys_ptrace 113 + 102 common getuid __x64_sys_getuid 114 + 103 common syslog __x64_sys_syslog 115 + 104 common getgid __x64_sys_getgid 116 + 105 common setuid __x64_sys_setuid 117 + 106 common setgid __x64_sys_setgid 118 + 107 common geteuid __x64_sys_geteuid 119 + 108 common getegid __x64_sys_getegid 120 + 109 common setpgid __x64_sys_setpgid 121 + 110 common getppid __x64_sys_getppid 122 + 111 common getpgrp __x64_sys_getpgrp 123 + 112 common setsid __x64_sys_setsid 124 + 113 common setreuid __x64_sys_setreuid 125 + 114 common setregid __x64_sys_setregid 126 + 115 common getgroups __x64_sys_getgroups 127 + 116 common setgroups __x64_sys_setgroups 128 + 117 common setresuid __x64_sys_setresuid 129 + 118 common getresuid __x64_sys_getresuid 130 + 119 common setresgid __x64_sys_setresgid 131 + 120 common getresgid __x64_sys_getresgid 132 + 121 common getpgid __x64_sys_getpgid 133 + 122 common setfsuid __x64_sys_setfsuid 134 + 123 common setfsgid __x64_sys_setfsgid 135 + 124 common getsid __x64_sys_getsid 136 + 125 common capget __x64_sys_capget 137 + 126 common capset __x64_sys_capset 138 + 127 64 rt_sigpending __x64_sys_rt_sigpending 139 + 128 64 rt_sigtimedwait __x64_sys_rt_sigtimedwait 140 + 129 64 rt_sigqueueinfo __x64_sys_rt_sigqueueinfo 141 + 130 common rt_sigsuspend __x64_sys_rt_sigsuspend 142 + 131 64 sigaltstack __x64_sys_sigaltstack 143 + 132 common utime __x64_sys_utime 144 + 133 common mknod __x64_sys_mknod 143 145 134 64 uselib 144 - 135 common personality sys_personality 145 - 136 common ustat sys_ustat 146 - 137 common statfs sys_statfs 147 - 138 common fstatfs sys_fstatfs 148 - 139 common sysfs sys_sysfs 149 - 140 common getpriority sys_getpriority 150 - 141 common setpriority sys_setpriority 151 - 142 common sched_setparam sys_sched_setparam 152 - 143 common sched_getparam sys_sched_getparam 153 - 144 common sched_setscheduler sys_sched_setscheduler 154 - 145 common sched_getscheduler sys_sched_getscheduler 155 - 146 common sched_get_priority_max sys_sched_get_priority_max 156 - 147 common sched_get_priority_min sys_sched_get_priority_min 157 - 148 common sched_rr_get_interval sys_sched_rr_get_interval 158 - 149 common mlock sys_mlock 159 - 150 common munlock sys_munlock 160 - 151 common mlockall sys_mlockall 161 - 152 common munlockall sys_munlockall 162 - 153 common vhangup sys_vhangup 163 - 154 common modify_ldt sys_modify_ldt 164 - 155 common pivot_root sys_pivot_root 165 - 156 64 _sysctl sys_sysctl 166 - 157 common prctl sys_prctl 167 - 158 common arch_prctl sys_arch_prctl 168 - 159 common adjtimex sys_adjtimex 169 - 160 common setrlimit sys_setrlimit 170 - 161 common chroot sys_chroot 171 - 162 common sync sys_sync 172 - 163 common acct sys_acct 173 - 164 common settimeofday sys_settimeofday 174 - 165 common mount sys_mount 175 - 166 common umount2 sys_umount 176 - 167 common swapon sys_swapon 177 - 168 common swapoff sys_swapoff 178 - 169 common reboot sys_reboot 179 - 170 common sethostname sys_sethostname 180 - 171 common setdomainname sys_setdomainname 181 - 172 common iopl sys_iopl/ptregs 182 - 173 common ioperm sys_ioperm 146 + 135 common personality __x64_sys_personality 147 + 136 common ustat __x64_sys_ustat 148 + 137 common statfs __x64_sys_statfs 149 + 138 common fstatfs __x64_sys_fstatfs 150 + 139 common sysfs __x64_sys_sysfs 151 + 140 common getpriority __x64_sys_getpriority 152 + 141 common setpriority __x64_sys_setpriority 153 + 142 common sched_setparam __x64_sys_sched_setparam 154 + 143 common sched_getparam __x64_sys_sched_getparam 155 + 144 common sched_setscheduler __x64_sys_sched_setscheduler 156 + 145 common sched_getscheduler __x64_sys_sched_getscheduler 157 + 146 common sched_get_priority_max __x64_sys_sched_get_priority_max 158 + 147 common sched_get_priority_min __x64_sys_sched_get_priority_min 159 + 148 common sched_rr_get_interval __x64_sys_sched_rr_get_interval 160 + 149 common mlock __x64_sys_mlock 161 + 150 common munlock __x64_sys_munlock 162 + 151 common mlockall __x64_sys_mlockall 163 + 152 common munlockall __x64_sys_munlockall 164 + 153 common vhangup __x64_sys_vhangup 165 + 154 common modify_ldt __x64_sys_modify_ldt 166 + 155 common pivot_root __x64_sys_pivot_root 167 + 156 64 _sysctl __x64_sys_sysctl 168 + 157 common prctl __x64_sys_prctl 169 + 158 common arch_prctl __x64_sys_arch_prctl 170 + 159 common adjtimex __x64_sys_adjtimex 171 + 160 common setrlimit __x64_sys_setrlimit 172 + 161 common chroot __x64_sys_chroot 173 + 162 common sync __x64_sys_sync 174 + 163 common acct __x64_sys_acct 175 + 164 common settimeofday __x64_sys_settimeofday 176 + 165 common mount __x64_sys_mount 177 + 166 common umount2 __x64_sys_umount 178 + 167 common swapon __x64_sys_swapon 179 + 168 common swapoff __x64_sys_swapoff 180 + 169 common reboot __x64_sys_reboot 181 + 170 common sethostname __x64_sys_sethostname 182 + 171 common setdomainname __x64_sys_setdomainname 183 + 172 common iopl __x64_sys_iopl/ptregs 184 + 173 common ioperm __x64_sys_ioperm 183 185 174 64 create_module 184 - 175 common init_module sys_init_module 185 - 176 common delete_module sys_delete_module 186 + 175 common init_module __x64_sys_init_module 187 + 176 common delete_module __x64_sys_delete_module 186 188 177 64 get_kernel_syms 187 189 178 64 query_module 188 - 179 common quotactl sys_quotactl 190 + 179 common quotactl __x64_sys_quotactl 189 191 180 64 nfsservctl 190 192 181 common getpmsg 191 193 182 common putpmsg 192 194 183 common afs_syscall 193 195 184 common tuxcall 194 196 185 common security 195 - 186 common gettid sys_gettid 196 - 187 common readahead sys_readahead 197 - 188 common setxattr sys_setxattr 198 - 189 common lsetxattr sys_lsetxattr 199 - 190 common fsetxattr sys_fsetxattr 200 - 191 common getxattr sys_getxattr 201 - 192 common lgetxattr sys_lgetxattr 202 - 193 common fgetxattr sys_fgetxattr 203 - 194 common listxattr sys_listxattr 204 - 195 common llistxattr sys_llistxattr 205 - 196 common flistxattr sys_flistxattr 206 - 197 common removexattr sys_removexattr 207 - 198 common lremovexattr sys_lremovexattr 208 - 199 common fremovexattr sys_fremovexattr 209 - 200 common tkill sys_tkill 210 - 201 common time sys_time 211 - 202 common futex sys_futex 212 - 203 common sched_setaffinity sys_sched_setaffinity 213 - 204 common sched_getaffinity sys_sched_getaffinity 197 + 186 common gettid __x64_sys_gettid 198 + 187 common readahead __x64_sys_readahead 199 + 188 common setxattr __x64_sys_setxattr 200 + 189 common lsetxattr __x64_sys_lsetxattr 201 + 190 common fsetxattr __x64_sys_fsetxattr 202 + 191 common getxattr __x64_sys_getxattr 203 + 192 common lgetxattr __x64_sys_lgetxattr 204 + 193 common fgetxattr __x64_sys_fgetxattr 205 + 194 common listxattr __x64_sys_listxattr 206 + 195 common llistxattr __x64_sys_llistxattr 207 + 196 common flistxattr __x64_sys_flistxattr 208 + 197 common removexattr __x64_sys_removexattr 209 + 198 common lremovexattr __x64_sys_lremovexattr 210 + 199 common fremovexattr __x64_sys_fremovexattr 211 + 200 common tkill __x64_sys_tkill 212 + 201 common time __x64_sys_time 213 + 202 common futex __x64_sys_futex 214 + 203 common sched_setaffinity __x64_sys_sched_setaffinity 215 + 204 common sched_getaffinity __x64_sys_sched_getaffinity 214 216 205 64 set_thread_area 215 - 206 64 io_setup sys_io_setup 216 - 207 common io_destroy sys_io_destroy 217 - 208 common io_getevents sys_io_getevents 218 - 209 64 io_submit sys_io_submit 219 - 210 common io_cancel sys_io_cancel 217 + 206 64 io_setup __x64_sys_io_setup 218 + 207 common io_destroy __x64_sys_io_destroy 219 + 208 common io_getevents __x64_sys_io_getevents 220 + 209 64 io_submit __x64_sys_io_submit 221 + 210 common io_cancel __x64_sys_io_cancel 220 222 211 64 get_thread_area 221 - 212 common lookup_dcookie sys_lookup_dcookie 222 - 213 common epoll_create sys_epoll_create 223 + 212 common lookup_dcookie __x64_sys_lookup_dcookie 224 + 213 common epoll_create __x64_sys_epoll_create 223 225 214 64 epoll_ctl_old 224 226 215 64 epoll_wait_old 225 - 216 common remap_file_pages sys_remap_file_pages 226 - 217 common getdents64 sys_getdents64 227 - 218 common set_tid_address sys_set_tid_address 228 - 219 common restart_syscall sys_restart_syscall 229 - 220 common semtimedop sys_semtimedop 230 - 221 common fadvise64 sys_fadvise64 231 - 222 64 timer_create sys_timer_create 232 - 223 common timer_settime sys_timer_settime 233 - 224 common timer_gettime sys_timer_gettime 234 - 225 common timer_getoverrun sys_timer_getoverrun 235 - 226 common timer_delete sys_timer_delete 236 - 227 common clock_settime sys_clock_settime 237 - 228 common clock_gettime sys_clock_gettime 238 - 229 common clock_getres sys_clock_getres 239 - 230 common clock_nanosleep sys_clock_nanosleep 240 - 231 common exit_group sys_exit_group 241 - 232 common epoll_wait sys_epoll_wait 242 - 233 common epoll_ctl sys_epoll_ctl 243 - 234 common tgkill sys_tgkill 244 - 235 common utimes sys_utimes 227 + 216 common remap_file_pages __x64_sys_remap_file_pages 228 + 217 common getdents64 __x64_sys_getdents64 229 + 218 common set_tid_address __x64_sys_set_tid_address 230 + 219 common restart_syscall __x64_sys_restart_syscall 231 + 220 common semtimedop __x64_sys_semtimedop 232 + 221 common fadvise64 __x64_sys_fadvise64 233 + 222 64 timer_create __x64_sys_timer_create 234 + 223 common timer_settime __x64_sys_timer_settime 235 + 224 common timer_gettime __x64_sys_timer_gettime 236 + 225 common timer_getoverrun __x64_sys_timer_getoverrun 237 + 226 common timer_delete __x64_sys_timer_delete 238 + 227 common clock_settime __x64_sys_clock_settime 239 + 228 common clock_gettime __x64_sys_clock_gettime 240 + 229 common clock_getres __x64_sys_clock_getres 241 + 230 common clock_nanosleep __x64_sys_clock_nanosleep 242 + 231 common exit_group __x64_sys_exit_group 243 + 232 common epoll_wait __x64_sys_epoll_wait 244 + 233 common epoll_ctl __x64_sys_epoll_ctl 245 + 234 common tgkill __x64_sys_tgkill 246 + 235 common utimes __x64_sys_utimes 245 247 236 64 vserver 246 - 237 common mbind sys_mbind 247 - 238 common set_mempolicy sys_set_mempolicy 248 - 239 common get_mempolicy sys_get_mempolicy 249 - 240 common mq_open sys_mq_open 250 - 241 common mq_unlink sys_mq_unlink 251 - 242 common mq_timedsend sys_mq_timedsend 252 - 243 common mq_timedreceive sys_mq_timedreceive 253 - 244 64 mq_notify sys_mq_notify 254 - 245 common mq_getsetattr sys_mq_getsetattr 255 - 246 64 kexec_load sys_kexec_load 256 - 247 64 waitid sys_waitid 257 - 248 common add_key sys_add_key 258 - 249 common request_key sys_request_key 259 - 250 common keyctl sys_keyctl 260 - 251 common ioprio_set sys_ioprio_set 261 - 252 common ioprio_get sys_ioprio_get 262 - 253 common inotify_init sys_inotify_init 263 - 254 common inotify_add_watch sys_inotify_add_watch 264 - 255 common inotify_rm_watch sys_inotify_rm_watch 265 - 256 common migrate_pages sys_migrate_pages 266 - 257 common openat sys_openat 267 - 258 common mkdirat sys_mkdirat 268 - 259 common mknodat sys_mknodat 269 - 260 common fchownat sys_fchownat 270 - 261 common futimesat sys_futimesat 271 - 262 common newfstatat sys_newfstatat 272 - 263 common unlinkat sys_unlinkat 273 - 264 common renameat sys_renameat 274 - 265 common linkat sys_linkat 275 - 266 common symlinkat sys_symlinkat 276 - 267 common readlinkat sys_readlinkat 277 - 268 common fchmodat sys_fchmodat 278 - 269 common faccessat sys_faccessat 279 - 270 common pselect6 sys_pselect6 280 - 271 common ppoll sys_ppoll 281 - 272 common unshare sys_unshare 282 - 273 64 set_robust_list sys_set_robust_list 283 - 274 64 get_robust_list sys_get_robust_list 284 - 275 common splice sys_splice 285 - 276 common tee sys_tee 286 - 277 common sync_file_range sys_sync_file_range 287 - 278 64 vmsplice sys_vmsplice 288 - 279 64 move_pages sys_move_pages 289 - 280 common utimensat sys_utimensat 290 - 281 common epoll_pwait sys_epoll_pwait 291 - 282 common signalfd sys_signalfd 292 - 283 common timerfd_create sys_timerfd_create 293 - 284 common eventfd sys_eventfd 294 - 285 common fallocate sys_fallocate 295 - 286 common timerfd_settime sys_timerfd_settime 296 - 287 common timerfd_gettime sys_timerfd_gettime 297 - 288 common accept4 sys_accept4 298 - 289 common signalfd4 sys_signalfd4 299 - 290 common eventfd2 sys_eventfd2 300 - 291 common epoll_create1 sys_epoll_create1 301 - 292 common dup3 sys_dup3 302 - 293 common pipe2 sys_pipe2 303 - 294 common inotify_init1 sys_inotify_init1 304 - 295 64 preadv sys_preadv 305 - 296 64 pwritev sys_pwritev 306 - 297 64 rt_tgsigqueueinfo sys_rt_tgsigqueueinfo 307 - 298 common perf_event_open sys_perf_event_open 308 - 299 64 recvmmsg sys_recvmmsg 309 - 300 common fanotify_init sys_fanotify_init 310 - 301 common fanotify_mark sys_fanotify_mark 311 - 302 common prlimit64 sys_prlimit64 312 - 303 common name_to_handle_at sys_name_to_handle_at 313 - 304 common open_by_handle_at sys_open_by_handle_at 314 - 305 common clock_adjtime sys_clock_adjtime 315 - 306 common syncfs sys_syncfs 316 - 307 64 sendmmsg sys_sendmmsg 317 - 308 common setns sys_setns 318 - 309 common getcpu sys_getcpu 319 - 310 64 process_vm_readv sys_process_vm_readv 320 - 311 64 process_vm_writev sys_process_vm_writev 321 - 312 common kcmp sys_kcmp 322 - 313 common finit_module sys_finit_module 323 - 314 common sched_setattr sys_sched_setattr 324 - 315 common sched_getattr sys_sched_getattr 325 - 316 common renameat2 sys_renameat2 326 - 317 common seccomp sys_seccomp 327 - 318 common getrandom sys_getrandom 328 - 319 common memfd_create sys_memfd_create 329 - 320 common kexec_file_load sys_kexec_file_load 330 - 321 common bpf sys_bpf 331 - 322 64 execveat sys_execveat/ptregs 332 - 323 common userfaultfd sys_userfaultfd 333 - 324 common membarrier sys_membarrier 334 - 325 common mlock2 sys_mlock2 335 - 326 common copy_file_range sys_copy_file_range 336 - 327 64 preadv2 sys_preadv2 337 - 328 64 pwritev2 sys_pwritev2 338 - 329 common pkey_mprotect sys_pkey_mprotect 339 - 330 common pkey_alloc sys_pkey_alloc 340 - 331 common pkey_free sys_pkey_free 341 - 332 common statx sys_statx 248 + 237 common mbind __x64_sys_mbind 249 + 238 common set_mempolicy __x64_sys_set_mempolicy 250 + 239 common get_mempolicy __x64_sys_get_mempolicy 251 + 240 common mq_open __x64_sys_mq_open 252 + 241 common mq_unlink __x64_sys_mq_unlink 253 + 242 common mq_timedsend __x64_sys_mq_timedsend 254 + 243 common mq_timedreceive __x64_sys_mq_timedreceive 255 + 244 64 mq_notify __x64_sys_mq_notify 256 + 245 common mq_getsetattr __x64_sys_mq_getsetattr 257 + 246 64 kexec_load __x64_sys_kexec_load 258 + 247 64 waitid __x64_sys_waitid 259 + 248 common add_key __x64_sys_add_key 260 + 249 common request_key __x64_sys_request_key 261 + 250 common keyctl __x64_sys_keyctl 262 + 251 common ioprio_set __x64_sys_ioprio_set 263 + 252 common ioprio_get __x64_sys_ioprio_get 264 + 253 common inotify_init __x64_sys_inotify_init 265 + 254 common inotify_add_watch __x64_sys_inotify_add_watch 266 + 255 common inotify_rm_watch __x64_sys_inotify_rm_watch 267 + 256 common migrate_pages __x64_sys_migrate_pages 268 + 257 common openat __x64_sys_openat 269 + 258 common mkdirat __x64_sys_mkdirat 270 + 259 common mknodat __x64_sys_mknodat 271 + 260 common fchownat __x64_sys_fchownat 272 + 261 common futimesat __x64_sys_futimesat 273 + 262 common newfstatat __x64_sys_newfstatat 274 + 263 common unlinkat __x64_sys_unlinkat 275 + 264 common renameat __x64_sys_renameat 276 + 265 common linkat __x64_sys_linkat 277 + 266 common symlinkat __x64_sys_symlinkat 278 + 267 common readlinkat __x64_sys_readlinkat 279 + 268 common fchmodat __x64_sys_fchmodat 280 + 269 common faccessat __x64_sys_faccessat 281 + 270 common pselect6 __x64_sys_pselect6 282 + 271 common ppoll __x64_sys_ppoll 283 + 272 common unshare __x64_sys_unshare 284 + 273 64 set_robust_list __x64_sys_set_robust_list 285 + 274 64 get_robust_list __x64_sys_get_robust_list 286 + 275 common splice __x64_sys_splice 287 + 276 common tee __x64_sys_tee 288 + 277 common sync_file_range __x64_sys_sync_file_range 289 + 278 64 vmsplice __x64_sys_vmsplice 290 + 279 64 move_pages __x64_sys_move_pages 291 + 280 common utimensat __x64_sys_utimensat 292 + 281 common epoll_pwait __x64_sys_epoll_pwait 293 + 282 common signalfd __x64_sys_signalfd 294 + 283 common timerfd_create __x64_sys_timerfd_create 295 + 284 common eventfd __x64_sys_eventfd 296 + 285 common fallocate __x64_sys_fallocate 297 + 286 common timerfd_settime __x64_sys_timerfd_settime 298 + 287 common timerfd_gettime __x64_sys_timerfd_gettime 299 + 288 common accept4 __x64_sys_accept4 300 + 289 common signalfd4 __x64_sys_signalfd4 301 + 290 common eventfd2 __x64_sys_eventfd2 302 + 291 common epoll_create1 __x64_sys_epoll_create1 303 + 292 common dup3 __x64_sys_dup3 304 + 293 common pipe2 __x64_sys_pipe2 305 + 294 common inotify_init1 __x64_sys_inotify_init1 306 + 295 64 preadv __x64_sys_preadv 307 + 296 64 pwritev __x64_sys_pwritev 308 + 297 64 rt_tgsigqueueinfo __x64_sys_rt_tgsigqueueinfo 309 + 298 common perf_event_open __x64_sys_perf_event_open 310 + 299 64 recvmmsg __x64_sys_recvmmsg 311 + 300 common fanotify_init __x64_sys_fanotify_init 312 + 301 common fanotify_mark __x64_sys_fanotify_mark 313 + 302 common prlimit64 __x64_sys_prlimit64 314 + 303 common name_to_handle_at __x64_sys_name_to_handle_at 315 + 304 common open_by_handle_at __x64_sys_open_by_handle_at 316 + 305 common clock_adjtime __x64_sys_clock_adjtime 317 + 306 common syncfs __x64_sys_syncfs 318 + 307 64 sendmmsg __x64_sys_sendmmsg 319 + 308 common setns __x64_sys_setns 320 + 309 common getcpu __x64_sys_getcpu 321 + 310 64 process_vm_readv __x64_sys_process_vm_readv 322 + 311 64 process_vm_writev __x64_sys_process_vm_writev 323 + 312 common kcmp __x64_sys_kcmp 324 + 313 common finit_module __x64_sys_finit_module 325 + 314 common sched_setattr __x64_sys_sched_setattr 326 + 315 common sched_getattr __x64_sys_sched_getattr 327 + 316 common renameat2 __x64_sys_renameat2 328 + 317 common seccomp __x64_sys_seccomp 329 + 318 common getrandom __x64_sys_getrandom 330 + 319 common memfd_create __x64_sys_memfd_create 331 + 320 common kexec_file_load __x64_sys_kexec_file_load 332 + 321 common bpf __x64_sys_bpf 333 + 322 64 execveat __x64_sys_execveat/ptregs 334 + 323 common userfaultfd __x64_sys_userfaultfd 335 + 324 common membarrier __x64_sys_membarrier 336 + 325 common mlock2 __x64_sys_mlock2 337 + 326 common copy_file_range __x64_sys_copy_file_range 338 + 327 64 preadv2 __x64_sys_preadv2 339 + 328 64 pwritev2 __x64_sys_pwritev2 340 + 329 common pkey_mprotect __x64_sys_pkey_mprotect 341 + 330 common pkey_alloc __x64_sys_pkey_alloc 342 + 331 common pkey_free __x64_sys_pkey_free 343 + 332 common statx __x64_sys_statx 342 344 343 345 # 344 346 # x32-specific system call numbers start at 512 to avoid cache impact 345 - # for native 64-bit operation. 347 + # for native 64-bit operation. The __x32_compat_sys stubs are created 348 + # on-the-fly for compat_sys_*() compatibility system calls if X86_X32 349 + # is defined. 346 350 # 347 - 512 x32 rt_sigaction compat_sys_rt_sigaction 351 + 512 x32 rt_sigaction __x32_compat_sys_rt_sigaction 348 352 513 x32 rt_sigreturn sys32_x32_rt_sigreturn 349 - 514 x32 ioctl compat_sys_ioctl 350 - 515 x32 readv compat_sys_readv 351 - 516 x32 writev compat_sys_writev 352 - 517 x32 recvfrom compat_sys_recvfrom 353 - 518 x32 sendmsg compat_sys_sendmsg 354 - 519 x32 recvmsg compat_sys_recvmsg 355 - 520 x32 execve compat_sys_execve/ptregs 356 - 521 x32 ptrace compat_sys_ptrace 357 - 522 x32 rt_sigpending compat_sys_rt_sigpending 358 - 523 x32 rt_sigtimedwait compat_sys_rt_sigtimedwait 359 - 524 x32 rt_sigqueueinfo compat_sys_rt_sigqueueinfo 360 - 525 x32 sigaltstack compat_sys_sigaltstack 361 - 526 x32 timer_create compat_sys_timer_create 362 - 527 x32 mq_notify compat_sys_mq_notify 363 - 528 x32 kexec_load compat_sys_kexec_load 364 - 529 x32 waitid compat_sys_waitid 365 - 530 x32 set_robust_list compat_sys_set_robust_list 366 - 531 x32 get_robust_list compat_sys_get_robust_list 367 - 532 x32 vmsplice compat_sys_vmsplice 368 - 533 x32 move_pages compat_sys_move_pages 369 - 534 x32 preadv compat_sys_preadv64 370 - 535 x32 pwritev compat_sys_pwritev64 371 - 536 x32 rt_tgsigqueueinfo compat_sys_rt_tgsigqueueinfo 372 - 537 x32 recvmmsg compat_sys_recvmmsg 373 - 538 x32 sendmmsg compat_sys_sendmmsg 374 - 539 x32 process_vm_readv compat_sys_process_vm_readv 375 - 540 x32 process_vm_writev compat_sys_process_vm_writev 376 - 541 x32 setsockopt compat_sys_setsockopt 377 - 542 x32 getsockopt compat_sys_getsockopt 378 - 543 x32 io_setup compat_sys_io_setup 379 - 544 x32 io_submit compat_sys_io_submit 380 - 545 x32 execveat compat_sys_execveat/ptregs 381 - 546 x32 preadv2 compat_sys_preadv64v2 382 - 547 x32 pwritev2 compat_sys_pwritev64v2 353 + 514 x32 ioctl __x32_compat_sys_ioctl 354 + 515 x32 readv __x32_compat_sys_readv 355 + 516 x32 writev __x32_compat_sys_writev 356 + 517 x32 recvfrom __x32_compat_sys_recvfrom 357 + 518 x32 sendmsg __x32_compat_sys_sendmsg 358 + 519 x32 recvmsg __x32_compat_sys_recvmsg 359 + 520 x32 execve __x32_compat_sys_execve/ptregs 360 + 521 x32 ptrace __x32_compat_sys_ptrace 361 + 522 x32 rt_sigpending __x32_compat_sys_rt_sigpending 362 + 523 x32 rt_sigtimedwait __x32_compat_sys_rt_sigtimedwait 363 + 524 x32 rt_sigqueueinfo __x32_compat_sys_rt_sigqueueinfo 364 + 525 x32 sigaltstack __x32_compat_sys_sigaltstack 365 + 526 x32 timer_create __x32_compat_sys_timer_create 366 + 527 x32 mq_notify __x32_compat_sys_mq_notify 367 + 528 x32 kexec_load __x32_compat_sys_kexec_load 368 + 529 x32 waitid __x32_compat_sys_waitid 369 + 530 x32 set_robust_list __x32_compat_sys_set_robust_list 370 + 531 x32 get_robust_list __x32_compat_sys_get_robust_list 371 + 532 x32 vmsplice __x32_compat_sys_vmsplice 372 + 533 x32 move_pages __x32_compat_sys_move_pages 373 + 534 x32 preadv __x32_compat_sys_preadv64 374 + 535 x32 pwritev __x32_compat_sys_pwritev64 375 + 536 x32 rt_tgsigqueueinfo __x32_compat_sys_rt_tgsigqueueinfo 376 + 537 x32 recvmmsg __x32_compat_sys_recvmmsg 377 + 538 x32 sendmmsg __x32_compat_sys_sendmmsg 378 + 539 x32 process_vm_readv __x32_compat_sys_process_vm_readv 379 + 540 x32 process_vm_writev __x32_compat_sys_process_vm_writev 380 + 541 x32 setsockopt __x32_compat_sys_setsockopt 381 + 542 x32 getsockopt __x32_compat_sys_getsockopt 382 + 543 x32 io_setup __x32_compat_sys_io_setup 383 + 544 x32 io_submit __x32_compat_sys_io_submit 384 + 545 x32 execveat __x32_compat_sys_execveat/ptregs 385 + 546 x32 preadv2 __x32_compat_sys_preadv64v2 386 + 547 x32 pwritev2 __x32_compat_sys_pwritev64v2
+1 -1
tools/perf/builtin-help.c
··· 439 439 #ifdef HAVE_LIBELF_SUPPORT 440 440 "probe", 441 441 #endif 442 - #if defined(HAVE_LIBAUDIT_SUPPORT) || defined(HAVE_SYSCALL_TABLE) 442 + #if defined(HAVE_LIBAUDIT_SUPPORT) || defined(HAVE_SYSCALL_TABLE_SUPPORT) 443 443 "trace", 444 444 #endif 445 445 NULL };
+2 -2
tools/perf/builtin-mem.c
··· 83 83 }; 84 84 85 85 argc = parse_options(argc, argv, options, record_mem_usage, 86 - PARSE_OPT_STOP_AT_NON_OPTION); 86 + PARSE_OPT_KEEP_UNKNOWN); 87 87 88 88 rec_argc = argc + 9; /* max number of arguments */ 89 89 rec_argv = calloc(rec_argc + 1, sizeof(char *)); ··· 436 436 } 437 437 438 438 argc = parse_options_subcommand(argc, argv, mem_options, mem_subcommands, 439 - mem_usage, PARSE_OPT_STOP_AT_NON_OPTION); 439 + mem_usage, PARSE_OPT_KEEP_UNKNOWN); 440 440 441 441 if (!argc || !(strncmp(argv[0], "rec", 3) || mem.operation)) 442 442 usage_with_options(mem_usage, mem_options);
+6 -3
tools/perf/builtin-script.c
··· 657 657 break; 658 658 case PERF_RECORD_SWITCH: 659 659 case PERF_RECORD_SWITCH_CPU_WIDE: 660 - if (has(SWITCH_OUT)) 660 + if (has(SWITCH_OUT)) { 661 661 ret += fprintf(fp, "S"); 662 + if (sample->misc & PERF_RECORD_MISC_SWITCH_OUT_PREEMPT) 663 + ret += fprintf(fp, "p"); 664 + } 662 665 default: 663 666 break; 664 667 } ··· 2804 2801 for_each_lang(scripts_path, scripts_dir, lang_dirent) { 2805 2802 scnprintf(lang_path, MAXPATHLEN, "%s/%s", scripts_path, 2806 2803 lang_dirent->d_name); 2807 - #ifdef NO_LIBPERL 2804 + #ifndef HAVE_LIBPERL_SUPPORT 2808 2805 if (strstr(lang_path, "perl")) 2809 2806 continue; 2810 2807 #endif 2811 - #ifdef NO_LIBPYTHON 2808 + #ifndef HAVE_LIBPYTHON_SUPPORT 2812 2809 if (strstr(lang_path, "python")) 2813 2810 continue; 2814 2811 #endif
+2 -12
tools/perf/builtin-stat.c
··· 1943 1943 OPT_STRING(0, "post", &post_cmd, "command", 1944 1944 "command to run after to the measured command"), 1945 1945 OPT_UINTEGER('I', "interval-print", &stat_config.interval, 1946 - "print counts at regular interval in ms (>= 10)"), 1946 + "print counts at regular interval in ms " 1947 + "(overhead is possible for values <= 100ms)"), 1947 1948 OPT_INTEGER(0, "interval-count", &stat_config.times, 1948 1949 "print counts for fixed number of times"), 1949 1950 OPT_UINTEGER(0, "timeout", &stat_config.timeout, ··· 2922 2921 goto out; 2923 2922 } 2924 2923 } 2925 - } 2926 - 2927 - if (interval && interval < 100) { 2928 - if (interval < 10) { 2929 - pr_err("print interval must be >= 10ms\n"); 2930 - parse_options_usage(stat_usage, stat_options, "I", 1); 2931 - goto out; 2932 - } else 2933 - pr_warning("print interval < 100ms. " 2934 - "The overhead percentage could be high in some cases. " 2935 - "Please proceed with caution.\n"); 2936 2924 } 2937 2925 2938 2926 if (stat_config.times && interval)
+3
tools/perf/builtin-version.c
··· 60 60 STATUS(HAVE_DWARF_GETLOCATIONS_SUPPORT, dwarf_getlocations); 61 61 STATUS(HAVE_GLIBC_SUPPORT, glibc); 62 62 STATUS(HAVE_GTK2_SUPPORT, gtk2); 63 + #ifndef HAVE_SYSCALL_TABLE_SUPPORT 63 64 STATUS(HAVE_LIBAUDIT_SUPPORT, libaudit); 65 + #endif 66 + STATUS(HAVE_SYSCALL_TABLE_SUPPORT, syscall_table); 64 67 STATUS(HAVE_LIBBFD_SUPPORT, libbfd); 65 68 STATUS(HAVE_LIBELF_SUPPORT, libelf); 66 69 STATUS(HAVE_LIBNUMA_SUPPORT, libnuma);
+2 -2
tools/perf/perf.c
··· 73 73 { "lock", cmd_lock, 0 }, 74 74 { "kvm", cmd_kvm, 0 }, 75 75 { "test", cmd_test, 0 }, 76 - #if defined(HAVE_LIBAUDIT_SUPPORT) || defined(HAVE_SYSCALL_TABLE) 76 + #if defined(HAVE_LIBAUDIT_SUPPORT) || defined(HAVE_SYSCALL_TABLE_SUPPORT) 77 77 { "trace", cmd_trace, 0 }, 78 78 #endif 79 79 { "inject", cmd_inject, 0 }, ··· 491 491 argv[0] = cmd; 492 492 } 493 493 if (strstarts(cmd, "trace")) { 494 - #if defined(HAVE_LIBAUDIT_SUPPORT) || defined(HAVE_SYSCALL_TABLE) 494 + #if defined(HAVE_LIBAUDIT_SUPPORT) || defined(HAVE_SYSCALL_TABLE_SUPPORT) 495 495 setup_path(); 496 496 argv[0] = "trace"; 497 497 return cmd_trace(argc, argv);
+1 -1
tools/perf/tests/bpf-script-example.c
··· 31 31 .max_entries = 1, 32 32 }; 33 33 34 - SEC("func=SyS_epoll_pwait") 34 + SEC("func=do_epoll_wait") 35 35 int bpf_func__SyS_epoll_pwait(void *ctx) 36 36 { 37 37 int ind =0;
-1
tools/perf/tests/bpf-script-test-kbuild.c
··· 9 9 #define SEC(NAME) __attribute__((section(NAME), used)) 10 10 11 11 #include <uapi/linux/fs.h> 12 - #include <uapi/asm/ptrace.h> 13 12 14 13 SEC("func=vfs_llseek") 15 14 int bpf_func__vfs_llseek(void *ctx)
+1
tools/perf/tests/builtin-test.c
··· 118 118 { 119 119 .desc = "Breakpoint accounting", 120 120 .func = test__bp_accounting, 121 + .is_supported = test__bp_signal_is_supported, 121 122 }, 122 123 { 123 124 .desc = "Number of exit events of a simple workload",
+1 -1
tools/perf/tests/mmap-basic.c
··· 75 75 snprintf(name, sizeof(name), "sys_enter_%s", syscall_names[i]); 76 76 evsels[i] = perf_evsel__newtp("syscalls", name); 77 77 if (IS_ERR(evsels[i])) { 78 - pr_debug("perf_evsel__new\n"); 78 + pr_debug("perf_evsel__new(%s)\n", name); 79 79 goto out_delete_evlist; 80 80 } 81 81
+3
tools/perf/trace/beauty/mmap.c
··· 54 54 P_MMAP_FLAG(EXECUTABLE); 55 55 P_MMAP_FLAG(FILE); 56 56 P_MMAP_FLAG(FIXED); 57 + #ifdef MAP_FIXED_NOREPLACE 58 + P_MMAP_FLAG(FIXED_NOREPLACE); 59 + #endif 57 60 P_MMAP_FLAG(GROWSDOWN); 58 61 P_MMAP_FLAG(HUGETLB); 59 62 P_MMAP_FLAG(LOCKED);
+5
tools/perf/ui/browsers/annotate.c
··· 692 692 "J Toggle showing number of jump sources on targets\n" 693 693 "n Search next string\n" 694 694 "o Toggle disassembler output/simplified view\n" 695 + "O Bump offset level (jump targets -> +call -> all -> cycle thru)\n" 695 696 "s Toggle source code view\n" 696 697 "t Circulate percent, total period, samples view\n" 697 698 "/ Search string\n" ··· 719 718 case 'o': 720 719 notes->options->use_offset = !notes->options->use_offset; 721 720 annotation__update_column_widths(notes); 721 + continue; 722 + case 'O': 723 + if (++notes->options->offset_level > ANNOTATION__MAX_OFFSET_LEVEL) 724 + notes->options->offset_level = ANNOTATION__MIN_OFFSET_LEVEL; 722 725 continue; 723 726 case 'j': 724 727 notes->options->jump_arrows = !notes->options->jump_arrows;
+1 -1
tools/perf/ui/browsers/hists.c
··· 2714 2714 "h/?/F1 Show this window\n" \ 2715 2715 "UP/DOWN/PGUP\n" \ 2716 2716 "PGDN/SPACE Navigate\n" \ 2717 - "q/ESC/CTRL+C Exit browser\n\n" \ 2717 + "q/ESC/CTRL+C Exit browser or go back to previous screen\n\n" \ 2718 2718 "For multiple event sessions:\n\n" \ 2719 2719 "TAB/UNTAB Switch events\n\n" \ 2720 2720 "For symbolic views (--sort has sym):\n\n" \
+21 -5
tools/perf/util/annotate.c
··· 46 46 struct annotation_options annotation__default_options = { 47 47 .use_offset = true, 48 48 .jump_arrows = true, 49 + .offset_level = ANNOTATION__OFFSET_JUMP_TARGETS, 49 50 }; 50 51 51 52 const char *disassembler_style; ··· 2513 2512 if (!notes->options->use_offset) { 2514 2513 printed = scnprintf(bf, sizeof(bf), "%" PRIx64 ": ", addr); 2515 2514 } else { 2516 - if (al->jump_sources) { 2515 + if (al->jump_sources && 2516 + notes->options->offset_level >= ANNOTATION__OFFSET_JUMP_TARGETS) { 2517 2517 if (notes->options->show_nr_jumps) { 2518 2518 int prev; 2519 2519 printed = scnprintf(bf, sizeof(bf), "%*d ", ··· 2525 2523 obj__printf(obj, bf); 2526 2524 obj__set_color(obj, prev); 2527 2525 } 2528 - 2526 + print_addr: 2529 2527 printed = scnprintf(bf, sizeof(bf), "%*" PRIx64 ": ", 2530 2528 notes->widths.target, addr); 2529 + } else if (ins__is_call(&disasm_line(al)->ins) && 2530 + notes->options->offset_level >= ANNOTATION__OFFSET_CALL) { 2531 + goto print_addr; 2532 + } else if (notes->options->offset_level == ANNOTATION__MAX_OFFSET_LEVEL) { 2533 + goto print_addr; 2531 2534 } else { 2532 2535 printed = scnprintf(bf, sizeof(bf), "%-*s ", 2533 2536 notes->widths.addr, " "); ··· 2649 2642 */ 2650 2643 static struct annotation_config { 2651 2644 const char *name; 2652 - bool *value; 2645 + void *value; 2653 2646 } annotation__configs[] = { 2654 2647 ANNOTATION__CFG(hide_src_code), 2655 2648 ANNOTATION__CFG(jump_arrows), 2649 + ANNOTATION__CFG(offset_level), 2656 2650 ANNOTATION__CFG(show_linenr), 2657 2651 ANNOTATION__CFG(show_nr_jumps), 2658 2652 ANNOTATION__CFG(show_nr_samples), ··· 2685 2677 2686 2678 if (cfg == NULL) 2687 2679 pr_debug("%s variable unknown, ignoring...", var); 2688 - else 2689 - *cfg->value = perf_config_bool(name, value); 2680 + else if (strcmp(var, "annotate.offset_level") == 0) { 2681 + perf_config_int(cfg->value, name, value); 2682 + 2683 + if (*(int *)cfg->value > ANNOTATION__MAX_OFFSET_LEVEL) 2684 + *(int *)cfg->value = ANNOTATION__MAX_OFFSET_LEVEL; 2685 + else if (*(int *)cfg->value < ANNOTATION__MIN_OFFSET_LEVEL) 2686 + *(int *)cfg->value = ANNOTATION__MIN_OFFSET_LEVEL; 2687 + } else { 2688 + *(bool *)cfg->value = perf_config_bool(name, value); 2689 + } 2690 2690 return 0; 2691 2691 } 2692 2692
+9
tools/perf/util/annotate.h
··· 70 70 show_nr_jumps, 71 71 show_nr_samples, 72 72 show_total_period; 73 + u8 offset_level; 73 74 }; 75 + 76 + enum { 77 + ANNOTATION__OFFSET_JUMP_TARGETS = 1, 78 + ANNOTATION__OFFSET_CALL, 79 + ANNOTATION__MAX_OFFSET_LEVEL, 80 + }; 81 + 82 + #define ANNOTATION__MIN_OFFSET_LEVEL ANNOTATION__OFFSET_JUMP_TARGETS 74 83 75 84 extern struct annotation_options annotation__default_options; 76 85
+1 -2
tools/perf/util/cs-etm-decoder/cs-etm-decoder.c
··· 1 + // SPDX-License-Identifier: GPL-2.0 1 2 /* 2 - * SPDX-License-Identifier: GPL-2.0 3 - * 4 3 * Copyright(C) 2015-2018 Linaro Limited. 5 4 * 6 5 * Author: Tor Jeremiassen <tor@ti.com>
+1 -2
tools/perf/util/cs-etm.c
··· 1 + // SPDX-License-Identifier: GPL-2.0 1 2 /* 2 - * SPDX-License-Identifier: GPL-2.0 3 - * 4 3 * Copyright(C) 2015-2018 Linaro Limited. 5 4 * 6 5 * Author: Tor Jeremiassen <tor@ti.com>
+1 -12
tools/perf/util/cs-etm.h
··· 1 + /* SPDX-License-Identifier: GPL-2.0 */ 1 2 /* 2 3 * Copyright(C) 2015 Linaro Limited. All rights reserved. 3 4 * Author: Mathieu Poirier <mathieu.poirier@linaro.org> 4 - * 5 - * This program is free software; you can redistribute it and/or modify it 6 - * under the terms of the GNU General Public License version 2 as published by 7 - * the Free Software Foundation. 8 - * 9 - * This program is distributed in the hope that it will be useful, but WITHOUT 10 - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 12 - * more details. 13 - * 14 - * You should have received a copy of the GNU General Public License along with 15 - * this program. If not, see <http://www.gnu.org/licenses/>. 16 5 */ 17 6 18 7 #ifndef INCLUDE__UTIL_PERF_CS_ETM_H__
+3 -1
tools/perf/util/event.c
··· 1421 1421 size_t perf_event__fprintf_switch(union perf_event *event, FILE *fp) 1422 1422 { 1423 1423 bool out = event->header.misc & PERF_RECORD_MISC_SWITCH_OUT; 1424 - const char *in_out = out ? "OUT" : "IN "; 1424 + const char *in_out = !out ? "IN " : 1425 + !(event->header.misc & PERF_RECORD_MISC_SWITCH_OUT_PREEMPT) ? 1426 + "OUT " : "OUT preempt"; 1425 1427 1426 1428 if (event->header.type == PERF_RECORD_SWITCH) 1427 1429 return fprintf(fp, " %s\n", in_out);
+2 -4
tools/perf/util/evsel.c
··· 2870 2870 #if defined(__i386__) || defined(__x86_64__) 2871 2871 if (evsel->attr.type == PERF_TYPE_HARDWARE) 2872 2872 return scnprintf(msg, size, "%s", 2873 - "No hardware sampling interrupt available.\n" 2874 - "No APIC? If so then you can boot the kernel with the \"lapic\" boot parameter to force-enable it."); 2873 + "No hardware sampling interrupt available.\n"); 2875 2874 #endif 2876 2875 break; 2877 2876 case EBUSY: ··· 2893 2894 2894 2895 return scnprintf(msg, size, 2895 2896 "The sys_perf_event_open() syscall returned with %d (%s) for event (%s).\n" 2896 - "/bin/dmesg may provide additional information.\n" 2897 - "No CONFIG_PERF_EVENTS=y kernel support configured?", 2897 + "/bin/dmesg | grep -i perf may provide additional information.\n", 2898 2898 err, str_error_r(err, sbuf, sizeof(sbuf)), 2899 2899 perf_evsel__name(evsel)); 2900 2900 }
+1 -1
tools/perf/util/generate-cmdlist.sh
··· 38 38 done 39 39 echo "#endif /* HAVE_LIBELF_SUPPORT */" 40 40 41 - echo "#if defined(HAVE_LIBAUDIT_SUPPORT) || defined(HAVE_SYSCALL_TABLE)" 41 + echo "#if defined(HAVE_LIBAUDIT_SUPPORT) || defined(HAVE_SYSCALL_TABLE_SUPPORT)" 42 42 sed -n -e 's/^perf-\([^ ]*\)[ ].* audit*/\1/p' command-list.txt | 43 43 sort | 44 44 while read cmd
+2 -1
tools/perf/util/header.c
··· 1320 1320 1321 1321 dir = opendir(path); 1322 1322 if (!dir) { 1323 - pr_warning("failed: can't open node sysfs data\n"); 1323 + pr_debug2("%s: could't read %s, does this arch have topology information?\n", 1324 + __func__, path); 1324 1325 return -1; 1325 1326 } 1326 1327
+6
tools/perf/util/pmu.c
··· 562 562 if (stat(path, &st) == 0) 563 563 return 1; 564 564 565 + /* Look for cpu sysfs (specific to s390) */ 566 + scnprintf(path, PATH_MAX, "%s/bus/event_source/devices/%s", 567 + sysfs, name); 568 + if (stat(path, &st) == 0 && !strncmp(name, "cpum_", 5)) 569 + return 1; 570 + 565 571 return 0; 566 572 } 567 573
+3 -5
tools/perf/util/symbol.c
··· 2091 2091 2092 2092 int symbol__annotation_init(void) 2093 2093 { 2094 + if (symbol_conf.init_annotation) 2095 + return 0; 2096 + 2094 2097 if (symbol_conf.initialized) { 2095 2098 pr_err("Annotation needs to be init before symbol__init()\n"); 2096 2099 return -1; 2097 - } 2098 - 2099 - if (symbol_conf.init_annotation) { 2100 - pr_warning("Annotation being initialized multiple times\n"); 2101 - return 0; 2102 2100 } 2103 2101 2104 2102 symbol_conf.priv_size += sizeof(struct annotation);
+3 -3
tools/perf/util/syscalltbl.c
··· 17 17 #include <stdlib.h> 18 18 #include <linux/compiler.h> 19 19 20 - #ifdef HAVE_SYSCALL_TABLE 20 + #ifdef HAVE_SYSCALL_TABLE_SUPPORT 21 21 #include <string.h> 22 22 #include "string2.h" 23 23 #include "util.h" ··· 139 139 return syscalltbl__strglobmatch_next(tbl, syscall_glob, idx); 140 140 } 141 141 142 - #else /* HAVE_SYSCALL_TABLE */ 142 + #else /* HAVE_SYSCALL_TABLE_SUPPORT */ 143 143 144 144 #include <libaudit.h> 145 145 ··· 176 176 { 177 177 return syscalltbl__strglobmatch_next(tbl, syscall_glob, idx); 178 178 } 179 - #endif /* HAVE_SYSCALL_TABLE */ 179 + #endif /* HAVE_SYSCALL_TABLE_SUPPORT */
+2 -2
tools/perf/util/trace-event-scripting.c
··· 98 98 } 99 99 } 100 100 101 - #ifdef NO_LIBPYTHON 101 + #ifndef HAVE_LIBPYTHON_SUPPORT 102 102 void setup_python_scripting(void) 103 103 { 104 104 register_python_scripting(&python_scripting_unsupported_ops); ··· 161 161 } 162 162 } 163 163 164 - #ifdef NO_LIBPERL 164 + #ifndef HAVE_LIBPERL_SUPPORT 165 165 void setup_perl_scripting(void) 166 166 { 167 167 register_perl_scripting(&perl_scripting_unsupported_ops);