1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-21 07:15:49 +00:00

loader: Add TSLOG to interpreter built-ins

Wrap each call to a built-in command with TSENTER/TSEXIT to make
it easier to see where time is going in the loader.

MFC after:	1 week
Sponsored by:	Amazon
Differential Revision:	https://reviews.freebsd.org/D46630
This commit is contained in:
Colin Percival 2024-09-18 04:01:41 -07:00
parent 32fce09268
commit 58ec2d0d4a

View File

@ -190,7 +190,9 @@ interp_builtin_cmd(int argc, char *argv[])
cmd = interp_lookup_cmd(argv[0]);
if (cmd != NULL && cmd->c_fn) {
TSENTER2(argv[0]);
result = cmd->c_fn(argc, argv);
TSEXIT();
} else {
command_errmsg = "unknown command";
}