Lines Matching +full:event +full:- +full:deep
1 // SPDX-License-Identifier: GPL-2.0
4 #include "event.h"
84 attr->exclude_host = 1; in event_attr_init()
86 attr->exclude_guest = 1; in event_attr_init()
88 attr->size = sizeof(*attr); in event_attr_init()
98 return -1; in mkdir_p()
110 return -1; in mkdir_p()
114 return (stat(path, &st) && mkdir(path, mode)) ? -1 : 0; in mkdir_p()
135 * The depth specify how deep the removal will go.
136 * 0 - will remove only files under the 'path' directory
137 * 1 .. x - will dive in x-level deep under the 'path' directory
145 * -1 on removal failure with errno set
146 * -2 on pattern failure
168 return -1; in rm_rf_depth_pat()
172 if (!strcmp(d->d_name, ".") || !strcmp(d->d_name, "..")) in rm_rf_depth_pat()
175 if (!match_pat(d->d_name, pat)) { in rm_rf_depth_pat()
176 ret = -2; in rm_rf_depth_pat()
181 path, d->d_name); in rm_rf_depth_pat()
191 ret = depth ? rm_rf_depth_pat(namebuf, depth - 1, pat) : 0; in rm_rf_depth_pat()
239 return d->d_name[0] != '.'; in lsdir_no_dot_filter()
262 strlist__add(list, d->d_name); in lsdir()
313 return -1; in fetch_ubuntu_kernel_version()
318 err = -1; in fetch_ubuntu_kernel_version()
359 return -1; in fetch_kernel_version()
363 str[str_size - 1] = '\0'; in fetch_kernel_version()
375 return -1; in fetch_kernel_version()
395 "Tip: check path of tips.txt or get more memory! ;-p"; in perf_tip()
401 if (asprintf(&tip, "Tip: %s", node->s) < 0) in perf_tip()
402 tip = (char *)"Tip: get more memory! ;-)"; in perf_tip()