Home
last modified time | relevance | path

Searched refs:string (Results 1 – 25 of 81) sorted by relevance

1234

/tools/lib/traceevent/
Devent-utils.h29 static inline char *strim(char *string) in strim() argument
33 if (!string) in strim()
35 while (*string) { in strim()
36 if (!isspace(*string)) in strim()
38 string++; in strim()
40 ret = string; in strim()
42 string = ret + strlen(ret) - 1; in strim()
43 while (string > ret) { in strim()
44 if (!isspace(*string)) in strim()
46 string--; in strim()
[all …]
/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/
DCore.py31 string = ""
37 string += flag_fields[event_name][field_name]['values'][idx]
41 string += " " + flag_fields[event_name][field_name]['delim'] + " "
42 string += flag_fields[event_name][field_name]['values'][idx]
46 return string
49 string = ""
54 string = symbolic_fields[event_name][field_name]['values'][idx]
57 string = symbolic_fields[event_name][field_name]['values'][idx]
60 return string
70 string = ""
[all …]
/tools/perf/scripts/perl/Perf-Trace-Util/lib/Perf/Trace/
DCore.pm35 my $string;
41 $string .= "NONE";
47 $string .= " | ";
49 $string .= "$trace_flags{$idx}";
55 return $string;
65 my $string;
71 $string .= "$flag_fields{$event_name}{$field_name}{'values'}{$idx}";
76 $string .= " $flag_fields{$event_name}{$field_name}{'delim'} ";
78 $string .= "$flag_fields{$event_name}{$field_name}{'values'}{$idx}";
85 return $string;
/tools/testing/selftests/bpf/progs/
Dtest_global_data.c87 test_reloc(string, 0, str0); in load_static_data()
88 test_reloc(string, 1, str1); in load_static_data()
89 test_reloc(string, 2, str2); in load_static_data()
91 test_reloc(string, 3, str1); in load_static_data()
93 test_reloc(string, 4, str2); in load_static_data()
/tools/build/feature/
Dtest-cxx.cpp5 static void print_str(std::string s) in print_str()
12 std::string s("Hello World!"); in main()
/tools/testing/kunit/test_data/
Dtest_skip_tests.log3 # Subtest: string-stream-test
8 ok 1 - string-stream-test
Dtest_skip_all_tests.log3 # Subtest: string-stream-test
8 ok 1 - string-stream-test # SKIP
Dtest_config_printk_time.log18 [ 0.060000] # Subtest: string-stream-test
23 [ 0.060000] ok 3 - string-stream-test
Dtest_pound_sign.log20 [ 0.060000] # Subtest: string-stream-test
25 [ 0.060000] ok 3 - string-stream-test
Dtest_output_with_prefix_isolated_correctly.log19 [ 0.060000] # Subtest: string-stream-test
24 [ 0.060000] ok 3 - string-stream-test
Dtest_pound_no_prefix.log20 # Subtest: string-stream-test
25 ok 3 - string-stream-test
Dtest_multiple_prefixes.log18 [ 0.060000][ T1] # Subtest: string-stream-test
23 [ 0.060000][ T1] ok 3 - string-stream-test
Dtest_interrupted_tap_output.log24 [ 0.060000] # Subtest: string-stream-test
29 [ 0.060000] ok 3 - string-stream-test
/tools/lib/traceevent/Documentation/
Dlibtraceevent-strerror.txt6 tep_strerror - Returns a string describing regular errno and tep error number.
20 readable string.
22 errno, defined in errno.h, or a tep error number. The string, describing this
28 behaves as the POSIX version - the error string is copied in the user supplied
34 string is copied into _buf_. If _errnum_ is not a valid error number,
Dlibtraceevent-field_print.txt39 string. A search is performed in the _event_ for a field with _name_. If such
41 _s_, according to the given format string _fmt_. If the argument _err_ is
45 string. A search is performed in the _event_ for a field with _name_. If such
49 according to the given format string _fmt_. If the argument _err_ is non-zero,
82 /* Print the value of "expires" field with custom format string */
85 /* Print the address and the name of "function" field with custom format string */
100 to create a string of data to use.
Dlibtraceevent-event_print.txt23 string _fmt_. The desired information is specified after the format string.
24 The _fmt_ is printf-like format string, following arguments are supported:
29 TEP_PRINT_COMM, "%s" - Event command string.
64 specified as part of this format string:
104 to create a string of data to use.
Dlibtraceevent-func_apis.txt62 or events have "%pS" parameter in its format string. It is common to pass in
65 the name of the function, the string is copied internally. The _addr_ is the
69 The _tep_register_print_string()_ function registers a string by the address
72 which has an address needs to know what string would be at that address. The
75 context. The _fmt_ is the string to register, it is copied internally.
76 The _addr_ is the address the string was located at.
145 if (tep_register_print_string(tep, "print string",
147 /* Failed to register "print string" address mapping */
/tools/perf/tests/
Dmem.c11 const char *string) in check() argument
22 TEST_ASSERT_VAL(failure, !strcmp(string, out)); in check()
/tools/perf/util/
Ddata-convert-bt.c73 struct bt_ctf_field_type *string; member
157 static int string_set_value(struct bt_ctf_field *field, const char *string);
160 const char *name, const char *string) in value_set_string() argument
162 struct bt_ctf_field_type *type = cw->data.string; in value_set_string()
172 ret = string_set_value(field, string); in value_set_string()
193 return cw->data.string; in get_tracepoint_field_type()
251 static int string_set_value(struct bt_ctf_field *field, const char *string) in string_set_value() argument
254 size_t len = strlen(string), i, p; in string_set_value()
258 if (isprint(string[i])) { in string_set_value()
261 buffer[p] = string[i]; in string_set_value()
[all …]
Dpython-ext-sources22 ../lib/string.c
34 util/string.c
/tools/testing/selftests/tc-testing/creating-testcases/
DAddingTestCases.txt47 Each command can be a string to be executed, or a list consisting
48 of a string which is a command to be executed, followed by 1 or
50 If only a string is given for the command, then an exit code of 0
68 Each command can be a string to be executed, or a list consisting
69 of a string which is a command to be executed, followed by 1 or
71 If only a string is given for the command, then an exit code of 0
/tools/scripts/
Dutilities.mak14 # newlines; the default is a bizarre string.
47 # the default escape is a bizarre string.
49 # NOTE: The escape is used directly as a string constant
63 # the default escape is a bizarre string.
83 # embedding in a shell string that is delimited by
113 # This function avoids the problem by producing a string
/tools/bpf/resolve_btfids/
DBuild4 resolve_btfids-y += string.o
/tools/perf/util/c++/
Dclang-test.cpp27 std::string cflag_kver("-DLINUX_VERSION_CODE=" + in __test__clang_to_IR()
/tools/perf/jvmti/
DBuild15 $(OUTPUT)jvmti/libstring.o: ../lib/string.c FORCE

1234