Skip to content

Commit

Permalink
Merge tag 'perf-tools-fixes-for-v5.18-2022-05-14' of git:https://git.kernel…
Browse files Browse the repository at this point in the history
….org/pub/scm/linux/kernel/git/acme/linux

Pull perf tools fixes from Arnaldo Carvalho de Melo:

 - Fix two NDEBUG warnings in 'perf bench numa'

 - Fix ARM coresight `perf test` failure

 - Sync linux/kvm.h with the kernel sources

 - Add James and Mike as Arm64 performance events reviewers

* tag 'perf-tools-fixes-for-v5.18-2022-05-14' of git:https://git.kernel.org/pub/scm/linux/kernel/git/acme/linux:
  MAINTAINERS: Add James and Mike as Arm64 performance events reviewers
  tools headers UAPI: Sync linux/kvm.h with the kernel sources
  perf tests: Fix coresight `perf test` failure.
  perf bench: Fix two numa NDEBUG warnings
  • Loading branch information
torvalds committed May 14, 2022
2 parents ec7f496 + c46721e commit 2fe1020
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
3 changes: 2 additions & 1 deletion MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -15477,7 +15477,8 @@ F: tools/perf/
PERFORMANCE EVENTS TOOLING ARM64
R: John Garry <[email protected]>
R: Will Deacon <[email protected]>
R: Mathieu Poirier <[email protected]>
R: James Clark <[email protected]>
R: Mike Leach <[email protected]>
R: Leo Yan <[email protected]>
L: [email protected] (moderated for non-subscribers)
S: Supported
Expand Down
10 changes: 9 additions & 1 deletion tools/include/uapi/linux/kvm.h
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,13 @@ struct kvm_run {
#define KVM_SYSTEM_EVENT_RESET 2
#define KVM_SYSTEM_EVENT_CRASH 3
__u32 type;
__u64 flags;
__u32 ndata;
union {
#ifndef __KERNEL__
__u64 flags;
#endif
__u64 data[16];
};
} system_event;
/* KVM_EXIT_S390_STSI */
struct {
Expand Down Expand Up @@ -1144,6 +1150,8 @@ struct kvm_ppc_resize_hpt {
#define KVM_CAP_S390_MEM_OP_EXTENSION 211
#define KVM_CAP_PMU_CAPABILITY 212
#define KVM_CAP_DISABLE_QUIRKS2 213
/* #define KVM_CAP_VM_TSC_CONTROL 214 */
#define KVM_CAP_SYSTEM_EVENT_DATA 215

#ifdef KVM_CAP_IRQ_ROUTING

Expand Down
2 changes: 2 additions & 0 deletions tools/perf/bench/numa.c
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ static cpu_set_t *bind_to_cpu(int target_cpu)

/* BUG_ON due to failure in allocation of orig_mask/mask */
BUG_ON(-1);
return NULL;
}

static cpu_set_t *bind_to_node(int target_node)
Expand Down Expand Up @@ -364,6 +365,7 @@ static cpu_set_t *bind_to_node(int target_node)

/* BUG_ON due to failure in allocation of orig_mask/mask */
BUG_ON(-1);
return NULL;
}

static void bind_to_cpumask(cpu_set_t *mask)
Expand Down
1 change: 0 additions & 1 deletion tools/perf/tests/shell/test_arm_coresight.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ cleanup_files()
rm -f ${file}
rm -f "${perfdata}.old"
trap - exit term int
kill -2 $$
exit $glb_err
}

Expand Down

0 comments on commit 2fe1020

Please sign in to comment.