Home
last modified time | relevance | path

Searched refs:secs (Results 1 – 23 of 23) sorted by relevance

/tools/testing/selftests/rtc/
A Drtctest.c227 time_t secs, new; in TEST_F() local
245 gmtime_r(&secs, (struct tm *)&tm); in TEST_F()
288 ASSERT_EQ(new, secs); in TEST_F()
297 time_t secs, new; in TEST_F() local
315 gmtime_r(&secs, (struct tm *)&alarm.time); in TEST_F()
353 ASSERT_EQ(new, secs); in TEST_F()
361 time_t secs, new; variable
377 gmtime_r(&secs, (struct tm *)&tm);
420 ASSERT_EQ(new, secs);
429 time_t secs, new; variable
[all …]
/tools/testing/selftests/sgx/
A Dload.c82 struct sgx_secs *secs = &encl->secs; in encl_ioc_create() local
88 memset(secs, 0, sizeof(*secs)); in encl_ioc_create()
89 secs->ssa_frame_size = 1; in encl_ioc_create()
90 secs->attributes = SGX_ATTR_MODE64BIT; in encl_ioc_create()
91 secs->xfrm = 3; in encl_ioc_create()
92 secs->base = encl->encl_base; in encl_ioc_create()
93 secs->size = encl->encl_size; in encl_ioc_create()
95 ioc.src = (unsigned long)secs; in encl_ioc_create()
99 munmap((void *)secs->base, encl->encl_size); in encl_ioc_create()
A Dmain.h30 struct sgx_secs secs; member
/tools/perf/scripts/perl/Perf-Trace-Util/lib/Perf/Trace/
A DUtil.pm34 my ($secs, $nsecs) = @_;
36 return $secs * $NSECS_PER_SEC + $nsecs;
/tools/lib/bpf/
A Dlinker.c68 struct src_sec *secs; member
222 free(linker->secs); in bpf_linker__free()
314 struct dst_sec *secs = linker->secs, *sec; in add_dst_sec() local
317 secs = libbpf_reallocarray(secs, new_cnt, sizeof(*secs)); in add_dst_sec()
318 if (!secs) in add_dst_sec()
324 linker->secs = secs; in add_dst_sec()
511 free(obj.secs); in bpf_linker_add_file()
645 struct src_sec *secs = obj->secs, *sec; in add_src_sec() local
648 secs = libbpf_reallocarray(secs, new_cnt, sizeof(*secs)); in add_src_sec()
649 if (!secs) in add_src_sec()
[all …]
A Dbtf.c1164 field = &secs->btf_data; in btf_find_elf_sections()
1166 field = &secs->btf_ext_data; in btf_find_elf_sections()
1168 field = &secs->btf_base_data; in btf_find_elf_sections()
1196 struct btf_elf_secs secs = {}; in btf_parse_elf() local
1221 err = btf_find_elf_sections(elf, path, &secs); in btf_parse_elf()
1225 if (!secs.btf_data) { in btf_parse_elf()
1231 if (secs.btf_base_data) { in btf_parse_elf()
1232 dist_base_btf = btf_new(secs.btf_base_data->d_buf, secs.btf_base_data->d_size, in btf_parse_elf()
1241 btf = btf_new(secs.btf_data->d_buf, secs.btf_data->d_size, in btf_parse_elf()
1270 if (btf_ext && secs.btf_ext_data) { in btf_parse_elf()
[all …]
A Dlibbpf.c663 struct elf_sec_desc *secs; member
1467 struct elf_sec_desc *desc = &obj->efile.secs[sec_idx]; in bpf_object_init_struct_ops()
1539 zfree(&obj->efile.secs); in bpf_object__elf_finish()
1996 sec_desc = &obj->efile.secs[sec_idx]; in bpf_object__init_global_data_maps()
3835 obj->efile.secs = calloc(obj->efile.sec_cnt, sizeof(*obj->efile.secs)); in bpf_object__elf_collect()
3836 if (!obj->efile.secs) in bpf_object__elf_collect()
3875 sec_desc = &obj->efile.secs[idx]; in bpf_object__elf_collect()
4454 switch (obj->efile.secs[shndx].sec_type) { in bpf_object__shndx_is_data()
4476 switch (obj->efile.secs[shndx].sec_type) { in bpf_object__section_to_libbpf_map_type()
7325 struct elf_sec_desc *sec_desc = &obj->efile.secs[i]; in bpf_object__collect_relos()
[all …]
/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/
A DCore.py106 self.secs = common_secs
113 return (self.secs * (10 ** 9)) + self.nsecs
116 return "%d.%d" % (self.secs, int(self.nsecs / 1000))
A DUtil.py23 def nsecs(secs, nsecs): argument
24 return secs * NSECS_PER_SEC + nsecs
/tools/perf/scripts/python/
A Dcompaction-times.py96 def complete(self, secs, nsecs): argument
97 self.ns = ns(secs, nsecs) - self.ns
141 def complete_pending(cls, pid, secs, nsecs): argument
145 head.make_complete(secs, nsecs)
172 def mark_pending(self, secs, nsecs): argument
173 self.pending = cnode(ns(secs, nsecs))
178 def make_complete(self, secs, nsecs): argument
179 self.pending.complete(secs, nsecs)
A Dcheck-perf-trace.py60 def print_header(event_name, cpu, secs, nsecs, pid, comm): argument
62 (event_name, cpu, secs, nsecs, pid, comm),
/tools/perf/scripts/perl/
A Dcheck-perf-trace.pl102 my ($event_name, $cpu, $secs, $nsecs, $pid, $comm) = @_;
105 $event_name, $cpu, $secs, $nsecs, $pid, $comm);
/tools/testing/selftests/timers/
A Dclocksource-switch.c106 int run_tests(int secs) in run_tests() argument
111 sprintf(buf, "./inconsistency-check -t %i", secs); in run_tests()
/tools/perf/util/
A Ddebug.c123 u64 secs, usecs, nsecs = t; in veprintf_time() local
125 secs = nsecs / NSEC_PER_SEC; in veprintf_time()
126 nsecs -= secs * NSEC_PER_SEC; in veprintf_time()
129 ret = fprintf(debug_file(), "[%13" PRIu64 ".%06" PRIu64 "] ", secs, usecs); in veprintf_time()
A Dauxtrace.c1765 unsigned long secs = nsecs / NSEC_PER_SEC; in perf_event__fprintf_auxtrace_error() local
1767 nsecs -= secs * NSEC_PER_SEC; in perf_event__fprintf_auxtrace_error()
1768 ret += fprintf(fp, " time %lu.%09llu", secs, nsecs); in perf_event__fprintf_auxtrace_error()
/tools/perf/Documentation/
A Dperf-script-perl.txt98 $common_secs the secs portion of the event timestamp
208 nsecs($secs, $nsecs) - returns total nsecs given secs/nsecs pair
209 nsecs_secs($nsecs) - returns whole secs portion given nsecs
211 nsecs_str($nsecs) - returns printable string in the form secs.nsecs
A Dperf-script-python.txt155 def print_header(event_name, cpu, secs, nsecs, pid, comm):
157 (event_name, cpu, secs, nsecs, pid, comm),
490 common_secs the secs portion of the event timestamp
634 nsecs(secs, nsecs) - returns total nsecs given secs/nsecs pair
635 nsecs_secs(nsecs) - returns whole secs portion given nsecs
637 nsecs_str(nsecs) - returns printable string in the form secs.nsecs
/tools/testing/selftests/futex/functional/
A Dfutex_requeue_pi.c292 time_t secs; in unit_test() local
296 secs = (ts.tv_nsec + timeout_ns) / 1000000000; in unit_test()
298 ts.tv_sec += secs; in unit_test()
/tools/kvm/kvm_stat/
A Dkvm_stat.txt108 set delay between refreshs (value range: 0.1-25.5 secs)
/tools/perf/
A Dbuiltin-daemon.c445 int secs) in daemon_session__wait() argument
465 if (start + secs < time(NULL)) in daemon_session__wait()
484 static int daemon__wait(struct daemon *daemon, int secs) in daemon__wait() argument
504 if (start + secs < time(NULL)) in daemon__wait()
A Dbuiltin-inject.c132 struct perf_file_section secs[HEADER_FEAT_BITS]; member
2024 inject->secs[feat] = *section; in save_section_info_cb()
2092 u64 offs = inject->secs[feat].offset; in feat_copy()
2093 size_t sz = inject->secs[feat].size; in feat_copy()
2121 if (!inject->secs[feat].offset || in feat_copy_cb()
A Dbuiltin-script.c821 unsigned long secs; in perf_sample__fprintf_start() local
935 secs = nsecs / NSEC_PER_SEC; in perf_sample__fprintf_start()
936 nsecs -= secs * NSEC_PER_SEC; in perf_sample__fprintf_start()
939 printed += fprintf(fp, "%5lu.%09llu: ", secs, nsecs); in perf_sample__fprintf_start()
/tools/perf/bench/
A Dnuma.c1222 u64 bytes_done, secs; in worker_thread() local
1382 secs = td->runtime_ns / NSEC_PER_SEC; in worker_thread()
1383 td->speed_gbs = secs ? bytes_done / secs / 1e9 : 0; in worker_thread()

Completed in 76 milliseconds