mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-30 04:22:44 +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:
parent
32fce09268
commit
58ec2d0d4a
@ -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";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user