Home
last modified time | relevance | path

Searched refs:timebuf (Results 1 – 2 of 2) sorted by relevance

/Linux-v6.1/tools/testing/selftests/net/
Dnettest.c144 static char *timestamp(char *timebuf, int buflen) in timestamp() argument
149 if (strftime(timebuf, buflen, "%T", localtime(&now)) == 0) { in timestamp()
150 memset(timebuf, 0, buflen); in timestamp()
151 strncpy(timebuf, "00:00:00", buflen-1); in timestamp()
154 return timebuf; in timestamp()
159 char timebuf[64]; in log_msg() local
166 timestamp(timebuf, sizeof(timebuf)), in log_msg()
177 char timebuf[64]; in log_error() local
184 timestamp(timebuf, sizeof(timebuf)), in log_error()
195 char timebuf[64]; in log_err_errno() local
[all …]
/Linux-v6.1/tools/testing/selftests/seccomp/
Dseccomp_bpf.c706 struct tms timebuf; in TEST_SIGNAL() local
707 clock_t clock = times(&timebuf); in TEST_SIGNAL()
716 EXPECT_LE(clock, syscall(__NR_times, &timebuf)); in TEST_SIGNAL()