Lines Matching defs:sys
11 #include <sys/types.h>
12 #include <sys/stat.h>
13 #include <sys/wait.h>
144 static bool name_in_tp_list(char *sys, struct tracepoint_path *tps)
147 if (!strcmp(sys, tps->name))
161 static int copy_event_system(const char *sys, struct tracepoint_path *tps)
171 dir = opendir(sys);
173 pr_debug("can't read directory '%s'", sys);
181 if (asprintf(&format, "%s/%s/format", sys, dent->d_name) < 0) {
203 if (asprintf(&format, "%s/%s/format", sys, dent->d_name) < 0) {
242 static bool system_in_tp_list(char *sys, struct tracepoint_path *tps)
245 if (!strcmp(sys, tps->system))
258 char *sys;
297 if (asprintf(&sys, "%s/%s", path, dent->d_name) < 0) {
301 ret = stat(sys, &st);
306 copy_event_system(sys, tps) < 0) {
308 free(sys);
312 free(sys);