Home
last modified time | relevance | path

Searched full:s (Results 1 – 25 of 212) sorted by relevance

123456789

/kvm-unit-tests/scripts/
H A Dcheckpatch.pl138 file. It's your fault if there's no backup or git
177 while ($text =~ /(?:(\bCHK|\bWARN|\bERROR|&\{\$msg_level})\s*\(|\$msg_type\s*=)\s*"([^"]+)"/g) {
217 $message =~ s/\n/\n\t/g;
234 $line =~ s/\s*\n?$//g;
235 $line =~ s/^\s*//g;
236 $line =~ s/\s+/ /g;
238 next if ($line =~ m/^\s*#/);
239 next if ($line =~ m/^\s*$/);
262 $line =~ s/\s+$//;
264 if ($line =~ /^\s*\*\*(.+)\*\*$/) {
[all …]
H A Dkernel-doc69 my $type_fp_param2 = '\@(\w+->\S+)\(\)'; # Special RST handling for structs with func ptr params
71 my $type_enum = '\&(enum\s*([_\w]+))';
72 my $type_struct = '\&(struct\s*([_\w]+))';
73 my $type_typedef = '\&(typedef\s*([_\w]+))';
74 my $type_union = '\&(union\s*([_\w]+))';
160 (my $seconds = `date -d"${ENV{'KBUILD_BUILD_TIMESTAMP'}}" +%s`) ne '') {
195 # kernel's build system
203 # docbook v3.1 requires a non-zero sequence of RefEntry's; see:
234 # Spit a warning as it's not
246 my $doc_start = '^/\*\*\s*$'; # Allow whitespace at end of comment start.
[all …]
H A Dasm-offsets.mak11 's:^[[:space:]]*\.ascii[[:space:]]*"\(.*\)".*:\1:; \
12 /^->/{s:->#\(.*\):/* \1 */:; \
13 s:^->\([^ ]*\) [\$$#]*\([-0-9]*\) \(.*\):#define \1 \2 /* \3 */:; \
14 s:^->\([^ ]*\) [\$$#]*\([^ ]*\) \(.*\):#define \1 \2 /* \3 */:; \
15 s:->::; p;}'
37 $(1).s: $(1).c
38 $(CC) $(CFLAGS) -fverbose-asm -S -o $$@ $$<
40 $(1).h: $(1).s
50 $(RM) $(asm-offsets) $(asm-offsets:.h=.s) \
H A Dget_maintainer.pl108 'GitSubject: %s%n' .
117 'GitSubject: %s%n' .
126 'GitSubject: %s%n"' .
178 $line =~ s/\s*\n?$//g;
179 $line =~ s/^\s*//g;
180 $line =~ s/\s+/ /g;
182 next if ($line =~ m/^\s*#/);
183 next if ($line =~ m/^\s*$/);
203 $line =~ s/\s*\n?$//;
204 $line =~ s/^\s*//;
[all …]
H A Dpretty_print_stacks.py29 # 0x004002be: start64 at path/to/kvm-unit-tests-repo-worktree/x86/cstart64.S:208
43 puts('%s\n' % line)
48 puts('%s at %s:%s%s\n' % (head.decode(), path.decode(), maybeline.decode(), tail.decode()))
56 puts(' %s\n' % lines[line - 2].rstrip())
57 puts(' > %s\n' % lines[line - 1].rstrip())
59 puts(' %s\n' % lines[line].rstrip())
63 sys.stderr.write('usage: %s <kernel>\n' % sys.argv[0])
H A Dcheck-patch.py23 repourl = "https://gitlab.com/%s/%s.git" % (namespace, reponame)
26 # base for the user's branch. We thus need to figure out a common
27 # ancestor between the user's branch and current git master.
40 log = subprocess.check_output(["git", "log", "--format=%H %s",
47 print("\nNo commits since %s, skipping checks\n" % ancestor)
52 print("\nChecking all commits since %s...\n" % ancestor, flush=True)
H A Darch-run.bash49 sig=$(sed 's/.*terminating on signal \([0-9][0-9]*\).*/\1/' <<<"$sig")
88 testret=$(grep '^EXIT: ' <<<"$lines" | head -n1 | sed 's/.*STATUS=\([0-9][0-9]*\).*/\1/')
103 local s
107 s=${TIMEOUT: -1}
108 if [ "$s" = 's' ]; then
111 TIMEOUT="${TIMEOUT}s"
114 echo "timeout -k 1s --foreground $TIMEOUT"
125 while ! test -S "$1"; do sleep 0.1; done
266 while ! [ -S ${dst_incoming} ] ; do sleep 0.1 ; done
267 while ! [ -S ${dst_qmp} ] ; do sleep 0.1 ; done
[all …]
/kvm-unit-tests/lib/
H A Derrata.h25 char *s; in errata_force() local
30 s = getenv("ERRATA_FORCE"); in errata_force()
31 return s && (*s == '1' || *s == 'y' || *s == 'Y'); in errata_force()
36 char *s; in errata() local
41 s = getenv(erratum); in errata()
43 return s && (*s == '1' || *s == 'y' || *s == 'Y'); in errata()
48 char *s; in errata_relaxed() local
53 s = getenv(erratum); in errata_relaxed()
55 return !(s && (*s == '0' || *s == 'n' || *s == 'N')); in errata_relaxed()
H A Dstring.c76 char *strchr(const char *s, int c) in strchr() argument
78 while (*s != (char)c) in strchr()
79 if (*s++ == '\0') in strchr()
81 return (char *)s; in strchr()
84 char *strrchr(const char *s, int c) in strrchr() argument
88 if (*s == (char)c) in strrchr()
89 last = s; in strrchr()
90 } while (*s++); in strrchr()
94 char *strchrnul(const char *s, int c) in strchrnul() argument
96 while (*s && *s != (char)c) in strchrnul()
[all …]
H A Dprintf.c35 static void print_str(pstream_t *p, const char *s, strprops_t props) in print_str() argument
37 const char *s_orig = s; in print_str()
48 while (*s && props.precision--) in print_str()
49 addchar(p, *s++); in print_str()
100 * can't include the character if it's a valid surrogate pair. in utf16s_utf8nlen()
101 * Avoid accessing one extra word just to check if it's valid in utf16s_utf8nlen()
120 static void print_wstring(pstream_t *p, const u16 *s, strprops_t props) in print_wstring() argument
122 const u16 *ws = (const u16 *)s; in print_wstring()
162 int s = 0, i; in print_int() local
166 s = 1; in print_int()
[all …]
H A Dutil.h16 * @s is the input string, likely a command line parameter, and
21 extern int parse_keyval(char *s, long *val);
32 report_fail("%s:%d: %s failed: (%s) == (%s)\n" \
33 "\tLHS: %#018lx - %s - %lu\n" \
34 "\tRHS: %#018lx - %s - %lu%s" fmt, \
47 /* FIXME: Extend VMX's assert/abort framework to SVM and other environs. */
H A Dstring.h20 extern char *strchr(const char *s, int c);
21 extern char *strrchr(const char *s, int c);
22 extern char *strchrnul(const char *s, int c);
24 extern void *memset(void *s, int c, size_t n);
28 extern void *memchr(const void *s, int c, size_t n);
H A Dutil.c10 int parse_keyval(char *s, long *val) in parse_keyval() argument
14 p = strchr(s, '='); in parse_keyval()
19 return p - s; in parse_keyval()
H A Dlibcflat.h32 #define xstr(s...) xxstr(s) argument
33 #define xxstr(s...) #s argument
78 extern void puts(const char *s);
134 printf("%s:%d: assert failed: %s\n", \
144 printf("%s:%d: assert failed: %s: " fmt "\n", \
/kvm-unit-tests/riscv/
H A Dsbi-tests.h54 pass = report_kfail(kfail, ch_err, fmt ": %s", ##__VA_ARGS__, expected_error_name); \
60 report_info(fmt ": %s (%ld): received error %ld", \
87 report_skip("missing %s environment variable", env); in env_or_skip()
95 char *s = getenv(env); in env_enabled() local
97 return s && (*s == '1' || *s == 'y' || *s == 'Y'); in env_enabled()
/kvm-unit-tests/lib/x86/
H A Damd_sev.h23 * AMD Programmer's Manual Volume 3
32 * AMD Programmer's Manual Volume 2
43 * AMD Programmer's Manual Volume 2
49 * AMD Programmer's Manual Volume 2
/kvm-unit-tests/lib/s390x/
H A Dcss_dump.c78 void dump_scsw(struct scsw *s) in dump_scsw() argument
80 dump_scsw_flags(s->ctrl); in dump_scsw()
81 printf("scsw->flags: %s\n", scsw_line); in dump_scsw()
82 printf("scsw->addr : %08x\n", s->ccw_addr); in dump_scsw()
83 printf("scsw->devs : %02x\n", s->dev_stat); in dump_scsw()
84 printf("scsw->schs : %02x\n", s->sch_stat); in dump_scsw()
85 printf("scsw->count: %04x\n", s->count); in dump_scsw()
122 struct scsw *s = &sch->scsw; in dump_schib() local
126 dump_scsw(s); in dump_schib()
/kvm-unit-tests/lib/riscv/
H A Dio.c77 printf("%s: Compatible uart not found in the device tree, aborting...\n", in uart0_init_fdt()
120 void puts(const char *s) in puts() argument
122 phys_addr_t addr = virt_to_phys((void *)s); in puts()
127 sbi_ecall(SBI_EXT_DBCN, SBI_EXT_DBCN_CONSOLE_WRITE, strlen(s), lo, hi, 0, 0, 0); in puts()
131 void puts(const char *s) in puts() argument
134 while (*s) { in puts()
137 uart0_write(0, *s++); in puts()
/kvm-unit-tests/
H A DMAINTAINERS22 S: Status, one of the following:
61 S: Supported
81 S: Supported
91 S: Maintained
99 S: Supported
109 S: Supported
119 S: Supported
H A DREADME96 runner's -g option.
100 Unit tests use QEMU's '-append args...' parameter for command line
108 may be passed with '-initrd file' to become the unit test's environ,
159 from the ./errata.txt file and the host's kernel version is provided to
209 Additionally it's helpful to have a common order of file types in patches.
212 code. git-diff's orderFile feature allows us to specify the order in a
216 We strive to follow the Linux kernels coding style so it's recommended
217 to run the kernel's ./scripts/checkpatch.pl on new patches.
H A DREADME.md96 runner's -g option.
100 Unit tests use QEMU's '-append args...' parameter for command line
108 may be passed with '-initrd file' to become the unit test's environ,
159 from the ./errata.txt file and the host's kernel version is provided to
209 Additionally it's helpful to have a common order of file types in patches.
212 code. git-diff's orderFile feature allows us to specify the order in a
216 We strive to follow the Linux kernels coding style so it's recommended
217 to run the kernel's ./scripts/checkpatch.pl on new patches.
/kvm-unit-tests/x86/
H A Dla57.c150 "Write to %s with value %lx did %s%s as expected", in test_register_write()
157 * because it's not possible to read them directly. in test_register_write()
165 "%s set to %lx as expected (actual value %lx)", in test_register_write()
217 "Tested invpcid type 0 with 0x%lx value - %s", in __test_invpcid()
224 * Note that this test tests the kvm's behavior only when ept=0. in test_invpcid()
227 * Also KVM's x86 emulator doesn't support invpcid, thus testing invpcid in test_invpcid()
239 printf("\nRunning canonical test %s forced emulation:\n", in __test_canonical_checks()
275 report_skip("skipping MSR_IA32_SYSENTER_ESP/MSR_IA32_SYSENTER_EIP %s", in __test_canonical_checks()
329 report(vector == expected, "%s when CR4.LA57 %ssupported (in %u-bit mode)", in main()
/kvm-unit-tests/x86/efi/
H A DREADME.md39 - crt0-efi-x86_64.S: startup code of an EFI application
51 3. link the entry point code `crt0-efi-x86_64.S` that invokes self-relocator
52 and then jumps to EFI application's `efi_main()` function
63 - efistart64.S: startup code for kvm-unit-tests in UEFI
/kvm-unit-tests/lib/arm/
H A Dio.c3 * devices exposed from QEMU, e.g. pl011 and chr-testdev. That's
4 * what's done here, along with initialization functions for those
58 printf("%s: Compatible uart not found in the device tree, " in uart0_init_fdt()
110 void puts(const char *s) in puts() argument
113 while (*s) in puts()
114 writeb(*s++, uart0_base); in puts()
/kvm-unit-tests/lib/libfdt/
H A Dfdt_strerror.c52 const char *s = fdt_errtable[-errval].str; in fdt_strerror() local
54 if (s) in fdt_strerror()
55 return s; in fdt_strerror()

123456789