Lines Matching refs:trigger
123 if (!crash->trigger) in channel_oneshot()
126 if (!strcmp("file", crash->trigger->type) || in channel_oneshot()
127 !strcmp("node", crash->trigger->type)) { in channel_oneshot()
128 if (!crash_match_filefmt(crash, crash->trigger->path)) in channel_oneshot()
132 0, crash->trigger->path, in channel_oneshot()
133 crash->trigger->path_len); in channel_oneshot()
136 } else if (!strcmp("rebootreason", crash->trigger->type)) { in channel_oneshot()
142 0, crash->trigger->path, in channel_oneshot()
143 crash->trigger->path_len); in channel_oneshot()
161 if (info->trigger && in channel_oneshot()
162 !strcmp("file", info->trigger->type) && in channel_oneshot()
163 file_exists(info->trigger->path)) { in channel_oneshot()
313 struct trigger_t *trigger; in channel_inotify() local
332 if (!crash->trigger) in channel_inotify()
335 trigger = crash->trigger; in channel_inotify()
336 if (!strcmp("dir", trigger->type)) { in channel_inotify()
337 if (directory_exists(trigger->path)) { in channel_inotify()
339 trigger->path, in channel_inotify()
343 trigger->path, strerror(errno)); in channel_inotify()
346 LOGI("add %s succuessed\n", trigger->path); in channel_inotify()
349 trigger->path); in channel_inotify()