Changeset 3fea752 in mainline
- Timestamp:
- 2019-01-28T07:46:58Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 67bcd81
- Parents:
- 182487c6 (diff), 871cff9a (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Files:
-
- 17 added
- 13 deleted
- 6 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
.gitignore
r182487c6 r3fea752 90 90 uspace/app/bithenge/bithenge 91 91 uspace/app/blkdump/blkdump 92 uspace/app/bnchmark/bnchmark93 92 uspace/app/contacts/contacts 94 93 uspace/app/corecfg/corecfg … … 107 106 uspace/app/getterm/getterm 108 107 uspace/app/gunzip/gunzip 108 uspace/app/hbench/hbench 109 109 uspace/app/inet/inet 110 110 uspace/app/init/init … … 131 131 uspace/app/nterm/nterm 132 132 uspace/app/pci/pci 133 uspace/app/perf/perf134 133 uspace/app/ping/ping 135 134 uspace/app/ping6/ping6 … … 173 172 uspace/dist/app/bithenge 174 173 uspace/dist/app/blkdump 175 uspace/dist/app/bnchmark176 174 uspace/dist/app/corecfg 177 175 uspace/dist/app/cpptest -
boot/Makefile.common
r182487c6 r3fea752 181 181 bithenge \ 182 182 blkdump \ 183 bnchmark \184 183 contacts \ 185 184 corecfg \ … … 192 191 fdisk \ 193 192 gunzip \ 193 hbench \ 194 194 inet \ 195 195 kill \ … … 205 205 mkmfs \ 206 206 nic \ 207 perf \208 207 sbi \ 209 208 sportdmp \ -
uspace/Makefile
r182487c6 r3fea752 38 38 app/bithenge \ 39 39 app/blkdump \ 40 app/bnchmark \41 40 app/contacts \ 42 41 app/corecfg \ … … 51 50 app/getterm \ 52 51 app/gunzip \ 52 app/hbench \ 53 53 app/init \ 54 54 app/inet \ … … 68 68 app/nterm \ 69 69 app/pci \ 70 app/perf \71 70 app/redir \ 72 71 app/sbi \ -
uspace/app/hbench/Makefile
r182487c6 r3fea752 31 31 LIBS = math 32 32 33 BINARY = perf33 BINARY = hbench 34 34 35 35 SOURCES = \ 36 perf.c \ 36 benchlist.c \ 37 csv.c \ 38 env.c \ 39 main.c \ 40 utils.c \ 41 fs/dirread.c \ 42 fs/fileread.c \ 37 43 ipc/ns_ping.c \ 38 44 ipc/ping_pong.c \ 39 45 malloc/malloc1.c \ 40 malloc/malloc2.c 46 malloc/malloc2.c \ 47 synch/fibril_mutex.c 41 48 42 49 include $(USPACE_PREFIX)/Makefile.common -
uspace/app/hbench/benchlist.c
r182487c6 r3fea752 1 1 /* 2 2 * Copyright (c) 2018 Jiri Svoboda 3 * Copyright (c) 2018 Vojtech Horky 3 4 * All rights reserved. 4 5 * … … 27 28 */ 28 29 29 /** @addtogroup perf30 /** @addtogroup hbench 30 31 * @{ 31 32 */ 32 /** @file 33 /** 34 * @file 33 35 */ 34 36 35 #i fndef PERF_H_36 # define PERF_H_37 #include <stdlib.h> 38 #include "hbench.h" 37 39 38 #include <stdbool.h> 40 benchmark_t *benchmarks[] = { 41 &benchmark_dir_read, 42 &benchmark_fibril_mutex, 43 &benchmark_file_read, 44 &benchmark_malloc1, 45 &benchmark_malloc2, 46 &benchmark_ns_ping, 47 &benchmark_ping_pong 48 }; 39 49 40 typedef const char *(*benchmark_entry_t)(void); 41 42 typedef struct { 43 const char *name; 44 const char *desc; 45 benchmark_entry_t entry; 46 } benchmark_t; 47 48 extern const char *bench_malloc1(void); 49 extern const char *bench_malloc2(void); 50 extern const char *bench_ns_ping(void); 51 extern const char *bench_ping_pong(void); 52 53 extern benchmark_t benchmarks[]; 54 55 #endif 50 size_t benchmark_count = sizeof(benchmarks) / sizeof(benchmarks[0]); 56 51 57 52 /** @} -
uspace/app/tester/tester.c
r182487c6 r3fea752 35 35 */ 36 36 37 #include <assert.h> 37 38 #include <stdio.h> 38 39 #include <stddef.h> … … 40 41 #include <str.h> 41 42 #include <io/log.h> 43 #include <types/casting.h> 42 44 #include "tester.h" 43 45 … … 144 146 } 145 147 146 unsigned int _len = (unsigned int) len; 147 if ((_len != len) || (((int) _len) < 0)) { 148 printf("Command length overflow\n"); 149 return; 150 } 148 assert(can_cast_size_t_to_int(len) && "test name length overflow"); 151 149 152 150 for (test = tests; test->name != NULL; test++) 153 printf("%-*s %s%s\n", _len, test->name, test->desc,151 printf("%-*s %s%s\n", (int) len, test->name, test->desc, 154 152 (test->safe ? "" : " (unsafe)")); 155 153 156 printf("%-*s Run all safe tests\n", _len, "*");154 printf("%-*s Run all safe tests\n", (int) len, "*"); 157 155 } 158 156 -
uspace/lib/c/Makefile
r182487c6 r3fea752 189 189 TEST_SOURCES = \ 190 190 test/adt/circ_buf.c \ 191 test/casting.c \ 191 192 test/fibril/timer.c \ 192 193 test/main.c \ … … 196 197 test/stdio/scanf.c \ 197 198 test/odict.c \ 199 test/perf.c \ 198 200 test/perm.c \ 199 201 test/qsort.c \ -
uspace/lib/c/test/main.c
r182487c6 r3fea752 32 32 PCUT_INIT; 33 33 34 PCUT_IMPORT(casting); 34 35 PCUT_IMPORT(circ_buf); 35 36 PCUT_IMPORT(fibril_timer); … … 37 38 PCUT_IMPORT(mem); 38 39 PCUT_IMPORT(odict); 40 PCUT_IMPORT(perf); 39 41 PCUT_IMPORT(perm); 40 42 PCUT_IMPORT(qsort);
Note:
See TracChangeset
for help on using the changeset viewer.