-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest_output
63 lines (45 loc) · 1.59 KB
/
test_output
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
running prog1
------------
blk:/home/abdelhalim/modules/sstore# insmod sstore.ko
blk:/home/abdelhalim/modules/sstore# lsmod
Module Size Used by
sstore 11608 0
blk:/home/abdelhalim/modules/sstore# ./prog1
write to sstore0 index:3 size:25 ..
write to sstore0 index:4 size:25 ..
read from sstore0 index:3 size:25 ..
Data: 11111222223333344444data
Delete blob...
delete from sstore0 index:3..
read from sstore0 index:3 size:25 .. /* blocked here waiting for data*/
Data: 11111222223333344444data /* wakeup by writer */
- output from /proc/sstore/data
------------------------------
blk:/home/abdelhalim/modules/sstore# cat /proc/sstore/data
Device 0:
blob 0 has no data
blob 1 has no data
blob 2 has no data
blob 3 has no data
blob 4 size 25 data:
31 31 31 31 31 32 32 32 32 32 33 33 33 33 33 34
34 34 34 34 64 61 74 61 0
Device 1:no data device 1
running prog2
------------
blk:/home/abdelhalim/modules/sstore# ./prog2
write to sstore0 index:3 size:25 .. /* wakeup sleepers */
write to sstore0 index:-1 size:25 .. /* index is not valid */
write: Invalid argument
write to sstore0 index:10 size:25 .. /* index is > max_num_blobs */
write: Invalid argument
write to sstore0 index:3 size:0 .. /* size 0 is ok */
write to sstore0 index:3 size:1000 .. /* size > max_blob_size */
write: Invalid argument
blk:/home/abdelhalim/modules/sstore#
- output from /proc/sstore/stats
------------------------------
abdelhalim@blk:~/modules/sstore$ cat /proc/sstore/stats
Device 0: reads: 2 writes: 4
Device 1: reads: 0 writes: 0
abdelhalim@blk:~/modules/sstore$