Hi Yafang, Thank you for the patch! Yet something to improve: [auto build test ERROR on tip/perf/core] [also build test ERROR on v5.2-rc6 next-20190621] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Yafang-Shao/mm-vmscan-expose-cgroup_ino-for-shrink-slab-tracepoints/20190624-042930 config: sparc64-defconfig (attached as .config) compiler: sparc64-linux-gcc (GCC) 7.4.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save the attached .config to linux build tree GCC_VERSION=7.4.0 make.cross ARCH=sparc64 If you fix the issue, kindly add following tag Reported-by: kbuild test robot <lkp@xxxxxxxxx> All errors (new ones prefixed by >>): In file included from include/trace/define_trace.h:102:0, from include/trace/events/vmscan.h:504, from mm/vmscan.c:64: include/trace/events/vmscan.h: In function 'trace_event_raw_event_mm_shrink_slab_start': >> include/trace/events/vmscan.h:217:25: error: implicit declaration of function 'cgroup_ino'; did you mean 'cgroup_init'? [-Werror=implicit-function-declaration] __entry->cgroup_ino = cgroup_ino(sc->memcg->css.cgroup); ^ include/trace/trace_events.h:720:4: note: in definition of macro 'DECLARE_EVENT_CLASS' { assign; } \ ^~~~~~ include/trace/trace_events.h:78:9: note: in expansion of macro 'PARAMS' PARAMS(assign), \ ^~~~~~ include/trace/events/vmscan.h:185:1: note: in expansion of macro 'TRACE_EVENT' TRACE_EVENT(mm_shrink_slab_start, ^~~~~~~~~~~ include/trace/events/vmscan.h:207:2: note: in expansion of macro 'TP_fast_assign' TP_fast_assign( ^~~~~~~~~~~~~~ include/trace/events/vmscan.h:217:45: error: dereferencing pointer to incomplete type 'struct mem_cgroup' __entry->cgroup_ino = cgroup_ino(sc->memcg->css.cgroup); ^ include/trace/trace_events.h:720:4: note: in definition of macro 'DECLARE_EVENT_CLASS' { assign; } \ ^~~~~~ include/trace/trace_events.h:78:9: note: in expansion of macro 'PARAMS' PARAMS(assign), \ ^~~~~~ include/trace/events/vmscan.h:185:1: note: in expansion of macro 'TRACE_EVENT' TRACE_EVENT(mm_shrink_slab_start, ^~~~~~~~~~~ include/trace/events/vmscan.h:207:2: note: in expansion of macro 'TP_fast_assign' TP_fast_assign( ^~~~~~~~~~~~~~ cc1: some warnings being treated as errors vim +217 include/trace/events/vmscan.h 184 185 TRACE_EVENT(mm_shrink_slab_start, 186 TP_PROTO(struct shrinker *shr, struct shrink_control *sc, 187 long nr_objects_to_shrink, unsigned long cache_items, 188 unsigned long long delta, unsigned long total_scan, 189 int priority), 190 191 TP_ARGS(shr, sc, nr_objects_to_shrink, cache_items, delta, total_scan, 192 priority), 193 194 TP_STRUCT__entry( 195 __field(struct shrinker *, shr) 196 __field(void *, shrink) 197 __field(int, nid) 198 __field(long, nr_objects_to_shrink) 199 __field(gfp_t, gfp_flags) 200 __field(unsigned long, cache_items) 201 __field(unsigned long long, delta) 202 __field(unsigned long, total_scan) 203 __field(int, priority) 204 __field(unsigned int, cgroup_ino) 205 ), 206 207 TP_fast_assign( 208 __entry->shr = shr; 209 __entry->shrink = shr->scan_objects; 210 __entry->nid = sc->nid; 211 __entry->nr_objects_to_shrink = nr_objects_to_shrink; 212 __entry->gfp_flags = sc->gfp_mask; 213 __entry->cache_items = cache_items; 214 __entry->delta = delta; 215 __entry->total_scan = total_scan; 216 __entry->priority = priority; > 217 __entry->cgroup_ino = cgroup_ino(sc->memcg->css.cgroup); 218 ), 219 220 TP_printk("%pS %p: nid: %d objects to shrink %ld gfp_flags %s cache items %ld delta %lld total_scan %ld priority %d cgroup_ino %u", 221 __entry->shrink, 222 __entry->shr, 223 __entry->nid, 224 __entry->nr_objects_to_shrink, 225 show_gfp_flags(__entry->gfp_flags), 226 __entry->cache_items, 227 __entry->delta, 228 __entry->total_scan, 229 __entry->priority, 230 __entry->cgroup_ino) 231 ); 232 --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip