Add dump_stack options to invalidate functions. spinlock protected
to serialize.