Home
last modified time | relevance | path

Searched refs:regex (Results 1 – 25 of 38) sorted by relevance

12

/Linux-v5.4/tools/perf/trace/beauty/
Dmmap_flags.sh21 regex='^[[:space:]]*#[[:space:]]*define[[:space:]]+MAP_([[:alnum:]_]+)[[:space:]]+(0x[[:xdigit:]]+)…
22 egrep -q $regex ${arch_mman} && \
23 (egrep $regex ${arch_mman} | \
24 sed -r "s/$regex/\2 \1/g" | \
26 egrep -q $regex ${linux_mman} && \
27 (egrep $regex ${linux_mman} | \
29 sed -r "s/$regex/\2 \1/g" | \
32 (egrep $regex ${header_dir}/mman-common.h | \
34 sed -r "s/$regex/\2 \1/g" | \
37 (egrep $regex ${header_dir}/mman.h | \
[all …]
Dmount_flags.sh7 regex='^[[:space:]]*#[[:space:]]*define[[:space:]]+MS_([[:alnum:]_]+)[[:space:]]+([[:digit:]]+)[[:s…
8 egrep $regex ${header_dir}/mount.h | egrep -v '(MSK|VERBOSE|MGC_VAL)\>' | \
9 sed -r "s/$regex/\2 \2 \1/g" | sort -n | \
11 regex='^[[:space:]]*#[[:space:]]*define[[:space:]]+MS_([[:alnum:]_]+)[[:space:]]+\(1<<([[:digit:]]+…
12 egrep $regex ${header_dir}/mount.h | \
13 sed -r "s/$regex/\2 \1/g" | \
Dvhost_virtio_ioctl.sh7 regex='^#[[:space:]]*define[[:space:]]+VHOST_(\w+)[[:space:]]+_IOW?\([[:space:]]*VHOST_VIRTIO[[:spa…
8 egrep $regex ${header_dir}/vhost.h | \
9 sed -r "s/$regex/\2 \1/g" | \
14 regex='^#[[:space:]]*define[[:space:]]+VHOST_(\w+)[[:space:]]+_IOW?R\([[:space:]]*VHOST_VIRTIO[[:sp…
15 egrep $regex ${header_dir}/vhost.h | \
16 sed -r "s/$regex/\2 \1/g" | \
Dprctl_option.sh7 regex='^#define[[:space:]]+PR_(\w+)[[:space:]]*([[:xdigit:]]+).*'
8 egrep $regex ${header_dir}/prctl.h | grep -v PR_SET_PTRACER | \
9 sed -r "s/$regex/\2 \1/g" | \
14 regex='^#[[:space:]]+define[[:space:]]+PR_SET_MM_(\w+)[[:space:]]*([[:digit:]]+).*'
15 egrep $regex ${header_dir}/prctl.h | \
16 sed -r "s/$regex/\2 \1/g" | \
Dusbdevfs_ioctl.sh10 regex="^#[[:space:]]*define[[:space:]]+USBDEVFS_(\w+)(\(\w+\))?[[:space:]]+_IO[CWR]{0,2}\([[:space:…
11 egrep "$regex" ${header_dir}/usbdevice_fs.h | egrep -v 'USBDEVFS_\w+32[[:space:]]' | \
12 sed -r "s/$regex/\4 \1/g" | \
17 regex="^#[[:space:]]*define[[:space:]]+USBDEVFS_(\w+)[[:space:]]+_IO[WR]{0,2}\([[:space:]]*'U'[[:sp…
18 egrep $regex ${header_dir}/usbdevice_fs.h | egrep 'USBDEVFS_\w+32[[:space:]]' | \
19 sed -r "s/$regex/\2 \1/g" | \
Drename_flags.sh10 regex='^[[:space:]]*#[[:space:]]*define[[:space:]]+RENAME_([[:alnum:]_]+)[[:space:]]+\(1[[:space:]]…
11 egrep -q $regex ${fs_header} && \
12 (egrep $regex ${fs_header} | \
13 sed -r "s/$regex/\2 \1/g" | \
Dx86_arch_prctl.sh16regex=`printf '^[[:space:]]*#[[:space:]]*define[[:space:]]+ARCH_([[:alnum:]_]+)[[:space:]]+(%s[[:x…
18 egrep -q $regex ${prctl_arch_header} && \
19 (egrep $regex ${prctl_arch_header} | \
20 sed -r "s/$regex/\2 \1/g" | \
Dsocket_ipproto.sh7 regex='^[[:space:]]+IPPROTO_(\w+)[[:space:]]+=[[:space:]]+([[:digit:]]+),.*'
9 egrep $regex ${header_dir}/in.h | \
10 sed -r "s/$regex/\2 \1/g" | \
Dperf_ioctl.sh7 regex='^#[[:space:]]*define[[:space:]]+PERF_EVENT_IOC_(\w+)[[:space:]]+_IO[RW]*[[:space:]]*\([[:spa…
8 egrep $regex ${header_dir}/perf_event.h | \
9 sed -r "s/$regex/\2 \1/g" | \
Dkcmp_type.sh7 regex='^[[:space:]]+(KCMP_(\w+)),'
8 egrep $regex ${header_dir}/kcmp.h | grep -v KCMP_TYPES, | \
9 sed -r "s/$regex/\1 \2/g" | \
Dmadvise_behavior.sh7 regex='^[[:space:]]*#[[:space:]]*define[[:space:]]+MADV_([[:alnum:]_]+)[[:space:]]+([[:digit:]]+)[[…
8 egrep $regex ${header_dir}/mman-common.h | \
9 sed -r "s/$regex/\2 \1/g" | \
Dpkey_alloc_access_rights.sh7 regex='^[[:space:]]*#[[:space:]]*define[[:space:]]+PKEY_([[:alnum:]_]+)[[:space:]]+(0x[[:xdigit:]]+…
8 egrep $regex ${header_dir}/mman-common.h | \
9 sed -r "s/$regex/\2 \2 \1/g" | \
Dkvm_ioctl.sh7 regex='^#[[:space:]]*define[[:space:]]+KVM_(\w+)[[:space:]]+_IO[RW]*\([[:space:]]*KVMIO[[:space:]]*…
8 egrep $regex ${header_dir}/kvm.h | \
9 sed -r "s/$regex/\2 \1/g" | \
Dfadvise.sh7 regex='^[[:space:]]*#[[:space:]]*define[[:space:]]+POSIX_FADV_(\w+)[[:space:]]+([[:digit:]]+)[[:spa…
9 egrep $regex ${header_dir}/fadvise.h | \
10 sed -r "s/$regex/\2 \1/g" | \
Dfsconfig.sh13 regex='^[[:space:]]*+FSCONFIG_([[:alnum:]_]+)[[:space:]]*=[[:space:]]*([[:digit:]]+)[[:space:]]*,[[…
14 egrep $regex ${linux_mount} | \
15 sed -r "s/$regex/\2 \1/g" | \
Dfspick.sh13 regex='^[[:space:]]*#[[:space:]]*define[[:space:]]+FSPICK_([[:alnum:]_]+)[[:space:]]+(0x[[:xdigit:]…
14 egrep $regex ${linux_mount} | \
15 sed -r "s/$regex/\2 \1/g" | \
Dmove_mount_flags.sh13 regex='^[[:space:]]*#[[:space:]]*define[[:space:]]+MOVE_MOUNT_([FT]_[[:alnum:]_]+)[[:space:]]+(0x[[…
14 egrep $regex ${linux_mount} | \
15 sed -r "s/$regex/\2 \1/g" | \
Dsync_file_range.sh13 regex='^[[:space:]]*#[[:space:]]*define[[:space:]]+SYNC_FILE_RANGE_([[:alnum:]_]+)[[:space:]]+([[:x…
14 egrep $regex ${linux_fs} | \
15 sed -r "s/$regex/\2 \1/g" | \
Dfsmount.sh18 regex='^[[:space:]]*#[[:space:]]*define[[:space:]]+MOUNT_ATTR_([[:alnum:]][[:alnum:]_]+)[[:space:]]…
19 egrep $regex ${linux_mount} | grep -v MOUNT_ATTR_RELATIME | \
20 sed -r "s/$regex/\2 \1/g" | \
/Linux-v5.4/Documentation/trace/postprocess/
Dtrace-pagealloc-postprocess.pl94 my $regex;
98 $regex = $default;
104 $regex = $1;
105 $regex =~ s/%p/\([0-9a-f]*\)/g;
106 $regex =~ s/%d/\([-0-9]*\)/g;
107 $regex =~ s/%lu/\([0-9]*\)/g;
114 foreach $tuple (split /\s/, $regex) {
119 $regex =~ s/$key=\((.*)\)/$key=$1/;
127 return $regex;
Dtrace-vmscan-postprocess.pl140 my $regex;
152 $regex = $1;
153 $regex =~ s/%s/\([0-9a-zA-Z|_]*\)/g;
154 $regex =~ s/%p/\([0-9a-f]*\)/g;
155 $regex =~ s/%d/\([-0-9]*\)/g;
156 $regex =~ s/%ld/\([-0-9]*\)/g;
157 $regex =~ s/%lu/\([0-9]*\)/g;
164 $regex =~ s/\(REC.*\) \? __print_flags.*//;
168 foreach $tuple (split /\s/, $regex) {
173 $regex =~ s/$key=\((.*)\)/$key=$1/;
[all …]
/Linux-v5.4/kernel/trace/
Dtrace_events_filter.c663 cmp = pred->regex.match(addr, &pred->regex, pred->regex.field_len); in filter_pred_string()
677 cmp = pred->regex.match(*addr, &pred->regex, len); in filter_pred_pchar()
702 cmp = pred->regex.match(addr, &pred->regex, str_len); in filter_pred_strloc()
740 cmp = pred->regex.match(current->comm, &pred->regex, in filter_pred_comm()
762 static int regex_match_full(char *str, struct regex *r, int len) in regex_match_full()
771 static int regex_match_front(char *str, struct regex *r, int len) in regex_match_front()
779 static int regex_match_middle(char *str, struct regex *r, int len) in regex_match_middle()
787 static int regex_match_end(char *str, struct regex *r, int len) in regex_match_end()
797 static int regex_match_glob(char *str, struct regex *r, int len __maybe_unused) in regex_match_glob()
864 struct regex *r = &pred->regex; in filter_build_regex()
[all …]
/Linux-v5.4/tools/bpf/
Dbpf_jit_disasm.c179 regex_t regex; in get_last_jit_image() local
185 ret = regcomp(&regex, "flen=[[:alnum:]]+ proglen=[[:digit:]]+ " in get_last_jit_image()
193 ret = regexec(&regex, ptr, 1, pmatch, 0); in get_last_jit_image()
206 regfree(&regex); in get_last_jit_image()
247 regfree(&regex); in get_last_jit_image()
/Linux-v5.4/scripts/
Dtags.sh224 regex=()
233 regex[${#regex[@]}]="--regex-$lang=${r}b"
246 regex[${#regex[@]}]="--regex=$r"
/Linux-v5.4/tools/lib/lockdep/
DMakefile132 --regex-c++='/_PE\(([^,)]*).*/TEP_ERRNO__\1/'
137 --regex='/_PE(\([^,)]*\).*/TEP_ERRNO__\1/'

12