sqlite3.c
lines 42286 to 42295 of 262899
42286
nBuf
&
=
0x1ffff
;
42287
TIMER_START
;
42288
42289
#if
defined
(
USE_PREAD
)
42290
do
{
rc
=
(
int
)
osPwrite
(
fd
,
pBuf
,
nBuf
,
iOff
)
;
}
while
(
rc
<
0
&
&
…
42291
#elif
defined
(
USE_PREAD64
)
42292
do
{
rc
=
(
int
)
osPwrite64
(
fd
,
pBuf
,
nBuf
,
iOff
)
;
}
while
(
rc
<
0
&
…
42293
#else
42294
do
{
42295
i64
iSeek
=
lseek
(
fd
,
iOff
,
SEEK_SET
)
;
disassembly
unixWrite
4220
42
42290
mov
rsi, r15
4220
45
mov
rdx, r12
4220
48
mov
rcx, r14
4220
4b
call
qword ptr [rip + 0xf1567]
4220
51
mov
r13, rax
4220
54
test
r13d, r13d
4220
57
jns
422070
4220
59
call
4021c0
4220
5e
mov
ecx, dword ptr [rax]
registers
stack
heap
code
data
rwx
read-only
rax
0x1000
4096
rbx
3
rcx
7ffff7cf1a7d
__pwrite64+173
rdx
0x1000
4096
rsi
538b28
0xe60f030000000d
rdi
3
rbp
7fffffffe7e0
7fffffffe820
7fffffffe860
7fffffffe8d0
rsp
7fffffffe7a0
0
r8
0
r9
0
r10
0x1000
4096
r11
0x246
582
r12
0x1000
4096
r13
538b28
0xe60f030000000d
r14
0x1000
4096
r15
538b28
0xe60f030000000d
rip
422051
unixWrite+65
CF
PF
af
zf
sf
IF
df
of
stack
rsp+20 to rsp+48 · the frames they belong to
7fffffffe7
c0
0
7fffffffe7
c8
538b28
0xe60f030000000d
7fffffffe7
d0
517e38
513010
0x7800000003
7fffffffe7
d8
2
rbp
7fffffffe7
e0
7fffffffe820
7fffffffe860
7fffffffe7
e8
42fa75
pager_write_pagelist+245
unixWrite
kernel
the other side of a system call
calls so far
pwrite64
4096
pwrite64
4096
fsync
0
pwrite64
12
close
0
fsync
0
openat
5
fsync
0
pwrite64
system call 18
rdi
fd
3
"t.db"
rsi
buf
538b28
rdx
count
4096
r10
offset
4096
rax
returns
4096
the bytes it was given
0d
00
00
00
03
0f
e6
00
0f
f7
0f
ef
0f
e6
00
00
00
00
00
00
its bytes
pBuf: page 2 of t.db, at rsi
53
8b28
0d
13
00
00
00
03
3
0f
e6
00
0f
f7
4087
0f
ef
4079
0f
e6
4070
00
00
253 rows
53
9b08
00
00
00
00
00
00
07
03
3
02
17
67
61
6d
6d
61
"gamma"
06
53
9b18
02
2
02
15
62
65
74
61
"beta"
07
01
1
02
17
61
6c
70
68
61
"alpha"
moment 58 of 58
Page 2 as the kernel took it: 0d, a table's leaf; 3 cells;
their offsets, 0ff7 0fef 0fe6, each a row at the page's end.