drm/xe/pmu: Enable PMU interface
Subsystems (3)
cover drm/xe/pmu: Enable PMU interface
There are a set of engine group busyness counters provided by HW which are perfect fit to be exposed via PMU perf events.
BSPEC: 46559, 46560, 46722, 46729
events can be listed using:
perf list
xe_0000_03_00.0/any-engine-group-busy-gt0/ [Kernel PMU event] xe_0000_03_00.0/copy-group-busy-gt0/ [Kernel PMU event] xe_0000_03_00.0/interrupts/ [Kernel PMU event] xe_0000_03_00.0/media-group-busy-gt0/ [Kernel PMU event] xe_0000_03_00.0/render-group-busy-gt0/ [Kernel PMU event]
and can be read using:
perf stat -a -e "xe_0000_03_00.0/render-group-busy-gt0/" -I 1000
time counts unit events
1.001343319 0 ns xe_0000_03_00.0/render-group-busy-gt0/
2.011523336 0 ns xe_0000_03_00.0/render-group-busy-gt0/
3.014168811 0 ns xe_0000_03_00.0/render-group-busy-gt0/
4.016671838 0 ns xe_0000_03_00.0/render-group-busy-gt0/
5.018363448 0 ns xe_0000_03_00.0/render-group-busy-gt0/
6.020125417 18446743376875220992 ns xe_0000_03_00.0/render-group-busy-gt0/
7.021584533 18446744073708230656 ns xe_0000_03_00.0/render-group-busy-gt0/
8.029878236 696835650983 ns xe_0000_03_00.0/render-group-busy-gt0/
9.032367313 0 ns xe_0000_03_00.0/render-group-busy-gt0/
10.034799448 0 ns xe_0000_03_00.0/render-group-busy-gt0/The pmu base implementation is taken from i915.
Aravind Iddamsetty (2):
drm/xe: Get GT clock to nanosecs
drm/xe/pmu: Enable PMU interface
drivers/gpu/drm/xe/Makefile | 1 + drivers/gpu/drm/xe/regs/xe_gt_regs.h | 5 + drivers/gpu/drm/xe/xe_device.c | 2 + drivers/gpu/drm/xe/xe_device_types.h | 4 + drivers/gpu/drm/xe/xe_gt_clock.c | 10 + drivers/gpu/drm/xe/xe_gt_clock.h | 4 +- drivers/gpu/drm/xe/xe_irq.c | 22 + drivers/gpu/drm/xe/xe_module.c | 5 + drivers/gpu/drm/xe/xe_pmu.c | 634 +++++++++++++++++++++++++++ drivers/gpu/drm/xe/xe_pmu.h | 22 + drivers/gpu/drm/xe/xe_pmu_types.h | 54 +++ include/uapi/drm/xe_drm.h | 16 + 12 files changed, 778 insertions(+), 1 deletion(-) create mode 100644 drivers/gpu/drm/xe/xe_pmu.c create mode 100644 drivers/gpu/drm/xe/xe_pmu.h create mode 100644 drivers/gpu/drm/xe/xe_pmu_types.h
Signature · 1 line
2.25.1
PATCH 1/2 drm/xe: Get GT clock to nanosecs
Helpers to get GT clock to nanosecs
--- drivers/gpu/drm/xe/xe_gt_clock.c | 10 ++++++++++ drivers/gpu/drm/xe/xe_gt_clock.h | 4 +++- 2 files changed, 13 insertions(+), 1 deletion(-)
drivers/gpu/drm/xe/xe_gt_clock.c +10 -0
@@ -78,3 +78,13 @@ int xe_gt_clock_init(struct xe_gt *gt) gt->info.clock_freq = freq;return 0 ; } + +static u64 div_u64_roundup (u64 nom,u32 den) +{ +return div_u64 (nom + den -1 , den); +} + +u64 xe_gt_clock_interval_to_ns (const struct xe_gt *gt,u64 count) +{ +return div_u64_roundup (count *NSEC_PER_SEC , gt->info.clock_freq); +}
drivers/gpu/drm/xe/xe_gt_clock.h +3 -1
@@ -6,8 +6,10 @@#ifndef _XE_GT_CLOCK_H_#define _XE_GT_CLOCK_H_ +#include <linux/types.h> +struct xe_gt ;int xe_gt_clock_init (struct xe_gt *gt); - +u64 xe_gt_clock_interval_to_ns (const struct xe_gt *gt,u64 count);#endif
Signature · 1 line
2.25.1
PATCH 2/2 drm/xe/pmu: Enable PMU interface
In reply to Aravind IddamsettyThere are a set of engine group busyness counters provided by HW which are perfect fit to be exposed via PMU perf events.
BSPEC: 46559, 46560, 46722, 46729
events can be listed using:
perf list
xe_0000_03_00.0/any-engine-group-busy-gt0/ [Kernel PMU event] xe_0000_03_00.0/copy-group-busy-gt0/ [Kernel PMU event] xe_0000_03_00.0/interrupts/ [Kernel PMU event] xe_0000_03_00.0/media-group-busy-gt0/ [Kernel PMU event] xe_0000_03_00.0/render-group-busy-gt0/ [Kernel PMU event]
and can be read using:
perf stat -e "xe_0000_03_00.0/render-group-busy-gt0/" -I 1000
time counts unit events
1.001343319 0 ns xe_0000_03_00.0/render-group-busy-gt0/
2.011523336 0 ns xe_0000_03_00.0/render-group-busy-gt0/
3.014168811 0 ns xe_0000_03_00.0/render-group-busy-gt0/
4.016671838 0 ns xe_0000_03_00.0/render-group-busy-gt0/
5.018363448 0 ns xe_0000_03_00.0/render-group-busy-gt0/
6.020125417 18446743376875220992 ns xe_0000_03_00.0/render-group-busy-gt0/
7.021584533 18446744073708230656 ns xe_0000_03_00.0/render-group-busy-gt0/
8.029878236 696835650983 ns xe_0000_03_00.0/render-group-busy-gt0/
9.032367313 0 ns xe_0000_03_00.0/render-group-busy-gt0/
10.034799448 0 ns xe_0000_03_00.0/render-group-busy-gt0/The pmu base implementation is taken from i915.
--- drivers/gpu/drm/xe/Makefile | 1 + drivers/gpu/drm/xe/regs/xe_gt_regs.h | 5 + drivers/gpu/drm/xe/xe_device.c | 2 + drivers/gpu/drm/xe/xe_device_types.h | 4 + drivers/gpu/drm/xe/xe_irq.c | 22 + drivers/gpu/drm/xe/xe_module.c | 5 + drivers/gpu/drm/xe/xe_pmu.c | 634 +++++++++++++++++++++++++++ drivers/gpu/drm/xe/xe_pmu.h | 22 + drivers/gpu/drm/xe/xe_pmu_types.h | 54 +++ include/uapi/drm/xe_drm.h | 16 + 10 files changed, 765 insertions(+) create mode 100644 drivers/gpu/drm/xe/xe_pmu.c create mode 100644 drivers/gpu/drm/xe/xe_pmu.h create mode 100644 drivers/gpu/drm/xe/xe_pmu_types.h
drivers/gpu/drm/xe/Makefile +1 -0
@@ -85,6 +85,7 @@ xe-y += xe_bb.o \ xe_pci.o \ xe_pcode.o \ xe_pm.o \ + xe_pmu.o \ xe_preempt_fence.o \ xe_pt.o \ xe_pt_walk.o \
drivers/gpu/drm/xe/regs/xe_gt_regs.h +5 -0
@@ -285,6 +285,11 @@#define INVALIDATION_BROADCAST_MODE_DIS REG_BIT(12)#define GLOBAL_INVALIDATION_MODE REG_BIT(2) +#define XE_OAG_RC0_ANY_ENGINE_BUSY_FREE XE_REG(0xdb80) +#define XE_OAG_ANY_MEDIA_FF_BUSY_FREE XE_REG(0xdba0) +#define XE_OAG_BLT_BUSY_FREE XE_REG(0xdbbc) +#define XE_OAG_RENDER_BUSY_FREE XE_REG(0xdbdc) +#define SAMPLER_MODE XE_REG_MCR(0xe18c, XE_REG_OPTION_MASKED)#define ENABLE_SMALLPL REG_BIT(15)#define SC_DISABLE_POWER_OPTIMIZATION_EBB REG_BIT(9)
drivers/gpu/drm/xe/xe_device.c +2 -0
@@ -328,6 +328,8 @@ int xe_device_probe(struct xe_device *xe)xe_debugfs_register (xe); +xe_pmu_register (&xe->pmu); + err =drmm_add_action_or_reset (&xe->drm, xe_device_sanitize, xe);if (err)return err;
drivers/gpu/drm/xe/xe_device_types.h +4 -0
@@ -15,6 +15,7 @@#include "xe_devcoredump_types.h" #include "xe_gt_types.h" #include "xe_platform_types.h" +#include "xe_pmu.h" #include "xe_step_types.h" #if IS_ENABLED (CONFIG_DRM_XE_DISPLAY )
@@ -332,6 +333,9 @@ struct xe_device {/** @d3cold_allowed: Indicates if d3cold is a valid device state */ bool d3cold_allowed; +/* @pmu: performance monitoring unit */ +struct xe_pmu pmu; +/* private: */ #if IS_ENABLED (CONFIG_DRM_XE_DISPLAY )
drivers/gpu/drm/xe/xe_irq.c +22 -0
@@ -27,6 +27,24 @@#define IIR (offset) XE_REG(offset + 0x8)#define IER (offset) XE_REG(offset + 0xc) +/* +* Interrupt statistic for PMU. Increments the counter only if the +* interrupt originated from the GPU so interrupts from a device which +* shares the interrupt line are not accounted. +*/ +static inline void xe_pmu_irq_stats (struct xe_device *xe, +irqreturn_t res) +{ +if (unlikely (res !=IRQ_HANDLED )) +return ; + +/* +* A clever compiler translates that into INC. A not so clever one +* should at least prevent store tearing. +*/ +WRITE_ONCE (xe->pmu.irq_count, xe->pmu.irq_count +1 ); +} +static void assert_iir_is_zero (struct xe_gt *mmio,struct xe_reg reg) {u32 val =xe_mmio_read32 (mmio, reg);
@@ -325,6 +343,8 @@ static irqreturn_t xelp_irq_handler(int irq, void *arg)xe_display_irq_enable (xe, gu_misc_iir); +xe_pmu_irq_stats (xe,IRQ_HANDLED ); +return IRQ_HANDLED ; }
@@ -414,6 +434,8 @@ static irqreturn_t dg1_irq_handler(int irq, void *arg)dg1_intr_enable (xe, false);xe_display_irq_enable (xe, gu_misc_iir); +xe_pmu_irq_stats (xe,IRQ_HANDLED ); +return IRQ_HANDLED ; }
drivers/gpu/drm/xe/xe_module.c +5 -0
@@ -12,6 +12,7 @@#include "xe_hw_fence.h" #include "xe_module.h" #include "xe_pci.h" +#include "xe_pmu.h" #include "xe_sched_job.h" bool enable_guc = true;
@@ -49,6 +50,10 @@ static const struct init_funcs init_funcs[] = { .init = xe_sched_job_module_init, .exit = xe_sched_job_module_exit, }, + { + .init = xe_pmu_init, + .exit = xe_pmu_exit, + }, { .init = xe_register_pci_driver, .exit = xe_unregister_pci_driver,
drivers/gpu/drm/xe/xe_pmu.c new file +634 -0
634 lines not on this page · raw message
drivers/gpu/drm/xe/xe_pmu.h new file +22 -0
@@ -0,0 +1,22 @@ +/* SPDX-License-Identifier: MIT */ +/* +* Copyright © 2023 Intel Corporation +*/ + +#ifndef _XE_PMU_H_ +#define _XE_PMU_H_ + +#include "xe_pmu_types.h" + +#ifdef CONFIG_PERF_EVENTS +int xe_pmu_init (void ); +void xe_pmu_exit (void ); +void xe_pmu_register (struct xe_pmu *pmu); +#else +static inline int xe_pmu_init (void ) {return 0 ; } +static inline void xe_pmu_exit (void ) {} +static inline void xe_pmu_register (struct xe_pmu *pmu) {} +#endif + +#endif +
drivers/gpu/drm/xe/xe_pmu_types.h new file +54 -0
54 lines not on this page · raw message
include/uapi/drm/xe_drm.h +16 -0
@@ -821,6 +821,22 @@ struct drm_xe_vm_madvise {__u64 reserved[2 ]; }; +/* PMU event config IDs */ + +/* +* Top 4 bits of every counter are GT id. +*/ +#define __XE_PMU_GT_SHIFT (60) + +#define ___XE_PMU_OTHER (gt, x) \ + (((__u64)(x)) | ((__u64)(gt) << __XE_PMU_GT_SHIFT)) + +#define XE_PMU_INTERRUPTS (gt) ___XE_PMU_OTHER(gt, 0) +#define XE_PMU_RENDER_GROUP_BUSY (gt) ___XE_PMU_OTHER(gt, 1) +#define XE_PMU_COPY_GROUP_BUSY (gt) ___XE_PMU_OTHER(gt, 2) +#define XE_PMU_MEDIA_GROUP_BUSY (gt) ___XE_PMU_OTHER(gt, 3) +#define XE_PMU_ANY_ENGINE_GROUP_BUSY (gt) ___XE_PMU_OTHER(gt, 4) +#if defined(__cplusplus) }#endif
Signature · 1 line
2.25.1
Patchwork
CI[Intel-xe] ✓ CI.Patch_applied: success for drm/xe/pmu: Enable PMU interface
In reply to Aravind Iddamsetty== Series Details ==
== Series Details ==
Series: drm/xe/pmu: Enable PMU interface
URL : https://patchwork.freedesktop.org/series/119504/
State : success
== Summary ==
=== Applying kernel patches on branch 'drm-xe-next' with base: === Base commit: 8bf305693 drm/xe/display: Append dma_buf fences to framebuffer fences === git am output follows ===
.git/rebase-apply/patch:817: new blank line at EOF.
+
warning: 1 line adds whitespace errors.
Applying: drm/xe: Get GT clock to nanosecs
Applying: drm/xe/pmu: Enable PMU interface
Patchwork
CI[Intel-xe] ✗ CI.checkpatch: warning for drm/xe/pmu: Enable PMU interface
In reply to Aravind Iddamsetty== Series Details ==
== Series Details ==
Series: drm/xe/pmu: Enable PMU interface
URL : https://patchwork.freedesktop.org/series/119504/
State : warning
== Summary ==
+ KERNEL=/kernel
+ git clone https://gitlab.freedesktop.org/drm/maintainer-tools mt Cloning into 'mt'...
warning: redirecting to https://gitlab.freedesktop.org/drm/maintainer-tools.git/
+ git -C mt rev-list -n1 origin/master c7d32770e3cd31d9fc134ce41f329b10aa33ee15
+ cd /kernel
+ git config --global --add safe.directory /kernel
+ git log -n1
commit 9b47915a1aa2b2c58a6109a6bf6bc4d9f3944516
Author: Aravind Iddamsetty <[email protected]> Date: Mon Jun 19 10:21:28 2023 +0530
drm/xe/pmu: Enable PMU interface
There are a set of engine group busyness counters provided by HW which are
perfect fit to be exposed via PMU perf events.
BSPEC: 46559, 46560, 46722, 46729
events can be listed using:
perf list
xe_0000_03_00.0/any-engine-group-busy-gt0/ [Kernel PMU event]
xe_0000_03_00.0/copy-group-busy-gt0/ [Kernel PMU event]
xe_0000_03_00.0/interrupts/ [Kernel PMU event]
xe_0000_03_00.0/media-group-busy-gt0/ [Kernel PMU event]
xe_0000_03_00.0/render-group-busy-gt0/ [Kernel PMU event]
and can be read using:
perf stat -e "xe_0000_03_00.0/render-group-busy-gt0/" -I 1000
time counts unit events
1.001343319 0 ns xe_0000_03_00.0/render-group-busy-gt0/
2.011523336 0 ns xe_0000_03_00.0/render-group-busy-gt0/
3.014168811 0 ns xe_0000_03_00.0/render-group-busy-gt0/
4.016671838 0 ns xe_0000_03_00.0/render-group-busy-gt0/
5.018363448 0 ns xe_0000_03_00.0/render-group-busy-gt0/
6.020125417 18446743376875220992 ns xe_0000_03_00.0/render-group-busy-gt0/
7.021584533 18446744073708230656 ns xe_0000_03_00.0/render-group-busy-gt0/
8.029878236 696835650983 ns xe_0000_03_00.0/render-group-busy-gt0/
9.032367313 0 ns xe_0000_03_00.0/render-group-busy-gt0/
10.034799448 0 ns xe_0000_03_00.0/render-group-busy-gt0/
The pmu base implementation is taken from i915.
Co-developed-by: Tvrtko Ursulin <[email protected]>
Co-developed-by: Bommu Krishnaiah <[email protected]>
Signed-off-by: Aravind Iddamsetty <[email protected]>+ /mt/dim checkpatch 8bf305693c7aa4cadfa30d28ce9ed635711142d3 drm-intel0c7f872ab drm/xe: Get GT clock to nanosecs9b47915a1 drm/xe/pmu: Enable PMU interface
Traceback (most recent call last):
File "scripts/spdxcheck.py", line 6, in <module>
from ply import lex, yacc
ModuleNotFoundError: No module named 'ply'
Traceback (most recent call last):
File "scripts/spdxcheck.py", line 6, in <module>
from ply import lex, yacc
ModuleNotFoundError: No module named 'ply'
-:22: WARNING:COMMIT_LOG_LONG_LINE: Possible unwrapped commit description (prefer a maximum 75 chars per line) #22:
1.001343319 0 ns xe_0000_03_00.0/render-group-busy-gt0/
-:35: WARNING:BAD_SIGN_OFF: Co-developed-by: must be immediately followed by Signed-off-by:
#35:
-:36: WARNING:BAD_SIGN_OFF: Co-developed-by and Signed-off-by: name/email do not match #36:
-:173: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating? #173:
new file mode 100644
-:178: WARNING:SPDX_LICENSE_TAG: Missing or malformed SPDX-License-Identifier tag in line 1 #178: FILE: drivers/gpu/drm/xe/xe_pmu.c:1:
+/*
-:179: WARNING:SPDX_LICENSE_TAG: Misplaced SPDX-License-Identifier tag - use line 1 instead #179: FILE: drivers/gpu/drm/xe/xe_pmu.c:2:
+ * SPDX-License-Identifier: MIT
-:640: WARNING:AVOID_BUG: Do not crash the kernel unless it is absolutely unavoidable--use WARN_ON_ONCE() plus recovery code (if feasible) instead of BUG() or variants #640: FILE: drivers/gpu/drm/xe/xe_pmu.c:463:
+ XE_BUG_ON(!pmu->base.event_init);
-:654: WARNING:AVOID_BUG: Do not crash the kernel unless it is absolutely unavoidable--use WARN_ON_ONCE() plus recovery code (if feasible) instead of BUG() or variants #654: FILE: drivers/gpu/drm/xe/xe_pmu.c:477:
+ XE_BUG_ON(!pmu->base.event_init);
total: 0 errors, 8 warnings, 0 checks, 831 lines checked
Patchwork
CI[Intel-xe] ✗ CI.KUnit: failure for drm/xe/pmu: Enable PMU interface
In reply to Aravind Iddamsetty== Series Details ==
== Series Details ==
Series: drm/xe/pmu: Enable PMU interface
URL : https://patchwork.freedesktop.org/series/119504/
State : failure
== Summary ==
+ trap cleanup EXIT
+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/drm/xe/.kunitconfig ERROR:root:In file included from ../include/linux/list.h:5,
from ../include/drm/drm_drv.h:30,
from ../drivers/gpu/drm/xe/xe_pmu.c:7:../drivers/gpu/drm/xe/xe_pmu.c: In function ‘xe_pmu_event_destroy’:../drivers/gpu/drm/xe/xe_pmu.c:32:21: error: ‘struct perf_event’ has no member named ‘pmu’
32 | container_of(event->pmu, typeof(*xe), pmu.base);
| ^~../include/linux/container_of.h:19:26: note: in definition of macro ‘container_of’
19 | void *__mptr = (void *)(ptr); \
| ^~~
In file included from ../include/linux/container_of.h:5,
from ../include/linux/list.h:5,
from ../include/drm/drm_drv.h:30,
from ../drivers/gpu/drm/xe/xe_pmu.c:7:../drivers/gpu/drm/xe/xe_pmu.c:32:21: error: ‘struct perf_event’ has no member named ‘pmu’
32 | container_of(event->pmu, typeof(*xe), pmu.base);
| ^~../include/linux/build_bug.h:78:56: note: in definition of macro ‘__static_assert’
78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg)
| ^~~~../include/linux/container_of.h:20:2: note: in expansion of macro ‘static_assert’
20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \
| ^~~~~~~~~~~~~
../include/linux/container_of.h:20:16: note: in expansion of macro ‘__same_type’
20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \
| ^~~~~~~~~~~
../drivers/gpu/drm/xe/xe_pmu.c:32:3: note: in expansion of macro ‘container_of’
32 | container_of(event->pmu, typeof(*xe), pmu.base);
| ^~~~~~~~~~~~../drivers/gpu/drm/xe/xe_pmu.c:32:21: error: ‘struct perf_event’ has no member named ‘pmu’
32 | container_of(event->pmu, typeof(*xe), pmu.base);
| ^~../include/linux/build_bug.h:78:56: note: in definition of macro ‘__static_assert’
78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg)
| ^~~~../include/linux/container_of.h:20:2: note: in expansion of macro ‘static_assert’
20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \
| ^~~~~~~~~~~~~
../include/linux/container_of.h:21:9: note: in expansion of macro ‘__same_type’
21 | __same_type(*(ptr), void), \
| ^~~~~~~~~~~
../drivers/gpu/drm/xe/xe_pmu.c:32:3: note: in expansion of macro ‘container_of’
32 | container_of(event->pmu, typeof(*xe), pmu.base);
| ^~~~~~~~~~~~
./../include/linux/compiler_types.h:338:27: error: expression in static assertion is not an integer
338 | #define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~../include/linux/build_bug.h:78:56: note: in definition of macro ‘__static_assert’
78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg)
| ^~~~../include/linux/container_of.h:20:2: note: in expansion of macro ‘static_assert’
20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \
| ^~~~~~~~~~~~~
../include/linux/container_of.h:20:16: note: in expansion of macro ‘__same_type’
20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \
| ^~~~~~~~~~~
../drivers/gpu/drm/xe/xe_pmu.c:32:3: note: in expansion of macro ‘container_of’
32 | container_of(event->pmu, typeof(*xe), pmu.base);
| ^~~~~~~~~~~~
In file included from ./arch/um/include/generated/asm/bug.h:1,
from ../include/linux/bug.h:5,
from ../include/linux/thread_info.h:13,
from ../include/asm-generic/preempt.h:5,
from ./arch/um/include/generated/asm/preempt.h:1,
from ../include/linux/preempt.h:78,
from ../include/linux/spinlock.h:56,
from ../include/linux/kref.h:16,
from ../include/drm/drm_device.h:5,
from ../include/drm/drm_drv.h:35,
from ../drivers/gpu/drm/xe/xe_pmu.c:7:../drivers/gpu/drm/xe/xe_pmu.c:34:29: error: ‘struct perf_event’ has no member named ‘parent’
34 | drm_WARN_ON(&xe->drm, event->parent);
| ^~../include/asm-generic/bug.h:131:25: note: in definition of macro ‘WARN’
131 | int __ret_warn_on = !!(condition); \
| ^~~~~~~~~
../include/drm/drm_print.h:630:2: note: in expansion of macro ‘drm_WARN’
630 | drm_WARN((drm), (x), "%s", \
| ^~~~~~~~
../drivers/gpu/drm/xe/xe_pmu.c:34:2: note: in expansion of macro ‘drm_WARN_ON’
34 | drm_WARN_ON(&xe->drm, event->parent);
| ^~~~~~~~~~~
In file included from ../include/linux/list.h:5,
from ../include/drm/drm_drv.h:30,
from ../drivers/gpu/drm/xe/xe_pmu.c:7:../drivers/gpu/drm/xe/xe_pmu.c: In function ‘xe_pmu_event_init’:../drivers/gpu/drm/xe/xe_pmu.c:98:21: error: ‘struct perf_event’ has no member named ‘pmu’
98 | container_of(event->pmu, typeof(*xe), pmu.base);
| ^~../include/linux/container_of.h:19:26: note: in definition of macro ‘container_of’
19 | void *__mptr = (void *)(ptr); \
| ^~~
In file included from ../include/linux/container_of.h:5,
from ../include/linux/list.h:5,
from ../include/drm/drm_drv.h:30,
from ../drivers/gpu/drm/xe/xe_pmu.c:7:../drivers/gpu/drm/xe/xe_pmu.c:98:21: error: ‘struct perf_event’ has no member named ‘pmu’
98 | container_of(event->pmu, typeof(*xe), pmu.base);
| ^~../include/linux/build_bug.h:78:56: note: in definition of macro ‘__static_assert’
78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg)
| ^~~~../include/linux/container_of.h:20:2: note: in expansion of macro ‘static_assert’
20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \
| ^~~~~~~~~~~~~
../include/linux/container_of.h:20:16: note: in expansion of macro ‘__same_type’
20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \
| ^~~~~~~~~~~
../drivers/gpu/drm/xe/xe_pmu.c:98:3: note: in expansion of macro ‘container_of’
98 | container_of(event->pmu, typeof(*xe), pmu.base);
| ^~~~~~~~~~~~../drivers/gpu/drm/xe/xe_pmu.c:98:21: error: ‘struct perf_event’ has no member named ‘pmu’
98 | container_of(event->pmu, typeof(*xe), pmu.base);
| ^~../include/linux/build_bug.h:78:56: note: in definition of macro ‘__static_assert’
78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg)
| ^~~~../include/linux/container_of.h:20:2: note: in expansion of macro ‘static_assert’
20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \
| ^~~~~~~~~~~~~
../include/linux/container_of.h:21:9: note: in expansion of macro ‘__same_type’
21 | __same_type(*(ptr), void), \
| ^~~~~~~~~~~
../drivers/gpu/drm/xe/xe_pmu.c:98:3: note: in expansion of macro ‘container_of’
98 | container_of(event->pmu, typeof(*xe), pmu.base);
| ^~~~~~~~~~~~
./../include/linux/compiler_types.h:338:27: error: expression in static assertion is not an integer
338 | #define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~../include/linux/build_bug.h:78:56: note: in definition of macro ‘__static_assert’
78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg)
| ^~~~../include/linux/container_of.h:20:2: note: in expansion of macro ‘static_assert’
20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \
| ^~~~~~~~~~~~~
../include/linux/container_of.h:20:16: note: in expansion of macro ‘__same_type’
20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \
| ^~~~~~~~~~~
../drivers/gpu/drm/xe/xe_pmu.c:98:3: note: in expansion of macro ‘container_of’
98 | container_of(event->pmu, typeof(*xe), pmu.base);
| ^~~~~~~~~~~~../drivers/gpu/drm/xe/xe_pmu.c:105:11: error: ‘struct perf_event’ has no member named ‘attr’
105 | if (event->attr.type != event->pmu->type)
| ^~../drivers/gpu/drm/xe/xe_pmu.c:105:31: error: ‘struct perf_event’ has no member named ‘pmu’
105 | if (event->attr.type != event->pmu->type)
| ^~../drivers/gpu/drm/xe/xe_pmu.c:109:11: error: ‘struct perf_event’ has no member named ‘attr’
109 | if (event->attr.sample_period) /* no sampling */
| ^~../drivers/gpu/drm/xe/xe_pmu.c:112:6: error: implicit declaration of function ‘has_branch_stack’ [-Werror=implicit-function-declaration]
112 | if (has_branch_stack(event))
| ^~~~~~~~~~~~~~~~
../drivers/gpu/drm/xe/xe_pmu.c:115:11: error: ‘struct perf_event’ has no member named ‘cpu’
115 | if (event->cpu < 0)
| ^~../drivers/gpu/drm/xe/xe_pmu.c:119:29: error: ‘struct perf_event’ has no member named ‘cpu’
119 | if (!cpumask_test_cpu(event->cpu, &xe_pmu_cpumask))
| ^~../drivers/gpu/drm/xe/xe_pmu.c:122:31: error: ‘struct perf_event’ has no member named ‘attr’
122 | ret = config_status(xe, event->attr.config);
| ^~../drivers/gpu/drm/xe/xe_pmu.c:126:12: error: ‘struct perf_event’ has no member named ‘parent’
126 | if (!event->parent) {
| ^~../drivers/gpu/drm/xe/xe_pmu.c:128:8: error: ‘struct perf_event’ has no member named ‘destroy’
128 | event->destroy = xe_pmu_event_destroy;
| ^~
In file included from ../include/linux/list.h:5,
from ../include/drm/drm_drv.h:30,
from ../drivers/gpu/drm/xe/xe_pmu.c:7:../drivers/gpu/drm/xe/xe_pmu.c: In function ‘__xe_pmu_event_read’:../drivers/gpu/drm/xe/xe_pmu.c:137:21: error: ‘struct perf_event’ has no member named ‘pmu’
137 | container_of(event->pmu, typeof(*xe), pmu.base);
| ^~../include/linux/container_of.h:19:26: note: in definition of macro ‘container_of’
19 | void *__mptr = (void *)(ptr); \
| ^~~
In file included from ../include/linux/container_of.h:5,
from ../include/linux/list.h:5,
from ../include/drm/drm_drv.h:30,
from ../drivers/gpu/drm/xe/xe_pmu.c:7:../drivers/gpu/drm/xe/xe_pmu.c:137:21: error: ‘struct perf_event’ has no member named ‘pmu’
137 | container_of(event->pmu, typeof(*xe), pmu.base);
| ^~../include/linux/build_bug.h:78:56: note: in definition of macro ‘__static_assert’
78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg)
| ^~~~../include/linux/container_of.h:20:2: note: in expansion of macro ‘static_assert’
20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \
| ^~~~~~~~~~~~~
../include/linux/container_of.h:20:16: note: in expansion of macro ‘__same_type’
20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \
| ^~~~~~~~~~~
../drivers/gpu/drm/xe/xe_pmu.c:137:3: note: in expansion of macro ‘container_of’
137 | container_of(event->pmu, typeof(*xe), pmu.base);
| ^~~~~~~~~~~~../drivers/gpu/drm/xe/xe_pmu.c:137:21: error: ‘struct perf_event’ has no member named ‘pmu’
137 | container_of(event->pmu, typeof(*xe), pmu.base);
| ^~../include/linux/build_bug.h:78:56: note: in definition of macro ‘__static_assert’
78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg)
| ^~~~../include/linux/container_of.h:20:2: note: in expansion of macro ‘static_assert’
20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \
| ^~~~~~~~~~~~~
../include/linux/container_of.h:21:9: note: in expansion of macro ‘__same_type’
21 | __same_type(*(ptr), void), \
| ^~~~~~~~~~~
../drivers/gpu/drm/xe/xe_pmu.c:137:3: note: in expansion of macro ‘container_of’
137 | container_of(event->pmu, typeof(*xe), pmu.base);
| ^~~~~~~~~~~~
./../include/linux/compiler_types.h:338:27: error: expression in static assertion is not an integer
338 | #define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~../include/linux/build_bug.h:78:56: note: in definition of macro ‘__static_assert’
78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg)
| ^~~~../include/linux/container_of.h:20:2: note: in expansion of macro ‘static_assert’
20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \
| ^~~~~~~~~~~~~
../include/linux/container_of.h:20:16: note: in expansion of macro ‘__same_type’
20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \
| ^~~~~~~~~~~
../drivers/gpu/drm/xe/xe_pmu.c:137:3: note: in expansion of macro ‘container_of’
137 | container_of(event->pmu, typeof(*xe), pmu.base);
| ^~~~~~~~~~~~../drivers/gpu/drm/xe/xe_pmu.c:138:47: error: ‘struct perf_event’ has no member named ‘attr’
138 | const unsigned int gt_id = config_gt_id(event->attr.config);
| ^~../drivers/gpu/drm/xe/xe_pmu.c:139:41: error: ‘struct perf_event’ has no member named ‘attr’
139 | const u64 config = config_counter(event->attr.config);
| ^~
In file included from ../include/linux/list.h:5,
from ../include/drm/drm_drv.h:30,
from ../drivers/gpu/drm/xe/xe_pmu.c:7:../drivers/gpu/drm/xe/xe_pmu.c: In function ‘xe_pmu_event_read’:../drivers/gpu/drm/xe/xe_pmu.c:161:21: error: ‘struct perf_event’ has no member named ‘pmu’
161 | container_of(event->pmu, typeof(*xe), pmu.base);
| ^~../include/linux/container_of.h:19:26: note: in definition of macro ‘container_of’
19 | void *__mptr = (void *)(ptr); \
| ^~~
In file included from ../include/linux/container_of.h:5,
from ../include/linux/list.h:5,
from ../include/drm/drm_drv.h:30,
from ../drivers/gpu/drm/xe/xe_pmu.c:7:../drivers/gpu/drm/xe/xe_pmu.c:161:21: error: ‘struct perf_event’ has no member named ‘pmu’
161 | container_of(event->pmu, typeof(*xe), pmu.base);
| ^~../include/linux/build_bug.h:78:56: note: in definition of macro ‘__static_assert’
78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg)
| ^~~~../include/linux/container_of.h:20:2: note: in expansion of macro ‘static_assert’
20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \
| ^~~~~~~~~~~~~
../include/linux/container_of.h:20:16: note: in expansion of macro ‘__same_type’
20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \
| ^~~~~~~~~~~
../drivers/gpu/drm/xe/xe_pmu.c:161:3: note: in expansion of macro ‘container_of’
161 | container_of(event->pmu, typeof(*xe), pmu.base);
| ^~~~~~~~~~~~../drivers/gpu/drm/xe/xe_pmu.c:161:21: error: ‘struct perf_event’ has no member named ‘pmu’
161 | container_of(event->pmu, typeof(*xe), pmu.base);
| ^~../include/linux/build_bug.h:78:56: note: in definition of macro ‘__static_assert’
78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg)
| ^~~~../include/linux/container_of.h:20:2: note: in expansion of macro ‘static_assert’
20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \
| ^~~~~~~~~~~~~
../include/linux/container_of.h:21:9: note: in expansion of macro ‘__same_type’
21 | __same_type(*(ptr), void), \
| ^~~~~~~~~~~
../drivers/gpu/drm/xe/xe_pmu.c:161:3: note: in expansion of macro ‘container_of’
161 | container_of(event->pmu, typeof(*xe), pmu.base);
| ^~~~~~~~~~~~
./../include/linux/compiler_types.h:338:27: error: expression in static assertion is not an integer
338 | #define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~../include/linux/build_bug.h:78:56: note: in definition of macro ‘__static_assert’
78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg)
| ^~~~../include/linux/container_of.h:20:2: note: in expansion of macro ‘static_assert’
20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \
| ^~~~~~~~~~~~~
../include/linux/container_of.h:20:16: note: in expansion of macro ‘__same_type’
20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \
| ^~~~~~~~~~~
../drivers/gpu/drm/xe/xe_pmu.c:161:3: note: in expansion of macro ‘container_of’
161 | container_of(event->pmu, typeof(*xe), pmu.base);
| ^~~~~~~~~~~~../drivers/gpu/drm/xe/xe_pmu.c:162:36: error: ‘struct perf_event’ has no member named ‘hw’
162 | struct hw_perf_event *hwc = &event->hw;
| ^~../drivers/gpu/drm/xe/xe_pmu.c:167:8: error: ‘struct perf_event’ has no member named ‘hw’
167 | event->hw.state = PERF_HES_STOPPED;
| ^~
../drivers/gpu/drm/xe/xe_pmu.c:167:21: error: ‘PERF_HES_STOPPED’ undeclared (first use in this function)
167 | event->hw.state = PERF_HES_STOPPED;
| ^~~~~~~~~~~~~~~~
../drivers/gpu/drm/xe/xe_pmu.c:167:21: note: each undeclared identifier is reported only once for each function it appears in
In file included from ../include/asm-generic/local64.h:22,
from ./arch/x86/include/generated/asm/local64.h:1,
from ../include/linux/u64_stats_sync.h:71,
from ../include/linux/cgroup-defs.h:20,
from ../include/linux/cgroup.h:28,
from ../include/linux/perf_event.h:60,
from ../drivers/gpu/drm/xe/xe_pmu_types.h:9,
from ../drivers/gpu/drm/xe/xe_pmu.h:9,
from ../drivers/gpu/drm/xe/xe_device_types.h:18,
from ../drivers/gpu/drm/xe/xe_device.h:15,
from ../drivers/gpu/drm/xe/xe_pmu.c:12:../drivers/gpu/drm/xe/xe_pmu.c:171:26: error: ‘struct hw_perf_event’ has no member named ‘prev_count’
171 | prev = local64_read(&hwc->prev_count);
| ^~../arch/x86/include/asm/local.h:16:42: note: in definition of macro ‘local_read’
16 | #define local_read(l) atomic_long_read(&(l)->a)
| ^../drivers/gpu/drm/xe/xe_pmu.c:171:9: note: in expansion of macro ‘local64_read’
171 | prev = local64_read(&hwc->prev_count);
| ^~~~~~~~~~~~
In file included from ../include/linux/atomic.h:82,
from ../include/linux/jump_label.h:255,
from ../arch/x86/include/asm/string_64.h:6,
from ../arch/x86/include/asm/string.h:5,
from ../include/linux/string.h:20,
from ../include/linux/bitmap.h:11,
from ../include/linux/cpumask.h:12,
from ../include/linux/smp.h:13,
from ../include/linux/lockdep.h:14,
from ../include/linux/spinlock.h:63,
from ../include/linux/kref.h:16,
from ../include/drm/drm_device.h:5,
from ../include/drm/drm_drv.h:35,
from ../drivers/gpu/drm/xe/xe_pmu.c:7:../drivers/gpu/drm/xe/xe_pmu.c:174:26: error: ‘struct hw_perf_event’ has no member named ‘prev_count’
174 | if (local64_cmpxchg(&hwc->prev_count, prev, new) != prev)
| ^~../include/linux/atomic/atomic-instrumented.h:2049:9: note: in definition of macro ‘cmpxchg_local’
2049 | typeof(ptr) __ai_ptr = (ptr); \
| ^~~
../include/asm-generic/local64.h:45:34: note: in expansion of macro ‘local_cmpxchg’
45 | #define local64_cmpxchg(l, o, n) local_cmpxchg((&(l)->a), (o), (n))
| ^~~~~~~~~~~~~
../drivers/gpu/drm/xe/xe_pmu.c:174:6: note: in expansion of macro ‘local64_cmpxchg’
174 | if (local64_cmpxchg(&hwc->prev_count, prev, new) != prev)
| ^~~~~~~~~~~~~~~../drivers/gpu/drm/xe/xe_pmu.c:174:26: error: ‘struct hw_perf_event’ has no member named ‘prev_count’
174 | if (local64_cmpxchg(&hwc->prev_count, prev, new) != prev)
| ^~../include/linux/atomic/atomic-instrumented.h:2049:26: note: in definition of macro ‘cmpxchg_local’
2049 | typeof(ptr) __ai_ptr = (ptr); \
| ^~~../include/asm-generic/local64.h:45:34: note: in expansion of macro ‘local_cmpxchg’
45 | #define local64_cmpxchg(l, o, n) local_cmpxchg((&(l)->a), (o), (n))
| ^~~~~~~~~~~~~
../drivers/gpu/drm/xe/xe_pmu.c:174:6: note: in expansion of macro ‘local64_cmpxchg’
174 | if (local64_cmpxchg(&hwc->prev_count, prev, new) != prev)
| ^~~~~~~~~~~~~~~../include/linux/atomic/atomic-instrumented.h:2050:43: error: invalid type argument of unary ‘*’ (have ‘int’)
2050 | instrument_atomic_write(__ai_ptr, sizeof(*__ai_ptr)); \
| ^~~~~~~~~../arch/x86/include/asm/local.h:124:3: note: in expansion of macro ‘cmpxchg_local’
124 | (cmpxchg_local(&((l)->a.counter), (o), (n)))
| ^~~~~~~~~~~~~
../include/asm-generic/local64.h:45:34: note: in expansion of macro ‘local_cmpxchg’
45 | #define local64_cmpxchg(l, o, n) local_cmpxchg((&(l)->a), (o), (n))
| ^~~~~~~~~~~~~
../drivers/gpu/drm/xe/xe_pmu.c:174:6: note: in expansion of macro ‘local64_cmpxchg’
174 | if (local64_cmpxchg(&hwc->prev_count, prev, new) != prev)
| ^~~~~~~~~~~~~~~
../include/linux/atomic/atomic-instrumented.h:2050:26: warning: passing argument 1 of ‘instrument_atomic_write’ makes pointer from integer without a cast [-Wint-conversion]
2050 | instrument_atomic_write(__ai_ptr, sizeof(*__ai_ptr)); \
| ^~~~~~~~
| |
| int
../arch/x86/include/asm/local.h:124:3: note: in expansion of macro ‘cmpxchg_local’
124 | (cmpxchg_local(&((l)->a.counter), (o), (n)))
| ^~~~~~~~~~~~~
../include/asm-generic/local64.h:45:34: note: in expansion of macro ‘local_cmpxchg’
45 | #define local64_cmpxchg(l, o, n) local_cmpxchg((&(l)->a), (o), (n))
| ^~~~~~~~~~~~~
../drivers/gpu/drm/xe/xe_pmu.c:174:6: note: in expansion of macro ‘local64_cmpxchg’
174 | if (local64_cmpxchg(&hwc->prev_count, prev, new) != prev)
| ^~~~~~~~~~~~~~~
In file included from ../include/asm-generic/bitops/instrumented-atomic.h:14,
from ../arch/x86/include/asm/bitops.h:424,
from ../include/linux/bitops.h:68,
from ../include/linux/thread_info.h:27,
from ../include/asm-generic/preempt.h:5,
from ./arch/um/include/generated/asm/preempt.h:1,
from ../include/linux/preempt.h:78,
from ../include/linux/spinlock.h:56,
from ../include/linux/kref.h:16,
from ../include/drm/drm_device.h:5,
from ../include/drm/drm_drv.h:35,
from ../drivers/gpu/drm/xe/xe_pmu.c:7:
../include/linux/instrumented.h:85:74: note: expected ‘const volatile void *’ but argument is of type ‘int’
85 | static __always_inline void instrument_atomic_write(const volatile void *v, size_t size)
| ~~~~~~~~~~~~~~~~~~~~~^
In file included from ../arch/x86/include/asm/atomic.h:8,
from ../include/linux/atomic.h:7,
from ../include/linux/jump_label.h:255,
from ../arch/x86/include/asm/string_64.h:6,
from ../arch/x86/include/asm/string.h:5,
from ../include/linux/string.h:20,
from ../include/linux/bitmap.h:11,
from ../include/linux/cpumask.h:12,
from ../include/linux/smp.h:13,
from ../include/linux/lockdep.h:14,
from ../include/linux/spinlock.h:63,
from ../include/linux/kref.h:16,
from ../include/drm/drm_device.h:5,
from ../include/drm/drm_drv.h:35,
from ../drivers/gpu/drm/xe/xe_pmu.c:7:
../arch/x86/include/asm/cmpxchg.h:87:13: error: invalid type argument of unary ‘*’ (have ‘int’)
87 | __typeof__(*(ptr)) __ret; \
| ^~~~~~
../arch/x86/include/asm/cmpxchg.h:140:2: note: in expansion of macro ‘__raw_cmpxchg’
140 | __raw_cmpxchg((ptr), (old), (new), (size), "")
| ^~~~~~~~~~~~~
../arch/x86/include/asm/cmpxchg.h:155:2: note: in expansion of macro ‘__cmpxchg_local’
155 | __cmpxchg_local(ptr, old, new, sizeof(*(ptr)))
| ^~~~~~~~~~~~~~~
../include/linux/atomic/atomic-instrumented.h:2051:2: note: in expansion of macro ‘arch_cmpxchg_local’
2051 | arch_cmpxchg_local(__ai_ptr, __VA_ARGS__); \
| ^~~~~~~~~~~~~~~~~~
../arch/x86/include/asm/local.h:124:3: note: in expansion of macro ‘cmpxchg_local’
124 | (cmpxchg_local(&((l)->a.counter), (o), (n)))
| ^~~~~~~~~~~~~
../include/asm-generic/local64.h:45:34: note: in expansion of macro ‘local_cmpxchg’
45 | #define local64_cmpxchg(l, o, n) local_cmpxchg((&(l)->a), (o), (n))
| ^~~~~~~~~~~~~
../drivers/gpu/drm/xe/xe_pmu.c:174:6: note: in expansion of macro ‘local64_cmpxchg’
174 | if (local64_cmpxchg(&hwc->prev_count, prev, new) != prev)
| ^~~~~~~~~~~~~~~
../arch/x86/include/asm/cmpxchg.h:88:13: error: invalid type argument of unary ‘*’ (have ‘int’)
88 | __typeof__(*(ptr)) __old = (old); \
| ^~~~~~
../arch/x86/include/asm/cmpxchg.h:140:2: note: in expansion of macro ‘__raw_cmpxchg’
140 | __raw_cmpxchg((ptr), (old), (new), (size), "")
| ^~~~~~~~~~~~~
../arch/x86/include/asm/cmpxchg.h:155:2: note: in expansion of macro ‘__cmpxchg_local’
155 | __cmpxchg_local(ptr, old, new, sizeof(*(ptr)))
| ^~~~~~~~~~~~~~~
../include/linux/atomic/atomic-instrumented.h:2051:2: note: in expansion of macro ‘arch_cmpxchg_local’
2051 | arch_cmpxchg_local(__ai_ptr, __VA_ARGS__); \
| ^~~~~~~~~~~~~~~~~~
../arch/x86/include/asm/local.h:124:3: note: in expansion of macro ‘cmpxchg_local’
124 | (cmpxchg_local(&((l)->a.counter), (o), (n)))
| ^~~~~~~~~~~~~
../include/asm-generic/local64.h:45:34: note: in expansion of macro ‘local_cmpxchg’
45 | #define local64_cmpxchg(l, o, n) local_cmpxchg((&(l)->a), (o), (n))
| ^~~~~~~~~~~~~
../drivers/gpu/drm/xe/xe_pmu.c:174:6: note: in expansion of macro ‘local64_cmpxchg’
174 | if (local64_cmpxchg(&hwc->prev_count, prev, new) != prev)
| ^~~~~~~~~~~~~~~
../arch/x86/include/asm/cmpxchg.h:89:13: error: invalid type argument of unary ‘*’ (have ‘int’)
89 | __typeof__(*(ptr)) __new = (new); \
| ^~~~~~
../arch/x86/include/asm/cmpxchg.h:140:2: note: in expansion of macro ‘__raw_cmpxchg’
140 | __raw_cmpxchg((ptr), (old), (new), (size), "")
| ^~~~~~~~~~~~~
../arch/x86/include/asm/cmpxchg.h:155:2: note: in expansion of macro ‘__cmpxchg_local’
155 | __cmpxchg_local(ptr, old, new, sizeof(*(ptr)))
| ^~~~~~~~~~~~~~~
../include/linux/atomic/atomic-instrumented.h:2051:2: note: in expansion of macro ‘arch_cmpxchg_local’
2051 | arch_cmpxchg_local(__ai_ptr, __VA_ARGS__); \
| ^~~~~~~~~~~~~~~~~~
../arch/x86/include/asm/local.h:124:3: note: in expansion of macro ‘cmpxchg_local’
124 | (cmpxchg_local(&((l)->a.counter), (o), (n)))
| ^~~~~~~~~~~~~
../include/asm-generic/local64.h:45:34: note: in expansion of macro ‘local_cmpxchg’
45 | #define local64_cmpxchg(l, o, n) local_cmpxchg((&(l)->a), (o), (n))
| ^~~~~~~~~~~~~
../drivers/gpu/drm/xe/xe_pmu.c:174:6: note: in expansion of macro ‘local64_cmpxchg’
174 | if (local64_cmpxchg(&hwc->prev_count, prev, new) != prev)
| ^~~~~~~~~~~~~~~../arch/x86/include/asm/cmpxchg.h:155:40: error: invalid type argument of unary ‘*’ (have ‘int’)
155 | __cmpxchg_local(ptr, old, new, sizeof(*(ptr)))
| ^~~~~~../arch/x86/include/asm/cmpxchg.h:90:10: note: in definition of macro ‘__raw_cmpxchg’
90 | switch (size) { \
| ^~~~
../arch/x86/include/asm/cmpxchg.h:155:2: note: in expansion of macro ‘__cmpxchg_local’
155 | __cmpxchg_local(ptr, old, new, sizeof(*(ptr)))
| ^~~~~~~~~~~~~~~
../include/linux/atomic/atomic-instrumented.h:2051:2: note: in expansion of macro ‘arch_cmpxchg_local’
2051 | arch_cmpxchg_local(__ai_ptr, __VA_ARGS__); \
| ^~~~~~~~~~~~~~~~~~
../arch/x86/include/asm/local.h:124:3: note: in expansion of macro ‘cmpxchg_local’
124 | (cmpxchg_local(&((l)->a.counter), (o), (n)))
| ^~~~~~~~~~~~~
../include/asm-generic/local64.h:45:34: note: in expansion of macro ‘local_cmpxchg’
45 | #define local64_cmpxchg(l, o, n) local_cmpxchg((&(l)->a), (o), (n))
| ^~~~~~~~~~~~~
../drivers/gpu/drm/xe/xe_pmu.c:174:6: note: in expansion of macro ‘local64_cmpxchg’
174 | if (local64_cmpxchg(&hwc->prev_count, prev, new) != prev)
| ^~~~~~~~~~~~~~~../arch/x86/include/asm/cmpxchg.h:93:24: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
93 | volatile u8 *__ptr = (volatile u8 *)(ptr); \
| ^../arch/x86/include/asm/cmpxchg.h:140:2: note: in expansion of macro ‘__raw_cmpxchg’
140 | __raw_cmpxchg((ptr), (old), (new), (size), "")
| ^~~~~~~~~~~~~
../arch/x86/include/asm/cmpxchg.h:155:2: note: in expansion of macro ‘__cmpxchg_local’
155 | __cmpxchg_local(ptr, old, new, sizeof(*(ptr)))
| ^~~~~~~~~~~~~~~
../include/linux/atomic/atomic-instrumented.h:2051:2: note: in expansion of macro ‘arch_cmpxchg_local’
2051 | arch_cmpxchg_local(__ai_ptr, __VA_ARGS__); \
| ^~~~~~~~~~~~~~~~~~
../arch/x86/include/asm/local.h:124:3: note: in expansion of macro ‘cmpxchg_local’
124 | (cmpxchg_local(&((l)->a.counter), (o), (n)))
| ^~~~~~~~~~~~~
../include/asm-generic/local64.h:45:34: note: in expansion of macro ‘local_cmpxchg’
45 | #define local64_cmpxchg(l, o, n) local_cmpxchg((&(l)->a), (o), (n))
| ^~~~~~~~~~~~~
../drivers/gpu/drm/xe/xe_pmu.c:174:6: note: in expansion of macro ‘local64_cmpxchg’
174 | if (local64_cmpxchg(&hwc->prev_count, prev, new) != prev)
| ^~~~~~~~~~~~~~~../arch/x86/include/asm/cmpxchg.h:102:25: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
102 | volatile u16 *__ptr = (volatile u16 *)(ptr); \
| ^../arch/x86/include/asm/cmpxchg.h:140:2: note: in expansion of macro ‘__raw_cmpxchg’
140 | __raw_cmpxchg((ptr), (old), (new), (size), "")
| ^~~~~~~~~~~~~
../arch/x86/include/asm/cmpxchg.h:155:2: note: in expansion of macro ‘__cmpxchg_local’
155 | __cmpxchg_local(ptr, old, new, sizeof(*(ptr)))
| ^~~~~~~~~~~~~~~
../include/linux/atomic/atomic-instrumented.h:2051:2: note: in expansion of macro ‘arch_cmpxchg_local’
2051 | arch_cmpxchg_local(__ai_ptr, __VA_ARGS__); \
| ^~~~~~~~~~~~~~~~~~
../arch/x86/include/asm/local.h:124:3: note: in expansion of macro ‘cmpxchg_local’
124 | (cmpxchg_local(&((l)->a.counter), (o), (n)))
| ^~~~~~~~~~~~~
../include/asm-generic/local64.h:45:34: note: in expansion of macro ‘local_cmpxchg’
45 | #define local64_cmpxchg(l, o, n) local_cmpxchg((&(l)->a), (o), (n))
| ^~~~~~~~~~~~~
../drivers/gpu/drm/xe/xe_pmu.c:174:6: note: in expansion of macro ‘local64_cmpxchg’
174 | if (local64_cmpxchg(&hwc->prev_count, prev, new) != prev)
| ^~~~~~~~~~~~~~~../arch/x86/include/asm/cmpxchg.h:111:25: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
111 | volatile u32 *__ptr = (volatile u32 *)(ptr); \
| ^../arch/x86/include/asm/cmpxchg.h:140:2: note: in expansion of macro ‘__raw_cmpxchg’
140 | __raw_cmpxchg((ptr), (old), (new), (size), "")
| ^~~~~~~~~~~~~
../arch/x86/include/asm/cmpxchg.h:155:2: note: in expansion of macro ‘__cmpxchg_local’
155 | __cmpxchg_local(ptr, old, new, sizeof(*(ptr)))
| ^~~~~~~~~~~~~~~
../include/linux/atomic/atomic-instrumented.h:2051:2: note: in expansion of macro ‘arch_cmpxchg_local’
2051 | arch_cmpxchg_local(__ai_ptr, __VA_ARGS__); \
| ^~~~~~~~~~~~~~~~~~
../arch/x86/include/asm/local.h:124:3: note: in expansion of macro ‘cmpxchg_local’
124 | (cmpxchg_local(&((l)->a.counter), (o), (n)))
| ^~~~~~~~~~~~~
../include/asm-generic/local64.h:45:34: note: in expansion of macro ‘local_cmpxchg’
45 | #define local64_cmpxchg(l, o, n) local_cmpxchg((&(l)->a), (o), (n))
| ^~~~~~~~~~~~~
../drivers/gpu/drm/xe/xe_pmu.c:174:6: note: in expansion of macro ‘local64_cmpxchg’
174 | if (local64_cmpxchg(&hwc->prev_count, prev, new) != prev)
| ^~~~~~~~~~~~~~~../arch/x86/include/asm/cmpxchg.h:120:25: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
120 | volatile u64 *__ptr = (volatile u64 *)(ptr); \
| ^../arch/x86/include/asm/cmpxchg.h:140:2: note: in expansion of macro ‘__raw_cmpxchg’
140 | __raw_cmpxchg((ptr), (old), (new), (size), "")
| ^~~~~~~~~~~~~
../arch/x86/include/asm/cmpxchg.h:155:2: note: in expansion of macro ‘__cmpxchg_local’
155 | __cmpxchg_local(ptr, old, new, sizeof(*(ptr)))
| ^~~~~~~~~~~~~~~
../include/linux/atomic/atomic-instrumented.h:2051:2: note: in expansion of macro ‘arch_cmpxchg_local’
2051 | arch_cmpxchg_local(__ai_ptr, __VA_ARGS__); \
| ^~~~~~~~~~~~~~~~~~
../arch/x86/include/asm/local.h:124:3: note: in expansion of macro ‘cmpxchg_local’
124 | (cmpxchg_local(&((l)->a.counter), (o), (n)))
| ^~~~~~~~~~~~~
../include/asm-generic/local64.h:45:34: note: in expansion of macro ‘local_cmpxchg’
45 | #define local64_cmpxchg(l, o, n) local_cmpxchg((&(l)->a), (o), (n))
| ^~~~~~~~~~~~~
../drivers/gpu/drm/xe/xe_pmu.c:174:6: note: in expansion of macro ‘local64_cmpxchg’
174 | if (local64_cmpxchg(&hwc->prev_count, prev, new) != prev)
| ^~~~~~~~~~~~~~~
In file included from ./arch/x86/include/generated/asm/local64.h:1,
from ../include/linux/u64_stats_sync.h:71,
from ../include/linux/cgroup-defs.h:20,
from ../include/linux/cgroup.h:28,
from ../include/linux/perf_event.h:60,
from ../drivers/gpu/drm/xe/xe_pmu_types.h:9,
from ../drivers/gpu/drm/xe/xe_pmu.h:9,
from ../drivers/gpu/drm/xe/xe_device_types.h:18,
from ../drivers/gpu/drm/xe/xe_device.h:15,
from ../drivers/gpu/drm/xe/xe_pmu.c:12:../drivers/gpu/drm/xe/xe_pmu.c:177:32: error: ‘struct perf_event’ has no member named ‘count’
177 | local64_add(new - prev, &event->count);
| ^~../include/asm-generic/local64.h:34:43: note: in definition of macro ‘local64_add’
34 | #define local64_add(i,l) local_add((i),(&(l)->a))
| ^
In file included from ../include/asm-generic/local64.h:22,
from ./arch/x86/include/generated/asm/local64.h:1,
from ../include/linux/u64_stats_sync.h:71,
from ../include/linux/cgroup-defs.h:20,
from ../include/linux/cgroup.h:28,
from ../include/linux/perf_event.h:60,
from ../drivers/gpu/drm/xe/xe_pmu_types.h:9,
from ../drivers/gpu/drm/xe/xe_pmu.h:9,
from ../drivers/gpu/drm/xe/xe_device_types.h:18,
from ../drivers/gpu/drm/xe/xe_device.h:15,
from ../drivers/gpu/drm/xe/xe_pmu.c:12:../drivers/gpu/drm/xe/xe_pmu.c: In function ‘xe_pmu_enable’:../drivers/gpu/drm/xe/xe_pmu.c:187:20: error: ‘struct perf_event’ has no member named ‘hw’
187 | local64_set(&event->hw.prev_count, __xe_pmu_event_read(event));
| ^~../arch/x86/include/asm/local.h:17:43: note: in definition of macro ‘local_set’
17 | #define local_set(l, i) atomic_long_set(&(l)->a, (i))
| ^../drivers/gpu/drm/xe/xe_pmu.c:187:2: note: in expansion of macro ‘local64_set’
187 | local64_set(&event->hw.prev_count, __xe_pmu_event_read(event));
| ^~~~~~~~~~~
In file included from ../include/linux/list.h:5,
from ../include/drm/drm_drv.h:30,
from ../drivers/gpu/drm/xe/xe_pmu.c:7:../drivers/gpu/drm/xe/xe_pmu.c: In function ‘xe_pmu_event_start’:../drivers/gpu/drm/xe/xe_pmu.c:193:21: error: ‘struct perf_event’ has no member named ‘pmu’
193 | container_of(event->pmu, typeof(*xe), pmu.base);
| ^~../include/linux/container_of.h:19:26: note: in definition of macro ‘container_of’
19 | void *__mptr = (void *)(ptr); \
| ^~~
In file included from ../include/linux/container_of.h:5,
from ../include/linux/list.h:5,
from ../include/drm/drm_drv.h:30,
from ../drivers/gpu/drm/xe/xe_pmu.c:7:../drivers/gpu/drm/xe/xe_pmu.c:193:21: error: ‘struct perf_event’ has no member named ‘pmu’
193 | container_of(event->pmu, typeof(*xe), pmu.base);
| ^~../include/linux/build_bug.h:78:56: note: in definition of macro ‘__static_assert’
78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg)
| ^~~~../include/linux/container_of.h:20:2: note: in expansion of macro ‘static_assert’
20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \
| ^~~~~~~~~~~~~
../include/linux/container_of.h:20:16: note: in expansion of macro ‘__same_type’
20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \
| ^~~~~~~~~~~
../drivers/gpu/drm/xe/xe_pmu.c:193:3: note: in expansion of macro ‘container_of’
193 | container_of(event->pmu, typeof(*xe), pmu.base);
| ^~~~~~~~~~~~../drivers/gpu/drm/xe/xe_pmu.c:193:21: error: ‘struct perf_event’ has no member named ‘pmu’
193 | container_of(event->pmu, typeof(*xe), pmu.base);
| ^~../include/linux/build_bug.h:78:56: note: in definition of macro ‘__static_assert’
78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg)
| ^~~~../include/linux/container_of.h:20:2: note: in expansion of macro ‘static_assert’
20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \
| ^~~~~~~~~~~~~
../include/linux/container_of.h:21:9: note: in expansion of macro ‘__same_type’
21 | __same_type(*(ptr), void), \
| ^~~~~~~~~~~
../drivers/gpu/drm/xe/xe_pmu.c:193:3: note: in expansion of macro ‘container_of’
193 | container_of(event->pmu, typeof(*xe), pmu.base);
| ^~~~~~~~~~~~
./../include/linux/compiler_types.h:338:27: error: expression in static assertion is not an integer
338 | #define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~../include/linux/build_bug.h:78:56: note: in definition of macro ‘__static_assert’
78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg)
| ^~~~../include/linux/container_of.h:20:2: note: in expansion of macro ‘static_assert’
20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \
| ^~~~~~~~~~~~~
../include/linux/container_of.h:20:16: note: in expansion of macro ‘__same_type’
20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \
| ^~~~~~~~~~~
../drivers/gpu/drm/xe/xe_pmu.c:193:3: note: in expansion of macro ‘container_of’
193 | container_of(event->pmu, typeof(*xe), pmu.base);
| ^~~~~~~~~~~~
../drivers/gpu/drm/xe/xe_pmu.c:200:7: error: ‘struct perf_event’ has no member named ‘hw’
200 | event->hw.state = 0;
| ^~
../drivers/gpu/drm/xe/xe_pmu.c: In function ‘xe_pmu_event_stop’:
../drivers/gpu/drm/xe/xe_pmu.c:208:7: error: ‘struct perf_event’ has no member named ‘hw’
208 | event->hw.state = PERF_HES_STOPPED;
| ^~
../drivers/gpu/drm/xe/xe_pmu.c:208:20: error: ‘PERF_HES_STOPPED’ undeclared (first use in this function)
208 | event->hw.state = PERF_HES_STOPPED;
| ^~~~~~~~~~~~~~~~
In file included from ../include/linux/list.h:5,
from ../include/drm/drm_drv.h:30,
from ../drivers/gpu/drm/xe/xe_pmu.c:7:../drivers/gpu/drm/xe/xe_pmu.c: In function ‘xe_pmu_event_add’:../drivers/gpu/drm/xe/xe_pmu.c:214:21: error: ‘struct perf_event’ has no member named ‘pmu’
214 | container_of(event->pmu, typeof(*xe), pmu.base);
| ^~../include/linux/container_of.h:19:26: note: in definition of macro ‘container_of’
19 | void *__mptr = (void *)(ptr); \
| ^~~
In file included from ../include/linux/container_of.h:5,
from ../include/linux/list.h:5,
from ../include/drm/drm_drv.h:30,
from ../drivers/gpu/drm/xe/xe_pmu.c:7:../drivers/gpu/drm/xe/xe_pmu.c:214:21: error: ‘struct perf_event’ has no member named ‘pmu’
214 | container_of(event->pmu, typeof(*xe), pmu.base);
| ^~../include/linux/build_bug.h:78:56: note: in definition of macro ‘__static_assert’
78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg)
| ^~~~../include/linux/container_of.h:20:2: note: in expansion of macro ‘static_assert’
20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \
| ^~~~~~~~~~~~~
../include/linux/container_of.h:20:16: note: in expansion of macro ‘__same_type’
20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \
| ^~~~~~~~~~~
../drivers/gpu/drm/xe/xe_pmu.c:214:3: note: in expansion of macro ‘container_of’
214 | container_of(event->pmu, typeof(*xe), pmu.base);
| ^~~~~~~~~~~~../drivers/gpu/drm/xe/xe_pmu.c:214:21: error: ‘struct perf_event’ has no member named ‘pmu’
214 | container_of(event->pmu, typeof(*xe), pmu.base);
| ^~../include/linux/build_bug.h:78:56: note: in definition of macro ‘__static_assert’
78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg)
| ^~~~../include/linux/container_of.h:20:2: note: in expansion of macro ‘static_assert’
20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \
| ^~~~~~~~~~~~~
../include/linux/container_of.h:21:9: note: in expansion of macro ‘__same_type’
21 | __same_type(*(ptr), void), \
| ^~~~~~~~~~~
../drivers/gpu/drm/xe/xe_pmu.c:214:3: note: in expansion of macro ‘container_of’
214 | container_of(event->pmu, typeof(*xe), pmu.base);
| ^~~~~~~~~~~~
./../include/linux/compiler_types.h:338:27: error: expression in static assertion is not an integer
338 | #define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~../include/linux/build_bug.h:78:56: note: in definition of macro ‘__static_assert’
78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg)
| ^~~~../include/linux/container_of.h:20:2: note: in expansion of macro ‘static_assert’
20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \
| ^~~~~~~~~~~~~
../include/linux/container_of.h:20:16: note: in expansion of macro ‘__same_type’
20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \
| ^~~~~~~~~~~
../drivers/gpu/drm/xe/xe_pmu.c:214:3: note: in expansion of macro ‘container_of’
214 | container_of(event->pmu, typeof(*xe), pmu.base);
| ^~~~~~~~~~~~
../drivers/gpu/drm/xe/xe_pmu.c: In function ‘xe_pmu_cpu_offline’:
../drivers/gpu/drm/xe/xe_pmu.c:497:3: error: implicit declaration of function ‘perf_pmu_migrate_context’ [-Werror=implicit-function-declaration]
497 | perf_pmu_migrate_context(&pmu->base, cpu, target);
| ^~~~~~~~~~~~~~~~~~~~~~~~
../drivers/gpu/drm/xe/xe_pmu.c: At top level:
../drivers/gpu/drm/xe/xe_pmu.c:506:5: error: redefinition of ‘xe_pmu_init’
506 | int xe_pmu_init(void)
| ^~~~~~~~~~~
In file included from ../drivers/gpu/drm/xe/xe_device_types.h:18,
from ../drivers/gpu/drm/xe/xe_device.h:15,
from ../drivers/gpu/drm/xe/xe_pmu.c:12:
../drivers/gpu/drm/xe/xe_pmu.h:16:19: note: previous definition of ‘xe_pmu_init’ was here
16 | static inline int xe_pmu_init(void) { return 0; }
| ^~~~~~~~~~~
../drivers/gpu/drm/xe/xe_pmu.c:523:6: error: redefinition of ‘xe_pmu_exit’
523 | void xe_pmu_exit(void)
| ^~~~~~~~~~~
In file included from ../drivers/gpu/drm/xe/xe_device_types.h:18,
from ../drivers/gpu/drm/xe/xe_device.h:15,
from ../drivers/gpu/drm/xe/xe_pmu.c:12:
../drivers/gpu/drm/xe/xe_pmu.h:17:20: note: previous definition of ‘xe_pmu_exit’ was here
17 | static inline void xe_pmu_exit(void) {}
| ^~~~~~~~~~~
../drivers/gpu/drm/xe/xe_pmu.c: In function ‘xe_pmu_unregister’:
../drivers/gpu/drm/xe/xe_pmu.c:559:2: error: implicit declaration of function ‘perf_pmu_unregister’; did you mean ‘xe_pmu_unregister’? [-Werror=implicit-function-declaration]
559 | perf_pmu_unregister(&pmu->base);
| ^~~~~~~~~~~~~~~~~~~
| xe_pmu_unregister
../drivers/gpu/drm/xe/xe_pmu.c: At top level:
../drivers/gpu/drm/xe/xe_pmu.c:566:6: error: redefinition of ‘xe_pmu_register’
566 | void xe_pmu_register(struct xe_pmu *pmu)
| ^~~~~~~~~~~~~~~
In file included from ../drivers/gpu/drm/xe/xe_device_types.h:18,
from ../drivers/gpu/drm/xe/xe_device.h:15,
from ../drivers/gpu/drm/xe/xe_pmu.c:12:
../drivers/gpu/drm/xe/xe_pmu.h:18:20: note: previous definition of ‘xe_pmu_register’ was here
18 | static inline void xe_pmu_register(struct xe_pmu *pmu) {}
| ^~~~~~~~~~~~~~~
../drivers/gpu/drm/xe/xe_pmu.c: In function ‘xe_pmu_register’:
../drivers/gpu/drm/xe/xe_pmu.c:610:8: error: implicit declaration of function ‘perf_pmu_register’; did you mean ‘xe_pmu_register’? [-Werror=implicit-function-declaration]
610 | ret = perf_pmu_register(&pmu->base, pmu->name, -1);
| ^~~~~~~~~~~~~~~~~
| xe_pmu_registercc1: some warnings being treated as errors
make[6]: *** [../scripts/Makefile.build:252: drivers/gpu/drm/xe/xe_pmu.o] Error 1 make[6]: *** Waiting for unfinished jobs....
make[5]: *** [../scripts/Makefile.build:494: drivers/gpu/drm/xe] Error 2 make[4]: *** [../scripts/Makefile.build:494: drivers/gpu/drm] Error 2 make[3]: *** [../scripts/Makefile.build:494: drivers/gpu] Error 2 make[2]: *** [../scripts/Makefile.build:494: drivers] Error 2 make[1]: *** [/kernel/Makefile:2025: .] Error 2
make: *** [Makefile:226: __sub-make] Error 2
[04:50:59] Configuring KUnit Kernel ...
Generating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig [04:51:03] Building KUnit Kernel ... Populating config with: $ make ARCH=um O=.kunit olddefconfig Building with: $ make ARCH=um O=.kunit --jobs=48 + cleanup ++ stat -c %u:%g /kernel + chown -R 1003:1003 /kernel