* [akpm-mm:mm-new 224/226] include/trace/events/vmscan.h:238:54: error: incomplete definition of type 'struct mem_cgroup'
@ 2026-01-06 22:03 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-01-06 22:03 UTC (permalink / raw)
To: Thomas Ballasi
Cc: llvm, oe-kbuild-all, David Hildenbrand, Andrew Morton,
Linux Memory Management List
tree: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-new
head: d51d3f6765d29ab5cdc6a59ad832017e660d5add
commit: b84bca52c8e661aa7da507a03cc3f6831fef2edf [224/226] mm: vmscan: add cgroup IDs to vmscan tracepoints
config: arm64-randconfig-002-20260107 (https://download.01.org/0day-ci/archive/20260107/202601070517.0yxdw4WK-lkp@intel.com/config)
compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 9b8addffa70cee5b2acc5454712d9cf78ce45710)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260107/202601070517.0yxdw4WK-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202601070517.0yxdw4WK-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from mm/vmscan.c:73:
In file included from include/trace/events/vmscan.h:554:
In file included from include/trace/define_trace.h:132:
In file included from include/trace/trace_events.h:468:
>> include/trace/events/vmscan.h:238:54: error: incomplete definition of type 'struct mem_cgroup'
238 | __entry->memcg_id = sc->memcg ? cgroup_id(sc->memcg->css.cgroup) : 0;
| ~~~~~~~~~^
include/trace/stages/stage6_event_callback.h:133:33: note: expanded from macro 'TP_fast_assign'
133 | #define TP_fast_assign(args...) args
| ^~~~
include/trace/trace_events.h:44:16: note: expanded from macro 'TRACE_EVENT'
44 | PARAMS(assign), \
| ^~~~~~
include/linux/tracepoint.h:139:25: note: expanded from macro 'PARAMS'
139 | #define PARAMS(args...) args
| ^~~~
include/trace/trace_events.h:435:16: note: expanded from macro 'DECLARE_EVENT_CLASS'
435 | PARAMS(assign), PARAMS(print)) \
| ^~~~~~
include/linux/tracepoint.h:139:25: note: expanded from macro 'PARAMS'
139 | #define PARAMS(args...) args
| ^~~~
include/trace/trace_events.h:427:4: note: expanded from macro '\
__DECLARE_EVENT_CLASS'
427 | { assign; } \
| ^~~~~~
include/linux/mm_types.h:36:8: note: forward declaration of 'struct mem_cgroup'
36 | struct mem_cgroup;
| ^
In file included from mm/vmscan.c:73:
In file included from include/trace/events/vmscan.h:554:
In file included from include/trace/define_trace.h:132:
In file included from include/trace/trace_events.h:468:
include/trace/events/vmscan.h:280:42: error: incomplete definition of type 'struct mem_cgroup'
280 | __entry->memcg_id = cgroup_id(sc->memcg->css.cgroup);
| ~~~~~~~~~^
include/trace/stages/stage6_event_callback.h:133:33: note: expanded from macro 'TP_fast_assign'
133 | #define TP_fast_assign(args...) args
| ^~~~
include/trace/trace_events.h:44:16: note: expanded from macro 'TRACE_EVENT'
44 | PARAMS(assign), \
| ^~~~~~
include/linux/tracepoint.h:139:25: note: expanded from macro 'PARAMS'
139 | #define PARAMS(args...) args
| ^~~~
include/trace/trace_events.h:435:16: note: expanded from macro 'DECLARE_EVENT_CLASS'
435 | PARAMS(assign), PARAMS(print)) \
| ^~~~~~
include/linux/tracepoint.h:139:25: note: expanded from macro 'PARAMS'
139 | #define PARAMS(args...) args
| ^~~~
include/trace/trace_events.h:427:4: note: expanded from macro '\
__DECLARE_EVENT_CLASS'
427 | { assign; } \
| ^~~~~~
include/linux/mm_types.h:36:8: note: forward declaration of 'struct mem_cgroup'
36 | struct mem_cgroup;
| ^
In file included from mm/vmscan.c:73:
In file included from include/trace/events/vmscan.h:554:
In file included from include/trace/define_trace.h:133:
In file included from include/trace/perf.h:110:
>> include/trace/events/vmscan.h:238:54: error: incomplete definition of type 'struct mem_cgroup'
238 | __entry->memcg_id = sc->memcg ? cgroup_id(sc->memcg->css.cgroup) : 0;
| ~~~~~~~~~^
include/trace/stages/stage6_event_callback.h:133:33: note: expanded from macro 'TP_fast_assign'
133 | #define TP_fast_assign(args...) args
| ^~~~
include/trace/trace_events.h:44:16: note: expanded from macro 'TRACE_EVENT'
44 | PARAMS(assign), \
| ^~~~~~
include/linux/tracepoint.h:139:25: note: expanded from macro 'PARAMS'
139 | #define PARAMS(args...) args
| ^~~~
include/trace/perf.h:67:16: note: expanded from macro 'DECLARE_EVENT_CLASS'
67 | PARAMS(assign), PARAMS(print)) \
| ^~~~~~
include/linux/tracepoint.h:139:25: note: expanded from macro 'PARAMS'
139 | #define PARAMS(args...) args
| ^~~~
include/trace/perf.h:51:4: note: expanded from macro '\
__DECLARE_EVENT_CLASS'
51 | { assign; } \
| ^~~~~~
include/linux/mm_types.h:36:8: note: forward declaration of 'struct mem_cgroup'
36 | struct mem_cgroup;
| ^
In file included from mm/vmscan.c:73:
In file included from include/trace/events/vmscan.h:554:
In file included from include/trace/define_trace.h:133:
In file included from include/trace/perf.h:110:
include/trace/events/vmscan.h:280:42: error: incomplete definition of type 'struct mem_cgroup'
280 | __entry->memcg_id = cgroup_id(sc->memcg->css.cgroup);
| ~~~~~~~~~^
include/trace/stages/stage6_event_callback.h:133:33: note: expanded from macro 'TP_fast_assign'
133 | #define TP_fast_assign(args...) args
| ^~~~
include/trace/trace_events.h:44:16: note: expanded from macro 'TRACE_EVENT'
44 | PARAMS(assign), \
| ^~~~~~
include/linux/tracepoint.h:139:25: note: expanded from macro 'PARAMS'
139 | #define PARAMS(args...) args
| ^~~~
include/trace/perf.h:67:16: note: expanded from macro 'DECLARE_EVENT_CLASS'
67 | PARAMS(assign), PARAMS(print)) \
| ^~~~~~
include/linux/tracepoint.h:139:25: note: expanded from macro 'PARAMS'
139 | #define PARAMS(args...) args
| ^~~~
include/trace/perf.h:51:4: note: expanded from macro '\
__DECLARE_EVENT_CLASS'
51 | { assign; } \
| ^~~~~~
include/linux/mm_types.h:36:8: note: forward declaration of 'struct mem_cgroup'
36 | struct mem_cgroup;
| ^
4 errors generated.
vim +238 include/trace/events/vmscan.h
205
206 TRACE_EVENT(mm_shrink_slab_start,
207 TP_PROTO(struct shrinker *shr, struct shrink_control *sc,
208 long nr_objects_to_shrink, unsigned long cache_items,
209 unsigned long long delta, unsigned long total_scan,
210 int priority),
211
212 TP_ARGS(shr, sc, nr_objects_to_shrink, cache_items, delta, total_scan,
213 priority),
214
215 TP_STRUCT__entry(
216 __field(struct shrinker *, shr)
217 __field(void *, shrink)
218 __field(long, nr_objects_to_shrink)
219 __field(unsigned long, gfp_flags)
220 __field(unsigned long, cache_items)
221 __field(unsigned long long, delta)
222 __field(unsigned long, total_scan)
223 __field(int, priority)
224 __field(int, nid)
225 __field(unsigned short, memcg_id)
226 ),
227
228 TP_fast_assign(
229 __entry->shr = shr;
230 __entry->shrink = shr->scan_objects;
231 __entry->nr_objects_to_shrink = nr_objects_to_shrink;
232 __entry->gfp_flags = (__force unsigned long)sc->gfp_mask;
233 __entry->cache_items = cache_items;
234 __entry->delta = delta;
235 __entry->total_scan = total_scan;
236 __entry->priority = priority;
237 __entry->nid = sc->nid;
> 238 __entry->memcg_id = sc->memcg ? cgroup_id(sc->memcg->css.cgroup) : 0;
239 ),
240
241 TP_printk("%pS %p: nid: %d memcg_id: %u objects to shrink %ld gfp_flags %s cache items %ld delta %lld total_scan %ld priority %d",
242 __entry->shrink,
243 __entry->shr,
244 __entry->nid,
245 __entry->memcg_id,
246 __entry->nr_objects_to_shrink,
247 show_gfp_flags(__entry->gfp_flags),
248 __entry->cache_items,
249 __entry->delta,
250 __entry->total_scan,
251 __entry->priority)
252 );
253
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-01-06 22:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-01-06 22:03 [akpm-mm:mm-new 224/226] include/trace/events/vmscan.h:238:54: error: incomplete definition of type 'struct mem_cgroup' kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox