<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/stand/common/interp_lua.c, branch releng/14.3</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=releng%2F14.3</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=releng%2F14.3'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2024-04-16T19:54:26Z</updated>
<entry>
<title>libsa: Remove redundant sys/cdefs.h</title>
<updated>2024-04-16T19:54:26Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2024-02-22T15:18:02Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=c05fe06acbc6e1ec82d5f610ced1dd9550c68305'/>
<id>urn:sha1:c05fe06acbc6e1ec82d5f610ced1dd9550c68305</id>
<content type='text'>
Sponsored by:		Netflix

(cherry picked from commit 3e15b01d6914c927e37d1699645783acf286655c)
</content>
</entry>
<entry>
<title>loader: Move to using linker sets to bring in optional bits</title>
<updated>2024-04-16T19:54:24Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2024-02-16T03:53:47Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=94e1374b55c7c3ac484bbe0631591545a5536c8d'/>
<id>urn:sha1:94e1374b55c7c3ac484bbe0631591545a5536c8d</id>
<content type='text'>
The graphics stuff is optional. When it is pulled into the system, we
use a linker set to initialize the lua bindings for it now.

Sponsored by:		Netflix
Reviewed by:		kevans, jhb
Differential Revision:	https://reviews.freebsd.org/D43906

(cherry picked from commit 0921a771da8a9117edf26352a8a047bacbfcee45)
</content>
</entry>
<entry>
<title>loader: Create new gfx table</title>
<updated>2024-04-16T19:54:23Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2024-02-16T03:53:07Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=73fac51c572655a3d0e55af410f42dc15713ef31'/>
<id>urn:sha1:73fac51c572655a3d0e55af410f42dc15713ef31</id>
<content type='text'>
Create a new gfx global table. Put into it all the graphics bindings
that we have in loader today. For now, have compatability binding for
loader. Remove them from loader.

Sponsored by:		Netflix
Reviewed by:		kevans, jhb
Differential Revision:	https://reviews.freebsd.org/D43902

(cherry picked from commit 9b16231032ddb40be282d76ec0d82b3a0ec96d60)
</content>
</entry>
<entry>
<title>loader: Fetch initial script from loader_lua env</title>
<updated>2024-04-16T19:54:23Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2024-02-14T17:51:38Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=8ea26f3280f7df1aad1c34d5bad1472a02c18fdf'/>
<id>urn:sha1:8ea26f3280f7df1aad1c34d5bad1472a02c18fdf</id>
<content type='text'>
Sometimes it is nice to override the initial script that we run. Make it
possible by fetching loader_lua from the env and using that instead of
the default if prsent.

Sponsored by:		Netflix
Differential Revision:	https://reviews.freebsd.org/D43819

(cherry picked from commit cd147a2a024301a796f307c7bae686305d2bf302)
</content>
</entry>
<entry>
<title>Remove $FreeBSD$: one-line .c pattern</title>
<updated>2023-08-16T17:54:42Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-16T17:54:42Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=1d386b48a555f61cb7325543adbbb5c3f3407a66'/>
<id>urn:sha1:1d386b48a555f61cb7325543adbbb5c3f3407a66</id>
<content type='text'>
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
</content>
</entry>
<entry>
<title>loader: Use tslog to instrument some functions</title>
<updated>2021-06-21T03:09:48Z</updated>
<author>
<name>Colin Percival</name>
<email>cperciva@FreeBSD.org</email>
</author>
<published>2021-05-31T00:01:25Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=313724bab940c1844fda3d797cf88cd46780e62a'/>
<id>urn:sha1:313724bab940c1844fda3d797cf88cd46780e62a</id>
<content type='text'>
In my initial testing, these are the functions which showed up as
being worth instrumenting.  More may be added later.

common/console.c: cons_probe
common/gfx_fb.c: read_list, insert_font, autoload_font
common/interp.c: interact
common/interp_lua.c: interp_init, interp_run
efi/libefi/efipart.c: efipart_readwrite
i386/libi386/biosdisk.c: bd_init, bd_open, bd_edd_io, bd_chs_io, bd_io
libsa/open.c: open
libsa/read.c: read
libsa/twiddle.c: twiddle

Note that profiling interp_run may be of questionable utility as it
may depend on user behaviour (e.g. pressing keys).

Reviewed by:	kevans (earlier version)
</content>
</entry>
<entry>
<title>stand: liblua: add a pager module</title>
<updated>2020-12-12T21:25:38Z</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2020-12-12T21:25:38Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=0a0d522b368b31ec51611b798047a75b52855f39'/>
<id>urn:sha1:0a0d522b368b31ec51611b798047a75b52855f39</id>
<content type='text'>
This is nearly a 1:1 mapping of the pager API from libsa.  The only real
difference is that pager.output() will accept any number of arguments and
coerce all of them to strings for output using luaL_tolstring (i.e. the
__tostring metamethod will be used).

The only consumer planned at this time is the upcoming "show-module-options"
implementation.

MFC after:	1 week
</content>
</entry>
<entry>
<title>lualoader: drop the filename and word "LUA" from errors</title>
<updated>2020-06-03T18:29:32Z</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2020-06-03T18:29:32Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=48260b4b5320a68fd13f9f9dd52e85dc4b750ebb'/>
<id>urn:sha1:48260b4b5320a68fd13f9f9dd52e85dc4b750ebb</id>
<content type='text'>
The filename is nearly always wrong since it's /boot/lua/loader.lua, which
is not useful for diagnostics. The actual errmsg will include a lua filename
if this is relevant.

Dropping "LUA" while we're here because that's almost universally
irrelevant to whatever error follows, unless the error states that it's
actually a lua problem.

Both of these are minor nits that just detract from identifying the
pertinent information.

MFC after:	3 days
</content>
</entry>
<entry>
<title>interp_lua: fix bogus indentation, NFC</title>
<updated>2020-02-12T16:10:00Z</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2020-02-12T16:10:00Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=8e173ae7f494838227893430bda0c5c4ec8a312c'/>
<id>urn:sha1:8e173ae7f494838227893430bda0c5c4ec8a312c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>lualoader: disable autoboot on high-level interpreter errors</title>
<updated>2020-02-12T16:09:01Z</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2020-02-12T16:09:01Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=17f0dc77a4e511cd5b35e50bccf71e236c78c574'/>
<id>urn:sha1:17f0dc77a4e511cd5b35e50bccf71e236c78c574</id>
<content type='text'>
If we hit an error at this level, we are almost certainly not in any kind
of sane state where autoboot can do the right thing. Instead of letting it
try and probably failing, disable autoboot so they immediately get kicked
into a loader prompt for manual remediation/diagnosis.

Reviewed by:	tsoome
MFC after:	3 days
Differential Revision:	https://reviews.freebsd.org/D23611
</content>
</entry>
</feed>
