[PATCH 8/8] tracing/function: Convert func_set_flag() to a switch statement