[PATCH 6.12 010/172] perf ftrace: Fix undefined behavior in cmp_profile_data()