Skip to content

Commit 2fe1020

Browse files
committed
Merge tag 'perf-tools-fixes-for-v5.18-2022-05-14' of git://git.kernel.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://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
2 parents ec7f496 + c46721e commit 2fe1020

File tree

4 files changed

+13
-3
lines changed

4 files changed

+13
-3
lines changed

MAINTAINERS

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15477,7 +15477,8 @@ F: tools/perf/
1547715477
PERFORMANCE EVENTS TOOLING ARM64
1547815478
R: John Garry <[email protected]>
1547915479
R: Will Deacon <[email protected]>
15480-
R: Mathieu Poirier <[email protected]>
15480+
R: James Clark <[email protected]>
15481+
R: Mike Leach <[email protected]>
1548115482
R: Leo Yan <[email protected]>
1548215483
L: [email protected] (moderated for non-subscribers)
1548315484
S: Supported

tools/include/uapi/linux/kvm.h

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,13 @@ struct kvm_run {
445445
#define KVM_SYSTEM_EVENT_RESET 2
446446
#define KVM_SYSTEM_EVENT_CRASH 3
447447
__u32 type;
448-
__u64 flags;
448+
__u32 ndata;
449+
union {
450+
#ifndef __KERNEL__
451+
__u64 flags;
452+
#endif
453+
__u64 data[16];
454+
};
449455
} system_event;
450456
/* KVM_EXIT_S390_STSI */
451457
struct {
@@ -1144,6 +1150,8 @@ struct kvm_ppc_resize_hpt {
11441150
#define KVM_CAP_S390_MEM_OP_EXTENSION 211
11451151
#define KVM_CAP_PMU_CAPABILITY 212
11461152
#define KVM_CAP_DISABLE_QUIRKS2 213
1153+
/* #define KVM_CAP_VM_TSC_CONTROL 214 */
1154+
#define KVM_CAP_SYSTEM_EVENT_DATA 215
11471155

11481156
#ifdef KVM_CAP_IRQ_ROUTING
11491157

tools/perf/bench/numa.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,7 @@ static cpu_set_t *bind_to_cpu(int target_cpu)
311311

312312
/* BUG_ON due to failure in allocation of orig_mask/mask */
313313
BUG_ON(-1);
314+
return NULL;
314315
}
315316

316317
static cpu_set_t *bind_to_node(int target_node)
@@ -364,6 +365,7 @@ static cpu_set_t *bind_to_node(int target_node)
364365

365366
/* BUG_ON due to failure in allocation of orig_mask/mask */
366367
BUG_ON(-1);
368+
return NULL;
367369
}
368370

369371
static void bind_to_cpumask(cpu_set_t *mask)

tools/perf/tests/shell/test_arm_coresight.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ cleanup_files()
2929
rm -f ${file}
3030
rm -f "${perfdata}.old"
3131
trap - exit term int
32-
kill -2 $$
3332
exit $glb_err
3433
}
3534

0 commit comments

Comments
 (0)