|
755 | 755 |
|
756 | 756 | const unsigned char *_ctype;
|
757 | 757 |
|
758 |
| -#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 11, 0) |
| 758 | +#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 18, 0) |
| 759 | + typeof(kmalloc_noprof) *kmalloc_noprof; |
| 760 | + typeof(krealloc_node_align_noprof) *krealloc_node_align_noprof; |
| 761 | + typeof(kzalloc_noprof) *kzalloc_noprof; |
| 762 | + typeof(__kvmalloc_node_noprof) *__kvmalloc_node_noprof; |
| 763 | + typeof(__kmalloc_cache_noprof) *__kmalloc_cache_noprof; |
| 764 | + #ifdef HAVE_KVREALLOC |
| 765 | + typeof(kvrealloc_node_align_noprof) *kvrealloc_node_align_noprof; |
| 766 | + #endif |
| 767 | +#elif LINUX_VERSION_CODE >= KERNEL_VERSION(6, 11, 0) |
759 | 768 | typeof(kmalloc_noprof) *kmalloc_noprof;
|
760 | 769 | typeof(krealloc_noprof) *krealloc_noprof;
|
761 | 770 | typeof(kzalloc_noprof) *kzalloc_noprof;
|
|
1036 | 1045 |
|
1037 | 1046 | #define _ctype WC_LKM_INDIRECT_SYM(_ctype)
|
1038 | 1047 |
|
1039 |
| -#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 11, 0) |
| 1048 | +#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 18, 0) |
| 1049 | + /* see include/linux/alloc_tag.h and include/linux/slab.h */ |
| 1050 | + #define kmalloc_noprof WC_LKM_INDIRECT_SYM(kmalloc_noprof) |
| 1051 | + #define krealloc_node_align_noprof WC_LKM_INDIRECT_SYM(krealloc_node_align_noprof) |
| 1052 | + #define kzalloc_noprof WC_LKM_INDIRECT_SYM(kzalloc_noprof) |
| 1053 | + #define __kvmalloc_node_noprof WC_LKM_INDIRECT_SYM(__kvmalloc_node_noprof) |
| 1054 | + #define __kmalloc_cache_noprof WC_LKM_INDIRECT_SYM(__kmalloc_cache_noprof) |
| 1055 | + #ifdef HAVE_KVREALLOC |
| 1056 | + #define kvrealloc_node_align_noprof WC_LKM_INDIRECT_SYM(kvrealloc_node_align_noprof) |
| 1057 | + #endif |
| 1058 | +#elif LINUX_VERSION_CODE >= KERNEL_VERSION(6, 11, 0) |
1040 | 1059 | /* see include/linux/alloc_tag.h and include/linux/slab.h */
|
1041 | 1060 | #define kmalloc_noprof WC_LKM_INDIRECT_SYM(kmalloc_noprof)
|
1042 | 1061 | #define krealloc_noprof WC_LKM_INDIRECT_SYM(krealloc_noprof)
|
|
0 commit comments