lockprof: don't pass name into registration function
authorJan Beulich <jbeulich@suse.com>
Fri, 24 Jul 2020 08:19:25 +0000 (10:19 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 24 Jul 2020 08:19:25 +0000 (10:19 +0200)
commitb2a64292b0bfa317886b3432d1a5b2a4193a48d6
tree85f41e858ded11dff91758ddcdf4d8be7b292f53
parent82cba984b2e37496360ef2bf22e529a53c084631
lockprof: don't pass name into registration function

The type uniquely identifies the associated name, hence the name fields
can be statically initialized.

Also constify not just the involved struct field, but also struct
lock_profile's. Rather than specifying lock_profile_ancs[]' dimension at
definition time, add a suitable build time check, such that at least
missing tail additions to the initializer can be spotted easily.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/common/domain.c
xen/common/spinlock.c
xen/include/xen/spinlock.h