Lines Matching defs:log
3 * simple event log debugging facility
55 struct ev_log *log = file->private_data;
62 max = log->max;
65 n = (log->next - 1) & (max - 1);
66 entry = log->entry;
67 while (n != log->next) {
72 if (id < log->num_strings)
73 str = log->strings[id];
83 log->fault = 0;
88 static void ev_log_write(struct ev_log *log, unsigned id, unsigned arg)
94 if (log->fault) {
95 if (log->fault == 1)
97 log->fault--;
100 entry = log->entry + log->next;
104 log->next = (log->next + 1) & (log->max - 1);
109 static void ev_log_freeze(struct ev_log *log, unsigned count)
113 log->fault = count;
128 static int ev_log_init(struct ev_log *log)
130 debugfs_create_file(log->name, 0444, 0, log, &ev_log_ops);