From b659cecdb28a1d20cbadd628586a4d2408fcfd58 Mon Sep 17 00:00:00 2001 From: Wangjunqi123 Date: Wed, 29 Nov 2023 11:02:55 +0800 Subject: [PATCH] define module_attribute --- vmlinux/arm64/vmlinux_601.h | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/vmlinux/arm64/vmlinux_601.h b/vmlinux/arm64/vmlinux_601.h index ac928911..6ca8ab99 100644 --- a/vmlinux/arm64/vmlinux_601.h +++ b/vmlinux/arm64/vmlinux_601.h @@ -3800,3 +3800,39 @@ struct plt_entry { __le32 add; __le32 br; }; + +struct module_attribute { + struct attribute attr; + ssize_t (*show)(struct module_attribute *, struct module_kobject *, char *); + ssize_t (*store)(struct module_attribute *, struct module_kobject *, const char *, size_t); + void (*setup)(struct module *, const char *); + int (*test)(struct module *); + void (*free)(struct module *); +}; + +struct trace_eval_map { + const char *system; + const char *eval_string; + long unsigned int eval_value; +}; + +struct mcs_spinlock { + struct mcs_spinlock *next; + int locked; + int count; +}; + +struct qnode { + struct mcs_spinlock mcs; +}; + +typedef u64 uint64_t; + +enum lockdep_wait_type { + LD_WAIT_INV = 0, + LD_WAIT_FREE = 1, + LD_WAIT_SPIN = 2, + LD_WAIT_CONFIG = 2, + LD_WAIT_SLEEP = 3, + LD_WAIT_MAX = 4, +}; -- Gitee