{
struct sync_pt *pt;
char val[32];
- char current_val[64];
+ char current_val[32];
+ char name[32];
list_for_each_entry(pt, &fence->pt_list_head, pt_list) {
val[0] = '\0';
current_val[0] = '\0';
+ name[0] = '\0';
+ if (pt->parent->ops->get_pt_name)
+ pt->parent->ops->get_pt_name(pt, name, sizeof(name));
+
if (pt->parent->ops->pt_value_str)
pt->parent->ops->pt_value_str(pt, val, sizeof(val));
current_val,
sizeof(current_val));
- pr_info("name=%s, current value=%s waiting value=%s\n",
- pt->parent->name, current_val, val);
+ pr_info("name=[%s:%s], current value=%s waiting value=%s\n",
+ pt->parent->name, name, current_val, val);
}
}
* to userspace by SYNC_IOC_FENCE_INFO.
* @timeline_value_str: fill str with the value of the sync_timeline's counter
* @pt_value_str: fill str with the value of the sync_pt
+ * @get_pt_name: fill str with the name of the sync_pt
*/
struct sync_timeline_ops {
const char *driver_name;
/* optional */
void (*pt_value_str)(struct sync_pt *pt, char *str, int size);
+
+ /* optional */
+ void (*get_pt_name)(struct sync_pt *pt, char *str, int size);
};
/**