[Please try to trim the context you are replying to] On Wed 08-11-17 11:30:23, peter enderborg wrote: [...] > What about the idea to keep the function, but instead of printing only do a > trace event.
I am not sure. I would rather see a tracepoint to mark the allocator entry. This would allow both 1) measuring the allocation latency (to compare it to the trace_mm_page_alloc and 2) check for stalls with arbitrary user defined timeout (just print all allocations which haven't passed trace_mm_page_alloc for the given amount of time). -- Michal Hocko SUSE Labs