Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
qemu
提交
437fe106
Q
qemu
项目概览
openeuler
/
qemu
通知
10
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Q
qemu
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
437fe106
编写于
3月 07, 2013
作者:
G
Gerd Hoffmann
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
console: add trace events
Signed-off-by:
N
Gerd Hoffmann
<
kraxel@redhat.com
>
上级
e27bd65a
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
7 addition
and
0 deletion
+7
-0
trace-events
trace-events
+3
-0
ui/console.c
ui/console.c
+4
-0
未找到文件。
trace-events
浏览文件 @
437fe106
...
...
@@ -962,6 +962,9 @@ dma_bdrv_cb(void *dbs, int ret) "dbs=%p ret=%d"
dma_map_wait(void *dbs) "dbs=%p"
# console.h
console_gfx_new(void) ""
console_txt_new(int w, int h) "%dx%d"
console_select(int nr) "%d"
displaysurface_create(void *display_surface, int w, int h) "surface=%p, %dx%d"
displaysurface_create_from(void *display_surface, int w, int h, int bpp, int swap) "surface=%p, %dx%d, bpp %d, bswap %d"
displaysurface_free(void *display_surface) "surface=%p"
...
...
ui/console.c
浏览文件 @
437fe106
...
...
@@ -904,6 +904,8 @@ void console_select(unsigned int index)
if
(
index
>=
MAX_CONSOLES
)
return
;
trace_console_select
(
index
);
if
(
active_console
)
{
surface
=
qemu_console_surface
(
active_console
);
active_console
->
g_width
=
surface_width
(
surface
);
...
...
@@ -1367,6 +1369,7 @@ QemuConsole *graphic_console_init(vga_hw_update_ptr update,
DisplayState
*
ds
;
ds
=
(
DisplayState
*
)
g_malloc0
(
sizeof
(
DisplayState
));
trace_console_gfx_new
();
s
=
new_console
(
ds
,
GRAPHIC_CONSOLE
);
s
->
hw_update
=
update
;
s
->
hw_invalidate
=
invalidate
;
...
...
@@ -1485,6 +1488,7 @@ static CharDriverState *text_console_init(ChardevVC *vc)
height
=
vc
->
rows
*
FONT_HEIGHT
;
}
trace_console_txt_new
(
width
,
height
);
if
(
width
==
0
||
height
==
0
)
{
s
=
new_console
(
NULL
,
TEXT_CONSOLE
);
}
else
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录