int met_tag_oneshot_real(unsigned int class_id, const char *name, unsigned int value) { int ret; ret = tracing_mark_write(TYPE_ONESHOT, class_id, name, value, 0, 0); #ifdef BUILD_WITH_MET if (irqs_disabled()) force_sample(NULL); else on_each_cpu(force_sample, NULL, 1); #endif return ret; }
int met_tag_end_real(unsigned int class_id, const char *name) { int ret; #ifdef BUILD_WITH_MET if (irqs_disabled()) { force_sample(NULL); } else { on_each_cpu(force_sample, NULL, 1); } #endif ret = tracing_mark_write(TYPE_END, class_id, name, 0, 0, 0); return ret; }