git: 206198289eb3 - main - loader: Instrument gfx_fb_fill with tslog

From: Colin Percival <cperciva_at_FreeBSD.org>
Date: Sun, 11 May 2025 22:19:49 UTC
The branch main has been updated by cperciva:

URL: https://cgit.FreeBSD.org/src/commit/?id=206198289eb3fa7beb9661a0233f1c8972f60d20

commit 206198289eb3fa7beb9661a0233f1c8972f60d20
Author:     Colin Percival <cperciva@FreeBSD.org>
AuthorDate: 2025-05-11 22:13:02 +0000
Commit:     Colin Percival <cperciva@FreeBSD.org>
CommitDate: 2025-05-11 22:19:34 +0000

    loader: Instrument gfx_fb_fill with tslog
    
    Some systems boot absurdly slowly, apparently due to problems with
    UEFI framebuffer accesses being sluggish.  This does not fix the
    problem, but at least makes gfx_fb_fill show up as a large block
    in boot flamecharts, which will save time when the next user needs
    to identify why their system is booting slowly.
    
    PR:     284595
    Tested by:      Peter Miller
---
 stand/common/gfx_fb.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/stand/common/gfx_fb.c b/stand/common/gfx_fb.c
index 395332af9990..efb210dff210 100644
--- a/stand/common/gfx_fb.c
+++ b/stand/common/gfx_fb.c
@@ -1001,6 +1001,8 @@ gfx_fb_fill(void *arg, const teken_rect_t *r, teken_char_t c,
 	teken_pos_t p;
 	struct text_pixel *row;
 
+	TSENTER();
+
 	/* remove the cursor */
 	if (state->tg_cursor_visible)
 		gfx_fb_cursor_draw(state, &state->tg_cursor, false);
@@ -1026,6 +1028,8 @@ gfx_fb_fill(void *arg, const teken_rect_t *r, teken_char_t c,
 		c = teken_get_cursor(&state->tg_teken);
 		gfx_fb_cursor_draw(state, c, true);
 	}
+
+	TSEXIT();
 }
 
 static void