# Raport za okres 23.03.2021 - 29.03.2021
###### tags: `mimiker`
## Podsumowanie
:::info
Liczba przyznanych punktów. **Wypełnia prowadzący zajęcia!**
Pewna część punktów odzwierciedla liczbę godzin spędzonych na: programowaniu lub pisaniu pracy dyplomowej. Pozostałe punkty są ze efekty i _code review_. Efekt musi być podparty umieszczeniem kodu w `master` lub wykonaniu prezentacji w trakcie zajęć.
:::
:::spoiler
- 8 punktów za 8h pracy własnej
- 2 punkty za widoczne efekty pracy (prezentacja, zmiany w `master`, code review)
:::
| | punkty |
| ---------------------:| ------ |
| Michał Błaszczyk | 8+2 |
| Krzysztof Boroński | 8+0 |
| Maksymilian Czudziak | 7+1 |
| Paweł Jasiak | 8+1 |
| Jakub Piecuch | 8+2 |
| Wiktor Pilarczyk | 8+2 |
| Jakub Urbańczyk | 8+1 |
| Franciszek Zdobylak | 8+2 |
## Sprawozdania
:::info
Wypełniać przed przystąpieniem do pierwszych zajęć w tygodniu roboczym!
Należy określić liczbę godzin pracy własnej zaokrąglając w górę do liczby całkowitej. W sprawozdaniu należy krótko podsumować czy zajmowaliście się w poprzednim tygodniu. W szczególności należy podać _pull-request_'y, które weszły do głównej gałęzi repozytorium `mimiker`. Proszę również napisać co zamierzacie robić w nadchodzącym tygodniu. Można zawrzeć pytania, na które postaramy się odpowiedzieć w trakcie zajęć.
:::
:::warning
Proszę napisać sprawozdanie w taki sposób, żeby Piotr Witkowski mógł szybko przygotować podsumowanie z postępów w pracy i umieścić je na `mimiker.ii.uni.wroc.pl`.
:::
### Michał Błaszczyk
:::success
Liczba godzin: 15
:::
W masterze: [konserwacja systemu budowania](https://github.com/cahirwpz/mimiker/pull/1049)
Wyrosło: [qemu x86-64](https://github.com/cahirwpz/mimiker/pull/1059), [interfejs kontrolera hosta USB](https://github.com/cahirwpz/mimiker/pull/1061)
Review: [e.MMC interface](https://github.com/cahirwpz/mimiker/pull/1057)
Głównie walczyłem z AMD64 (jeszcze nie ma PR):
- kompiluję jądro
- dodałem `asm.h` z NetBSD
- dostarczyłem kikuty odpowiednich plików
- napisałem skrypt (Makefile) do budowania obrazu dysku:
- buduję standalone binarkę GRUB-a,
- wrzucam mimiker.elf i initrd.cpio do /EFI/mimiker
Plany:
Dalsze prace aby odpalić jądro pod QEMU x86-64 (głównie zaznajamnianie z Multiboot2 i GRUB-em).
Obserwacje:
W przypadku x86-64, opcja `-kernel` w QEMU bootuje do 32 bitów (wykorzystywane jest [x86/HVM ABI (Xen)](https://xenbits.xen.org/docs/unstable/misc/pvh.html)). Przykład użycia: [here](https://mimiker.ii.uni.wroc.pl/source/xref/qemu/tests/tcg/x86_64/system/boot.S?r=cb90ecf9).
### Krzysztof Boroński
:::success
Liczba godzin: 9
:::
W ubiegłym tygodniu pojawił się
* **PR** [1057](https://github.com/cahirwpz/mimiker/pull/1057)
W bieżącym tygodniu pojawi się jego aktualizacja, która wynika z pracy,
którą włożyłem podczas weekendu nad sterownikiem e.MMC.
Poza omówionymi na spotkaniu poprawkami, kilka pojawi się niewielkich zmian. Pojawi się również _DUŻY_ commit do [857](https://github.com/cahirwpz/mimiker/pull/859) (tj. zmiany w obrębie niemal całego kodu), którego wmerguję w gałąż [1057](https://github.com/cahirwpz/mimiker/pull/1057).
### Maksymilian Czudziak
:::success
Liczba godzin: 7
:::
Udało się zrobić drugą działającą wersję skryptu przerzucania dokumentów do GH Wiki [1051](https://github.com/cahirwpz/mimiker/pull/1051).
Podejmowałem pierwsze próby code review.
Poprawiałem ten 1051 po review.
### Paweł Jasiak
:::success
Liczba godzin: 10
:::
Robiłem ping-ponga z KASAN [#1047](https://github.com/cahirwpz/mimiker/pull/1047) - jest już okejka od Kuby i Franka.
Usunąłem rwlocki (w masterze) [1058](https://github.com/cahirwpz/mimiker/pull/1058).
_Próbowałem_ pomóc z [#1051](https://github.com/cahirwpz/mimiker/pull/1051) ale chyba nie potrafię tłumaczyć.
Zwiększyłem stos dla 64 bitowych architektur [#1064](https://github.com/cahirwpz/mimiker/pull/1064).
Jakieś code review.
~~Co robi: `assert(bt->bt_size == align(size, vm->vm_quantum));` w kodzie vmem (`vmem_free`) bo przez to build KASAN popełnia samobójstwo.~~
Pliki .mk mają zepsute formatowanie.
Dlaczego `kmem_alloc` woła `kmem_alloc`??? (przez to nie przechodzą testy pod KASAN)
```
#0 halt () at /home/pjas/mimiker-kasan-3/sys/kern/klog.c:154
#1 0xffff000000233520 in klog_assert (origin=origin@entry=KL_KMEM, file=file@entry=0xffff00000025cd80 "/home/pjas/mimiker-kasan-3/sys/kern/kmem.c", line=line@entry=0x7f, expr=expr@entry=0xffff00000025d120 "!(flags & M_NOGROW)") at /home/pjas/mimiker-kasan-3/sys/kern/klog.c:174
#2 0xffff000000232af8 in kmem_alloc (size=size@entry=0x1000, flags=flags@entry=(M_ZERO | M_NOGROW)) at /home/pjas/mimiker-kasan-3/sys/kern/kmem.c:127
#3 0xffff00000022e63c in pool_alloc (pool=0xffff0000002a35a0 <BOOT_ARENA+1440>, flags=flags@entry=0x6) at /home/pjas/mimiker-kasan-3/sys/kern/pool.c:137
#4 0xffff00000020d7fc in vmem_alloc (vm=0xffff0000002a5960 <BOOT_ARENA+10592>, size=size@entry=0x1000, addrp=addrp@entry=0xffff000002f38920, flags=flags@entry=M_NOGROW) at /home/pjas/mimiker-kasan-3/sys/kern/vmem.c:267
#5 0xffff0000002325bc in kva_alloc (size=size@entry=0x1000) at /home/pjas/mimiker-kasan-3/sys/kern/kmem.c:41
#6 0xffff000000232a98 in kmem_alloc (size=size@entry=0x1000, flags=flags@entry=M_ZERO) at /home/pjas/mimiker-kasan-3/sys/kern/kmem.c:129
#7 0xffff00000022e63c in pool_alloc (pool=0xffff0000002a4360 <BOOT_ARENA+4960>, flags=flags@entry=0x2) at /home/pjas/mimiker-kasan-3/sys/kern/pool.c:137
#8 0xffff00000021e978 in thread_create (name=name@entry=0xffff00000025e880 "init", fn=fn@entry=0xffff000000246f04 <utest_generic_thread>, arg=arg@entry=0xffff000000264860, prio=0xff) at /home/pjas/mimiker-kasan-3/sys/kern/thread.c:81
#9 0xffff00000023550c in do_fork (start=start@entry=0xffff000000246f04 <utest_generic_thread>, arg=arg@entry=0xffff000000264860, cldpidp=cldpidp@entry=0xffff000002f38ad0) at /home/pjas/mimiker-kasan-3/sys/kern/fork.c:35
#10 0xffff000000246424 in utest_generic (name=name@entry=0xffff000000264860 "session_basic", status_success=status_success@entry=0x0) at /home/pjas/mimiker-kasan-3/sys/tests/utest.c:31
#11 0xffff000000246d5c in utest_test_session_basic () at /home/pjas/mimiker-kasan-3/sys/tests/utest.c:161
#12 0xffff000000231fcc in run_test (t=0xffff000000281c20 <user_session_basic_test>) at /home/pjas/mimiker-kasan-3/sys/kern/ktest.c:73
#13 0xffff00000023220c in run_all_tests () at /home/pjas/mimiker-kasan-3/sys/kern/ktest.c:129
#14 0xffff0000002323b0 in ktest_main (test=test@entry=0xffff00000029bc15 <_stack0+7189> "all") at /home/pjas/mimiker-kasan-3/sys/kern/ktest.c:166
#15 0xffff000000231b7c in start_init (arg=<optimized out>) at /home/pjas/mimiker-kasan-3/sys/kern/main.c:68
#16 0xffff00000021eba4 in thread_self () at /home/pjas/mimiker-kasan-3/sys/kern/thread.c:138
```
### Jakub Piecuch
:::success
Liczba godzin: ? (wpisałem 100%)
:::
Weszły:
- [#1024](https://github.com/cahirwpz/mimiker/pull/1024) - `tetris` - można sobie pograć
- [#1046](https://github.com/cahirwpz/mimiker/pull/1046) - naprawa zachowania funkcji `signal()`
- [#1053](https://github.com/cahirwpz/mimiker/pull/1053) - możliwość cofania operacji `uiomove()`
- [#1055](https://github.com/cahirwpz/mimiker/pull/1055) - ustawianie poprawnego rozmiaru okna terminala. Dzięki temu `tetris` pojawia się na środku ekranu.
- [#1056](https://github.com/cahirwpz/mimiker/pull/1056) - drobna asercja
Review:
- [#1047](https://github.com/cahirwpz/mimiker/pull/1047) (KASAN dla AArch64) wygląda dobrze
- Parę małych uwag do [#867](https://github.com/cahirwpz/mimiker/pull/867) (KCSAN)
### Wiktor Pilarczyk
:::success
Liczba godzin: 10
:::
W tym tygodniu pracowałem nad:
- [Function instrumentation for kgprof](https://github.com/cahirwpz/mimiker/pull/1062) - ten PR jest kontynuacją pracy nad kgprofem, który opisany jest częściowo poniżej - za pomocą instrumentalizacji będziemy w stanie zbudować graf wywołań
- [Build and run test for KGPROF flag - MIPS](https://github.com/cahirwpz/mimiker/pull/1063)
Weszło:
- [Statclock and gprof structures initialization](https://github.com/cahirwpz/mimiker/pull/979) - umożliwia uruchomienie komendy kgmon pod gdb, która zapisuje informacje w pliku gmon.out zebrane przez `kgprof_tick` w `stat_clock`'u (zegarze służącym do profilowania). To umożliwia na skorzystanie już na serwerze mimiker'a z komendy `gprof sys/mimiker.elf`, możemy heurestycznie oszacować ile czasu spędziliśmy w poszczególnych funkcjach przykładowy output znajduje się poniżej:
:::spoiler

Flat profile:
Each sample counts as 0.01 seconds.
% cumulative self self total
time seconds seconds calls Ts/call Ts/call name
53.71 13.38 13.38 cpu_intr_enable
10.40 15.97 2.59 bzero
4.46 17.08 1.11 bcopy
2.29 17.65 0.57 _spin_lock
2.05 18.16 0.51 _mtx_lock
2.05 18.67 0.51 test_kmem
1.81 19.12 0.45 memcpy
1.77 19.56 0.44 mtx_owned
1.73 19.99 0.43 mtx_unlock
1.69 20.41 0.42 intr_enable
1.49 20.78 0.37 spin_unlock
1.45 21.14 0.36 pool_alloc
1.36 21.48 0.34 thread_self
1.32 21.81 0.33 intr_disable
1.32 22.14 0.33 sched_run
0.68 22.31 0.17 vm_object_add_page
0.64 22.47 0.16 pmap_add_pde
0.52 22.60 0.13 cpu_intr_disable
0.48 22.72 0.12 klog_append
0.48 22.84 0.12 vm_page_find
0.40 22.94 0.10 pm_free_from_seg
0.36 23.03 0.09 pmap_extract_nolock
0.32 23.11 0.08 find_fit
0.32 23.19 0.08 pm_split_page
0.32 23.27 0.08 pmap_enter
0.32 23.35 0.08 pmap_modify_flags
0.32 23.43 0.08 test_thread
0.28 23.50 0.07 tlb_exception_handler
0.28 23.57 0.07 vm_object_find_page
0.24 23.63 0.06 pm_find_buddy
0.20 23.68 0.05 pmap_pte_write
0.16 23.72 0.04 pmap_lookup
0.16 23.76 0.04 pmap_pte_read
0.16 23.80 0.04 thread_yield
0.16 23.84 0.04 vm_page_alloc
0.16 23.88 0.04 vm_page_free_nolock
0.12 23.91 0.03 _pool_free
0.12 23.94 0.03 binuptime
0.12 23.97 0.03 free
0.12 24.00 0.03 kern_trap_handler
0.12 24.03 0.03 mips_timer_gettime
0.12 24.06 0.03 pmap_emulate_bits
0.12 24.09 0.03 sched_switch
0.12 24.12 0.03 vm_page_fault
0.08 24.14 0.02 fd_alloc
0.08 24.16 0.02 ksiginfo_copy
0.08 24.18 0.02 kva_find_page
0.08 24.20 0.02 memset
0.08 24.22 0.02 on_exc_leave
0.08 24.24 0.02 pm_take_page
0.08 24.26 0.02 pmap_extract
0.08 24.28 0.02 pmap_kenter
0.08 24.30 0.02 proc_sendsig
0.08 24.32 0.02 pv_add
0.08 24.34 0.02 vm_map_object_dump
0.08 24.36 0.02 vm_map_start
0.08 24.38 0.02 vm_object_free
0.08 24.40 0.02 vm_object_remove_pages_nolock
0.04 24.41 0.01 bin
0.04 24.42 0.01 componentname_equal
0.04 24.43 0.01 copyin
0.04 24.44 0.01 copyout_vmspace
0.04 24.45 0.01 copystr
0.04 24.46 0.01 devfs_find_child
0.04 24.47 0.01 fdt_subnode_offset_namelen
0.04 24.48 0.01 fdtab_get_file
0.04 24.49 0.01 initrd_vnode_getattr
0.04 24.50 0.01 initrd_vnode_lookup
0.04 24.51 0.01 kfree
0.04 24.52 0.01 kmem_map_contig
0.04 24.53 0.01 kva_map
0.04 24.54 0.01 kva_unmap
0.04 24.55 0.01 on_user_exc_leave
0.04 24.56 0.01 pm_merge_buddies
0.04 24.57 0.01 pmap_delete
0.04 24.58 0.01 pmap_kernel
0.04 24.59 0.01 pmap_set_modified
0.04 24.60 0.01 pool_free
0.04 24.61 0.01 preempt_disable
0.04 24.62 0.01 preempt_disabled
0.04 24.63 0.01 preempt_enable
0.04 24.64 0.01 produce
0.04 24.65 0.01 pv_find
0.04 24.66 0.01 ringbuf_putnb
0.04 24.67 0.01 strlcpy
0.04 24.68 0.01 strlen
0.04 24.69 0.01 strncmp
0.04 24.70 0.01 thread_create
0.04 24.71 0.01 tmpfs_vop_getattr
0.04 24.72 0.01 tmpfs_vop_reclaim
0.04 24.73 0.01 try_load_word
0.04 24.74 0.01 try_store_word
0.04 24.75 0.01 tty_output
0.04 24.76 0.01 tty_outq_write
0.04 24.77 0.01 turnstile_wait
0.04 24.78 0.01 uiomove
0.04 24.79 0.01 vfs_namelookup
0.04 24.80 0.01 vm_map_address_p
0.04 24.81 0.01 vm_map_end
0.04 24.82 0.01 vm_map_find_segment
0.04 24.83 0.01 vm_map_new
0.04 24.84 0.01 vm_map_unlock
0.04 24.85 0.01 vm_object_alloc
0.04 24.86 0.01 vm_object_remove_pages
0.04 24.87 0.01 vm_page_free
0.04 24.88 0.01 vnode_drop
0.04 24.89 0.01 vnode_unlock
0.04 24.90 0.01 vnr_lookup_once
0.04 24.91 0.01 vnr_parse_component
% the percentage of the total running time of the
time program used by this function.
cumulative a running sum of the number of seconds accounted
seconds for by this function and those listed above it.
self the number of seconds accounted for by this
seconds function alone. This is the major sort for this
listing.
calls the number of times this function was invoked, if
this function is profiled, else blank.
self the average number of milliseconds spent in this
ms/call function per call, if this function is profiled,
else blank.
total the average number of milliseconds spent in this
ms/call function and its descendents per call, if this
function is profiled, else blank.
name the name of the function. This is the minor sort
for this listing. The index shows the location of
the function in the gprof listing. If the index is
in parenthesis it shows where it would appear in
the gprof listing if it were to be printed.
Copyright (C) 2012-2018 Free Software Foundation, Inc.
Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
notice and this notice are preserved.
Call graph (explanation follows)
granularity: each sample hit covers 4 byte(s) for 0.04% of 24.91 seconds
index % time self children called name
<spontaneous>
[1] 53.7 13.38 0.00 cpu_intr_enable [1]
-----------------------------------------------
<spontaneous>
[2] 10.4 2.59 0.00 bzero [2]
-----------------------------------------------
<spontaneous>
[3] 4.5 1.11 0.00 bcopy [3]
-----------------------------------------------
<spontaneous>
[4] 2.3 0.57 0.00 _spin_lock [4]
-----------------------------------------------
<spontaneous>
[5] 2.0 0.51 0.00 test_kmem [5]
-----------------------------------------------
<spontaneous>
[6] 2.0 0.51 0.00 _mtx_lock [6]
-----------------------------------------------
<spontaneous>
[7] 1.8 0.45 0.00 memcpy [7]
-----------------------------------------------
<spontaneous>
[8] 1.8 0.44 0.00 mtx_owned [8]
-----------------------------------------------
<spontaneous>
[9] 1.7 0.43 0.00 mtx_unlock [9]
-----------------------------------------------
<spontaneous>
[10] 1.7 0.42 0.00 intr_enable [10]
-----------------------------------------------
<spontaneous>
[11] 1.5 0.37 0.00 spin_unlock [11]
-----------------------------------------------
<spontaneous>
[12] 1.4 0.36 0.00 pool_alloc [12]
-----------------------------------------------
<spontaneous>
[13] 1.4 0.34 0.00 thread_self [13]
-----------------------------------------------
<spontaneous>
[14] 1.3 0.33 0.00 intr_disable [14]
-----------------------------------------------
<spontaneous>
[15] 1.3 0.33 0.00 sched_run [15]
-----------------------------------------------
<spontaneous>
[16] 0.7 0.17 0.00 vm_object_add_page [16]
-----------------------------------------------
<spontaneous>
[17] 0.6 0.16 0.00 pmap_add_pde [17]
-----------------------------------------------
<spontaneous>
[18] 0.5 0.13 0.00 cpu_intr_disable [18]
-----------------------------------------------
<spontaneous>
[19] 0.5 0.12 0.00 klog_append [19]
-----------------------------------------------
<spontaneous>
[20] 0.5 0.12 0.00 vm_page_find [20]
-----------------------------------------------
<spontaneous>
[21] 0.4 0.10 0.00 pm_free_from_seg [21]
-----------------------------------------------
<spontaneous>
[22] 0.4 0.09 0.00 pmap_extract_nolock [22]
-----------------------------------------------
<spontaneous>
[23] 0.3 0.08 0.00 find_fit [23]
-----------------------------------------------
<spontaneous>
[24] 0.3 0.08 0.00 pm_split_page [24]
-----------------------------------------------
<spontaneous>
[25] 0.3 0.08 0.00 pmap_enter [25]
-----------------------------------------------
<spontaneous>
[26] 0.3 0.08 0.00 pmap_modify_flags [26]
-----------------------------------------------
<spontaneous>
[27] 0.3 0.08 0.00 test_thread [27]
-----------------------------------------------
<spontaneous>
[28] 0.3 0.07 0.00 tlb_exception_handler [28]
-----------------------------------------------
<spontaneous>
[29] 0.3 0.07 0.00 vm_object_find_page [29]
-----------------------------------------------
<spontaneous>
[30] 0.2 0.06 0.00 pm_find_buddy [30]
-----------------------------------------------
<spontaneous>
[31] 0.2 0.05 0.00 pmap_pte_write [31]
-----------------------------------------------
<spontaneous>
[32] 0.2 0.04 0.00 pmap_lookup [32]
-----------------------------------------------
<spontaneous>
[33] 0.2 0.04 0.00 pmap_pte_read [33]
-----------------------------------------------
<spontaneous>
[34] 0.2 0.04 0.00 thread_yield [34]
-----------------------------------------------
<spontaneous>
[35] 0.2 0.04 0.00 vm_page_alloc [35]
-----------------------------------------------
<spontaneous>
[36] 0.2 0.04 0.00 vm_page_free_nolock [36]
-----------------------------------------------
<spontaneous>
[37] 0.1 0.03 0.00 binuptime [37]
-----------------------------------------------
<spontaneous>
[38] 0.1 0.03 0.00 free [38]
-----------------------------------------------
<spontaneous>
[39] 0.1 0.03 0.00 kern_trap_handler [39]
-----------------------------------------------
<spontaneous>
[40] 0.1 0.03 0.00 mips_timer_gettime [40]
-----------------------------------------------
<spontaneous>
[41] 0.1 0.03 0.00 pmap_emulate_bits [41]
-----------------------------------------------
<spontaneous>
[42] 0.1 0.03 0.00 sched_switch [42]
-----------------------------------------------
<spontaneous>
[43] 0.1 0.03 0.00 vm_page_fault [43]
-----------------------------------------------
<spontaneous>
[44] 0.1 0.03 0.00 _pool_free [44]
-----------------------------------------------
<spontaneous>
[45] 0.1 0.02 0.00 fd_alloc [45]
-----------------------------------------------
<spontaneous>
[46] 0.1 0.02 0.00 ksiginfo_copy [46]
-----------------------------------------------
<spontaneous>
[47] 0.1 0.02 0.00 kva_find_page [47]
-----------------------------------------------
<spontaneous>
[48] 0.1 0.02 0.00 memset [48]
-----------------------------------------------
<spontaneous>
[49] 0.1 0.02 0.00 on_exc_leave [49]
-----------------------------------------------
<spontaneous>
[50] 0.1 0.02 0.00 pm_take_page [50]
-----------------------------------------------
<spontaneous>
[51] 0.1 0.02 0.00 pmap_extract [51]
-----------------------------------------------
<spontaneous>
[52] 0.1 0.02 0.00 pmap_kenter [52]
-----------------------------------------------
<spontaneous>
[53] 0.1 0.02 0.00 proc_sendsig [53]
-----------------------------------------------
<spontaneous>
[54] 0.1 0.02 0.00 pv_add [54]
-----------------------------------------------
<spontaneous>
[55] 0.1 0.02 0.00 vm_map_object_dump [55]
-----------------------------------------------
<spontaneous>
[56] 0.1 0.02 0.00 vm_map_start [56]
-----------------------------------------------
<spontaneous>
[57] 0.1 0.02 0.00 vm_object_free [57]
-----------------------------------------------
<spontaneous>
[58] 0.1 0.02 0.00 vm_object_remove_pages_nolock [58]
-----------------------------------------------
<spontaneous>
[59] 0.0 0.01 0.00 bin [59]
-----------------------------------------------
<spontaneous>
[60] 0.0 0.01 0.00 componentname_equal [60]
-----------------------------------------------
<spontaneous>
[61] 0.0 0.01 0.00 copyin [61]
-----------------------------------------------
<spontaneous>
[62] 0.0 0.01 0.00 copyout_vmspace [62]
-----------------------------------------------
<spontaneous>
[63] 0.0 0.01 0.00 copystr [63]
-----------------------------------------------
<spontaneous>
[64] 0.0 0.01 0.00 devfs_find_child [64]
-----------------------------------------------
<spontaneous>
[65] 0.0 0.01 0.00 fdt_subnode_offset_namelen [65]
-----------------------------------------------
<spontaneous>
[66] 0.0 0.01 0.00 fdtab_get_file [66]
-----------------------------------------------
<spontaneous>
[67] 0.0 0.01 0.00 initrd_vnode_getattr [67]
-----------------------------------------------
<spontaneous>
[68] 0.0 0.01 0.00 initrd_vnode_lookup [68]
-----------------------------------------------
<spontaneous>
[69] 0.0 0.01 0.00 kfree [69]
-----------------------------------------------
<spontaneous>
[70] 0.0 0.01 0.00 kmem_map_contig [70]
-----------------------------------------------
<spontaneous>
[71] 0.0 0.01 0.00 kva_map [71]
-----------------------------------------------
<spontaneous>
[72] 0.0 0.01 0.00 kva_unmap [72]
-----------------------------------------------
<spontaneous>
[73] 0.0 0.01 0.00 on_user_exc_leave [73]
-----------------------------------------------
<spontaneous>
[74] 0.0 0.01 0.00 pm_merge_buddies [74]
-----------------------------------------------
<spontaneous>
[75] 0.0 0.01 0.00 pmap_delete [75]
-----------------------------------------------
<spontaneous>
[76] 0.0 0.01 0.00 pmap_kernel [76]
-----------------------------------------------
<spontaneous>
[77] 0.0 0.01 0.00 pmap_set_modified [77]
-----------------------------------------------
<spontaneous>
[78] 0.0 0.01 0.00 pool_free [78]
-----------------------------------------------
<spontaneous>
[79] 0.0 0.01 0.00 preempt_disable [79]
-----------------------------------------------
<spontaneous>
[80] 0.0 0.01 0.00 preempt_disabled [80]
-----------------------------------------------
<spontaneous>
[81] 0.0 0.01 0.00 preempt_enable [81]
-----------------------------------------------
<spontaneous>
[82] 0.0 0.01 0.00 produce [82]
-----------------------------------------------
<spontaneous>
[83] 0.0 0.01 0.00 pv_find [83]
-----------------------------------------------
<spontaneous>
[84] 0.0 0.01 0.00 ringbuf_putnb [84]
-----------------------------------------------
<spontaneous>
[85] 0.0 0.01 0.00 strlcpy [85]
-----------------------------------------------
<spontaneous>
[86] 0.0 0.01 0.00 strlen [86]
-----------------------------------------------
<spontaneous>
[87] 0.0 0.01 0.00 strncmp [87]
-----------------------------------------------
<spontaneous>
[88] 0.0 0.01 0.00 thread_create [88]
-----------------------------------------------
<spontaneous>
[89] 0.0 0.01 0.00 tmpfs_vop_getattr [89]
-----------------------------------------------
<spontaneous>
[90] 0.0 0.01 0.00 tmpfs_vop_reclaim [90]
-----------------------------------------------
<spontaneous>
[91] 0.0 0.01 0.00 try_load_word [91]
-----------------------------------------------
<spontaneous>
[92] 0.0 0.01 0.00 try_store_word [92]
-----------------------------------------------
<spontaneous>
[93] 0.0 0.01 0.00 tty_output [93]
-----------------------------------------------
<spontaneous>
[94] 0.0 0.01 0.00 tty_outq_write [94]
-----------------------------------------------
<spontaneous>
[95] 0.0 0.01 0.00 turnstile_wait [95]
-----------------------------------------------
<spontaneous>
[96] 0.0 0.01 0.00 uiomove [96]
-----------------------------------------------
<spontaneous>
[97] 0.0 0.01 0.00 vfs_namelookup [97]
-----------------------------------------------
<spontaneous>
[98] 0.0 0.01 0.00 vm_map_address_p [98]
-----------------------------------------------
<spontaneous>
[99] 0.0 0.01 0.00 vm_map_end [99]
-----------------------------------------------
<spontaneous>
[100] 0.0 0.01 0.00 vm_map_find_segment [100]
-----------------------------------------------
<spontaneous>
[101] 0.0 0.01 0.00 vm_map_new [101]
-----------------------------------------------
<spontaneous>
[102] 0.0 0.01 0.00 vm_map_unlock [102]
-----------------------------------------------
<spontaneous>
[103] 0.0 0.01 0.00 vm_object_alloc [103]
-----------------------------------------------
<spontaneous>
[104] 0.0 0.01 0.00 vm_object_remove_pages [104]
-----------------------------------------------
<spontaneous>
[105] 0.0 0.01 0.00 vm_page_free [105]
-----------------------------------------------
<spontaneous>
[106] 0.0 0.01 0.00 vnode_drop [106]
-----------------------------------------------
<spontaneous>
[107] 0.0 0.01 0.00 vnode_unlock [107]
-----------------------------------------------
<spontaneous>
[108] 0.0 0.01 0.00 vnr_lookup_once [108]
-----------------------------------------------
<spontaneous>
[109] 0.0 0.01 0.00 vnr_parse_component [109]
-----------------------------------------------
This table describes the call tree of the program, and was sorted by
the total amount of time spent in each function and its children.
Each entry in this table consists of several lines. The line with the
index number at the left hand margin lists the current function.
The lines above it list the functions that called this function,
and the lines below it list the functions this one called.
This line lists:
index A unique number given to each element of the table.
Index numbers are sorted numerically.
The index number is printed next to every function name so
it is easier to look up where the function is in the table.
% time This is the percentage of the `total' time that was spent
in this function and its children. Note that due to
different viewpoints, functions excluded by options, etc,
these numbers will NOT add up to 100%.
self This is the total amount of time spent in this function.
children This is the total amount of time propagated into this
function by its children.
called This is the number of times the function was called.
If the function called itself recursively, the number
only includes non-recursive calls, and is followed by
a `+' and the number of recursive calls.
name The name of the current function. The index number is
printed after it. If the function is a member of a
cycle, the cycle number is printed between the
function's name and the index number.
For the function's parents, the fields have the following meanings:
self This is the amount of time that was propagated directly
from the function into this parent.
children This is the amount of time that was propagated from
the function's children into this parent.
called This is the number of times this parent called the
function `/' the total number of times the function
was called. Recursive calls to the function are not
included in the number after the `/'.
name This is the name of the parent. The parent's index
number is printed after it. If the parent is a
member of a cycle, the cycle number is printed between
the name and the index number.
If the parents of the function cannot be determined, the word
`<spontaneous>' is printed in the `name' field, and all the other
fields are blank.
For the function's children, the fields have the following meanings:
self This is the amount of time that was propagated directly
from the child into the function.
children This is the amount of time that was propagated from the
child's children to the function.
called This is the number of times the function called
this child `/' the total number of times the child
was called. Recursive calls by the child are not
listed in the number after the `/'.
name This is the name of the child. The child's index
number is printed after it. If the child is a
member of a cycle, the cycle number is printed
between the name and the index number.
If there are any cycles (circles) in the call graph, there is an
entry for the cycle-as-a-whole. This entry shows who called the
cycle (as parents) and the members of the cycle (as children.)
The `+' recursive calls entry shows the number of function calls that
were internal to the cycle, and the calls entry for each member shows,
for that member, how many times it was called from other members of
the cycle.
Copyright (C) 2012-2018 Free Software Foundation, Inc.
Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
notice and this notice are preserved.
Index by function name
[6] _mtx_lock [73] on_user_exc_leave [88] thread_create
[44] _pool_free [30] pm_find_buddy [13] thread_self
[4] _spin_lock [21] pm_free_from_seg [34] thread_yield
[3] bcopy [74] pm_merge_buddies [28] tlb_exception_handler (trap.c)
[59] bin [24] pm_split_page [89] tmpfs_vop_getattr
[37] binuptime [50] pm_take_page [90] tmpfs_vop_reclaim
[2] bzero [17] pmap_add_pde [91] try_load_word
[60] componentname_equal [75] pmap_delete [92] try_store_word
[61] copyin [41] pmap_emulate_bits [93] tty_output
[62] copyout_vmspace [25] pmap_enter [94] tty_outq_write
[63] copystr [51] pmap_extract [95] turnstile_wait
[18] cpu_intr_disable [22] pmap_extract_nolock [96] uiomove
[1] cpu_intr_enable [52] pmap_kenter [97] vfs_namelookup
[64] devfs_find_child [76] pmap_kernel [98] vm_map_address_p
[45] fd_alloc [32] pmap_lookup [99] vm_map_end
[65] fdt_subnode_offset_namelen [26] pmap_modify_flags [100] vm_map_find_segment
[66] fdtab_get_file [33] pmap_pte_read [101] vm_map_new
[23] find_fit [31] pmap_pte_write [55] vm_map_object_dump
[38] free [77] pmap_set_modified [56] vm_map_start
[67] initrd_vnode_getattr [12] pool_alloc [102] vm_map_unlock
[68] initrd_vnode_lookup [78] pool_free [16] vm_object_add_page
[14] intr_disable [79] preempt_disable [103] vm_object_alloc
[10] intr_enable [80] preempt_disabled [29] vm_object_find_page
[39] kern_trap_handler (trap.c) [81] preempt_enable [57] vm_object_free
[69] kfree [53] proc_sendsig [104] vm_object_remove_pages
[19] klog_append [82] produce [58] vm_object_remove_pages_nolock
[70] kmem_map_contig [54] pv_add [35] vm_page_alloc
[46] ksiginfo_copy [83] pv_find [43] vm_page_fault
[47] kva_find_page [84] ringbuf_putnb [20] vm_page_find
[71] kva_map [15] sched_run [105] vm_page_free
[72] kva_unmap [42] sched_switch [36] vm_page_free_nolock
[7] memcpy [11] spin_unlock [106] vnode_drop
[48] memset [85] strlcpy [107] vnode_unlock
[40] mips_timer_gettime (timer.c) [86] strlen [108] vnr_lookup_once
[8] mtx_owned [87] strncmp [109] vnr_parse_component
[9] mtx_unlock [5] test_kmem
[49] on_exc_leave [27] test_thread
:::
CR: [#1053](https://github.com/cahirwpz/mimiker/pull/1053), [#1056](https://github.com/cahirwpz/mimiker/pull/1056), [#1060](https://github.com/cahirwpz/mimiker/pull/1060)
### Jakub Urbańczyk
:::success
Liczba godzin: 8
:::
- Poprawki do KCSAN po CR
- Dalszy research związany z obsługą czcionek i keymap
### Franciszek Zdobylak
:::success
Liczba godzin: 10
:::
W końcu weszło [1043] -- Tworzenie commandline'a dla ps'a.
(Wysłałem proste demo do Pana PWita).
Review [1047] (KASAN dla arma), [1046] (restartowanie syscalli), [1053] (uio restore)
Większość czasu poświęciłem na przygotowanie prezentacji o UVM.
Dokończyłem rozdział pracy licencjackiej.
[1043]:https://github.com/cahirwpz/mimiker/pull/1043
[1046]:https://github.com/cahirwpz/mimiker/pull/1046
[1047]:https://github.com/cahirwpz/mimiker/pull/1047
[1053]:https://github.com/cahirwpz/mimiker/pull/1053