[Cryptech Core] profiling

Paul Selkirk paul at psgd.org
Tue Dec 4 04:09:05 UTC 2018


0. Intro - what profiling is

Profiling has two pieces:

* Compiling with `-pg` automatically inserts entry logging into
every function. This is used to a) count the number of times a function
is called, and b) create a call tree - which function calls which other
function(s). These counts, being deterministic, are pretty accurate.

* Program counter (instruction pointer) sampling. We have a SysTick
interrupt that fires every millisecond. At that time, in addition to
regular house-keeping, the profiler records which function it
interrupted, and which function it was called from. The gross assumption
is that the processor spends the whole millisecond in that function.
This is clearly wrong on the micro-level, but, over the course of 1000
RSA signatures, it's statistically useful.

1. How to build

To build a firmware image with profiling, go to `sw/stm32`, and run
`make distclean DO_PROFILING=1 hsm`. The `distclean` step clears out any
previous object files, and ensures that the entire code base will be
built with profiling enabled.

2. How to run

To generate a profiling report on, say RSA signing, you have to go
through a number of steps, which are detailed in
`sw/stm32/libraries/libprof/README.md`. Fortunately, Rob has automated
all this into a script, so the complete invocation would look something
like this:

`./libraries/libprof/profile-runner.py --gprof keywrap.gprof --hsm-elf
./projects/hsm/hsm.elf --openocd-config
/usr/share/openocd/scripts/board/stm32f4discovery.cfg python
../libhal/tests/parallel-signatures.py -c 1`

This starts the profiler, generates 1000 RSA signatures, stops the
profiler, and writes the profiling report to `keywrap.gprof`.

Because of the statistical nature of the PC sampling, it's useful to do
several runs in a row, and compare the results for consistency. So the
invocation would look like:

`for i in {0..3}; do <profile-runner as above, with --gprof
foo.$i.gprof>; done`

Note: The first time a key is used, there are some pre-calc and blinding
factor computations, which take *much* longer than subsequent uses (e.g.
1.09s vs 0.16s). For that reason, I always start out with a priming run
before profiling, e.g. `../libhal/tests/parallel-signatures.py -c 1 -i 1`

3. How to read a profiling report

The first section ("Flat profile") is from the PC sampler; it shows how
much time was spent in each function.

First we have something like this:
 40.38     96.32    96.32                             _mcount_internal
 19.02    141.69    45.37                             __gnu_mcount_nc

These is the function-entry counting part of the profiler itself. The
firmware contains a lot of short functions, especially in the bignum
library, but we have to count them all. This is an example of how the
act of profiling distorts the operation of the system, and there's just
no getting around that.

Then we have something like this:
  6.92    158.21    16.51 15832758     0.00     0.00  hal_io_read
  5.20    170.62    12.41  1869115     0.00     0.00  memset
  3.15    178.15     7.53   289469     0.00     0.00  s_fp_sub

This is where the program actually spends its time in RSA signing.

The second section ("Call graph") is based on the entry logging,
augmented with estimated call times from the PC sampler.

To understand what the program is actually doing, we read down until we
get to something like this:

                0.00   93.26    1000/1000        hal_rpc_pkey_sign [5]
[6]     39.1    0.00   93.26    1000         pkey_local_sign [6]
                0.00   48.39    1000/1000        hal_ks_fetch [7]
                0.00   44.86    1000/1000        pkey_local_sign_rsa[11]

The lines above the named function are its callers. The lines below are
functions that it calls. Here we see that pkey_local_sign divides its
time about evenly between hal_ks_fetch (fetch and unwrap the key) and
pkey_local_sign_rsa (sign the message).

Drilling down, we find that hal_ks_fetch spends most of its time in
hal_aes_keyunwrap, and pkey_local_sign_rsa spends most of its time in
hal_rsa_decrypt. And so on down the line.

OTOH, to look at things from the bottom up, e.g. to understand why we
spend so much time in hal_io_read, we find this:

                0.00    0.00       4/15832758     hal_get_random [128]
                0.00    0.00    2256/15832758     hal_modexp2 [63]
                0.01    0.00    9018/15832758     hal_mkmif_read [70]
                0.07    0.02   64000/15832758     get_buffer [79]
                3.55    0.83 3399672/15832758     do_block [9]
               12.89    3.02 12357808/15832758    hal_io_wait2 [15]
[18]     8.5   16.51    3.86 15832758         hal_io_read [18]
                3.86    0.00 38464860/47514100    HAL_GPIO_ReadPin [37]

The collective time spent in hal_io_read is the "self" time (16.51s)
plus the "children" time (3.86s). The amount of time due to hal_io_wait2
is 12M calls out of 15M total, or 78%.

It's important to note that these are just estimates, assuming that each
call to hal_io_read (or each call to hal_io_wait2) takes the same amount
of time. This will come back to bite us later.

4. Findings

We will be looking at RSA signing in 3 configurations:
- master (firmware built on the stm32 and libhal 'master' branch,
bitstream from the September 7 cryptech-alpha-firmware Debian
distribution tarball)
- fmc_clk_60mhz (stm32 'fmc_clk_60mhz' branch, libhal 'master',
bitstream from the Sept 7 cryptech-alpha-firmware_fmc-clk-60mhz Debian
tarball)
- keywrap (stm32 'master', libhal 'auto_magic', bitstream built with
/user/js/keywrap 'auto_magic' branch)

First, to establish a baseline, here's the relative performance with
unprofiled firmware. The numbers here are seconds per signature, as the
median of a run of 5000 signatures.

master          0.172852
fmc_clk_60mhz   0.152779
keywrap         0.1555425

We can see that both fmc_clk_60mhz and keywrap are faster, but they get
there in different ways (which can be combined, though I haven't tried
it yet).

Next I did 4 profiling runs of 1000 signatures each, although I'm only
giving you one of each.

4.1 master.gprof

As noted above, nearly 60% of the runtime is attributed to the profiling
code itself. However, subtracting that 141.69s from the 238.55s runtime,
we get a net runtime of 98.86s, or 0.0986s/signature. This is almost
twice as fast as the unprofiled speed. So right away we see that a 1khz
PC sampler can't give us an entirely accurate picture of what's going
on. This is more like Plato's cave, and less like a crystal ball. That
said, we can extract some meaningful information if we know what we're
looking for.

First, recall that signing is roughly evenly divided between fetching
the key and generating the signature.

[6]     39.1    0.00   93.26    1000         pkey_local_sign [6]
                0.00   48.39    1000/1000        hal_ks_fetch [7]
                0.00   44.86    1000/1000        pkey_local_sign_rsa[11]

We'll start by looking at hal_ks_fetch:

[7]     20.3    0.00   48.39    1000         hal_ks_fetch [7]
                1.09   46.95    1000/1000        hal_aes_keyunwrap [8]
                0.00    0.28    1000/1002        hal_mkm_get_kek [71]

[8]     20.1    1.09   46.95    1000         hal_aes_keyunwrap [8]
                1.94   44.93 1697220/1699836     do_block [9]
                0.00    0.07    1000/2007        memmove [76]

[9]     19.7    1.94   45.00 1699836         do_block [9]
                0.49   35.71 1699836/1708858     hal_io_wait [14]
                3.61    0.82 5099508/5642554     hal_io_write [36]
                3.55    0.83 3399672/15832758    hal_io_read [18]

So hal_ks_fetch is dominated by hal_aes_keyunwrap, which is almost
entirely communication with the AES core. It's also by far the biggest
contributor to time spent in hal_io_wait (and hal_io_wait is the biggest
contributor to hal_io_read).

hal_mkm_get_kek scores low in time, because it comes down to a relative
handful of calls to hal_io_write, hal_io_wait, and hal_io_read. Remember
that gprof apportions each function's share of hal_io_wait time based on
the the number of times each function called hal_io_wait, regardless of
how long it might have actually spent there. I have reason to believe
that hal_mkm_get_kek might actually be spending as much as 3 times the
reported time of 0.28s, but it's still pretty small beer.

Now we'll look at pkey_local_sign_rsa:

[11]    18.8    0.00   44.86    1000         pkey_local_sign_rsa [11]
                0.01   39.39    1000/1000        hal_rsa_decrypt [12]

[12]    16.5    0.01   39.39    1000         hal_rsa_decrypt [12]
                0.00   36.97    1000/1000        rsa_crt [13]
                0.00    1.92    1000/6000        unpack_fp [23]
                0.05    0.44    1000/13001       fp_read_unsigned_bin
                0.01    0.00    2000/1869115     memset [22]

[13]    15.5    0.00   36.97    1000         rsa_crt [13]
                0.00   15.15    3000/3000        fp_mulmod [19]
                0.01   11.31    1000/1000        modexp2 [25]
                0.00    9.97    1000/1000        create_blinding_factors
                0.00    0.40    1000/4000        fp_mul [44]

[25]     4.7    0.01   11.31    1000         modexp2 [25]
                0.00    9.61    5000/6000        unpack_fp [23]
                0.09    0.88    2000/13001       fp_read_unsigned_bin
                0.10    0.58    1000/1000        hal_modexp2 [63]
                0.05    0.00    7000/1869115     memset [22]
                0.00    0.01    5000/13031       fp_unsigned_bin_size

[63]     0.3    0.10    0.58    1000         hal_modexp2 [63]
                0.37    0.08  522004/5642554     hal_io_write [36]
                0.00    0.08    2000/2000        get_buffer [79]
                0.00    0.02    1001/1709859     hal_io_wait2 [15]
                0.00    0.01    1000/1000        hal_core_alloc2 [101]
                0.00    0.00    2000/3003        hal_core_free [100]
                0.00    0.00    2256/15832758    hal_io_read [18]

[27]     4.2    0.00    9.97    1000         create_blinding_factors
                0.00    9.83    2000/2000        fp_sqrmod [28]

[33]     2.2    0.00    5.33    1000        hal_rsa_private_key_from_der
                0.03    4.47    9000/10001       hal_asn1_decode_integer

Adding all this up, pkey_local_sign_rsa is 44.86s, of which 5.33s is
ASN.1 decoding, only 0.68s is hal_modexp2, and a whopping 38.38s is
libtfm (the rest of CRT, and blinding factor permutation; featuring
fp_mulmod, unpack_fp, fp_sqrmod, fp_read_unsigned_bin, fp_mul,
fp_unsigned_bin_size, in order of contribution).

4.2 fmc_clk_60mhz.gprof

This differs only in the clock speeds of the FPGA. Recall that, in
master, the cores are clocked at 50mhz, and the FMC bus is clocked at
90mhz, and has to do some clock domain crossing magic. In the 60mhz
variant, both the cores and the bus are clocked at 60mhz. This also
means that the software driver no longer needs to poll the NWAIT pin on
read, which may offset the slower bus speed.

[5]     43.8    0.00   83.30    1000         pkey_local_sign [5]
                0.00   45.69    1000/1000        pkey_local_sign_rsa [7]
		0.00   37.60    1000/1000        hal_ks_fetch [10]

It makes sense that signing takes about the same time, since it's mostly
on the MCU. hal_ks_fetch is faster, because of the slightly faster cores
and the synchronous bus.

4.3 keywrap.gprof

This variant moves the AES key wrap and unwrap operations into a
dedicated keywrap core. 1699836 calls to do_block are replaced with 1002
calls to do_keywrap_core. Internally, just as much time is spent in AES,
but it eliminates almost all the time spent communicating with the FPGA.

(This uses the same FPGA clocking as master, so that's what we need to
compare to here.)

[5]     41.8    0.00   71.01    1000         pkey_local_sign [5]
                0.00   47.23    1000/1000        pkey_local_sign_rsa [7]
                0.00   23.77    1000/1000        hal_ks_fetch [12]

On the face of it, this looks okay. It's spending less time in
hal_ks_fetch, and...a little more time in pkey_local_sign_rsa? Drilling
down (not shown here), we find that hal_modexp2 spends 0.02s in
hal_io_wait on master, but 2.36s here.

Even more surprising, if we drill down the hal_ks_fetch call chain, we
find that time spent in hal_mkmif_read goes from 0.29s on master to
21.30s here. What?

What's going on here has everything to do with hal_io_wait:

                0.13    2.23    1001/11025       hal_modexp2 [39]
                1.29   22.35   10024/11025       hal_io_wait [13]
[11]    15.3    1.42   24.58   11025         hal_io_wait2 [11]

                0.00    0.01       4/10024       hal_get_random [100]
                0.00    2.36    1002/10024       do_keywrap_core [42]
                0.00   21.26    9018/10024       hal_mkmif_read [16]
[13]    13.9    0.00   23.63   10024         hal_io_wait [13]

Time spent in hal_io_wait2 is apportioned by number of calls, but
do_keywrap_core spends a *lot* more time in each hal_io_wait call.

This can also be seen in hal_io_read: In master, 1.7M calls to
hal_io_wait2 are responsible for 12.3M calls to hal_io_read. In keywrap,
just 11025 calls to hal_io_wait2 are responsible for 10.9M calls to
hal_io_read.

Undeniably, less time is spent in hal_io_wait2 (26.00s vs 35.93s on
master), but a lot more of that time is from hal_aes_keyunwrap, and a
lot less from hal_mkm_get_kek. Without a clear understanding of that, we
could waste time optimizing the wrong things.

4.4 keywrap.cached-kek.gprof

To investigate and illustrate this, I followed a line of thought that
was brought up at last week's meeting. Joachim pointed out that, after a
key wrap/unwrap operation, the KEK remains in the AES (or keywrap) core.
So I modified ks.c and aes_keywrap.c to only fetch the KEK on the first
operation. The speed improvements were very modest (about 0.8ms/sig
unprofiled), but it really shifted the time assigned to key-fetch and
signing:

[4]     41.2    0.00   69.68    1000         pkey_local_sign [4]
                0.00   57.30    1000/1000        pkey_local_sign_rsa [7]
                0.00   12.37    1000/1000        hal_ks_fetch [19]

                1.83   10.41    1001/2007        hal_modexp2 [16]
                1.84   10.46    1006/2007        hal_io_wait [21]
[11]    14.5    3.68   20.86    2007         hal_io_wait2 [11]

                0.00    0.05       4/1006        hal_get_random [84]
                0.00   12.25    1002/1006        do_keywrap_core [22]
[21]     7.3    0.00   12.30    1006         hal_io_wait [21]

There are only 2007 calls to hal_io_wait. hal_modexp2 and
do_keywrap_core are responsible for about the same number of calls, so
get assigned about the same amount of time.

So even in this scenario, we should assign most of hal_io_wait to
do_keywrap_core. Realistically, I'd expect something like:

                0.00   45.30    1000/1000        pkey_local_sign_rsa [7]
                0.00   24.37    1000/1000        hal_ks_fetch [19]

Compare to master:

                0.00   44.86    1000/1000        pkey_local_sign_rsa[11]
                0.00   48.39    1000/1000        hal_ks_fetch [7]

5. Conclusions

Profiling is a necessary tool for understanding where the program is
spending its time. But it's necessary to understand all the factors that
go into the seemingly-precise numbers, in order to have a clear(er)
picture of what's actually going on.

Both `fmc_clk_60mhz` and `js_keywrap` show promise for speed
improvements, but fine-grained FPGA communications and software bignum
math continue to dominate signing time.

				paul
-------------- next part --------------
Flat profile:

Each sample counts as 0.001 seconds.
  %   cumulative   self              self     total           
 time   seconds   seconds    calls   s/call   s/call  name    
 40.38     96.32    96.32                             _mcount_internal
 19.02    141.69    45.37                             __gnu_mcount_nc
  6.92    158.21    16.51 15832758     0.00     0.00  hal_io_read
  5.20    170.62    12.41  1869115     0.00     0.00  memset
  3.15    178.15     7.53   289469     0.00     0.00  s_fp_sub
  3.12    185.59     7.44 14214145     0.00     0.00  next_task
  2.37    191.25     5.66  1684001     0.00     0.00  fp_mul_2d
  2.26    196.65     5.40  7103109     0.00     0.00  task_yield
  2.12    201.72     5.07  1709859     0.00     0.00  hal_io_wait2
  2.10    206.72     5.00   748692     0.00     0.00  fp_mul_d
  2.00    211.50     4.77 47514100     0.00     0.00  HAL_GPIO_ReadPin
  1.67    215.48     3.99  5642554     0.00     0.00  hal_io_write
  1.64    219.39     3.90  1030147     0.00     0.00  fp_div_2d
  1.54    223.06     3.67    55272     0.00     0.00  memcpy
  0.91    225.22     2.16   293000     0.00     0.00  fp_lshd
  0.81    227.16     1.94  1699836     0.00     0.00  do_block
  0.54    228.44     1.28  9603267     0.00     0.00  HAL_GetTick
  0.49    229.61     1.17  7102094     0.00     0.00  hal_task_yield
  0.46    230.70     1.09     1000     0.00     0.05  hal_aes_keyunwrap
  0.43    231.72     1.02     5000     0.00     0.00  fp_div
  0.36    232.57     0.85     8192     0.00     0.00  sw_hash_core_sha256
  0.32    233.34     0.77   761161     0.00     0.00  fp_cmp_mag
  0.25    233.95     0.61     2000     0.00     0.00  fp_mul_comba32
  0.25    234.55     0.60    13001     0.00     0.00  fp_read_unsigned_bin
  0.20    235.03     0.49  1708858     0.00     0.00  hal_io_wait
  0.19    235.48     0.45     2000     0.00     0.00  fp_mul_comba64
  0.19    235.93     0.45   550202     0.00     0.00  UART_WaitOnFlagUntilTimeout
  0.17    236.33     0.39     2000     0.00     0.00  fp_sqr_comba64
  0.13    236.63     0.30     6010     0.00     0.00  fp_to_unsigned_bin
  0.11    236.89     0.26                             __udivmoddi4
  0.10    237.12     0.23   275097     0.00     0.00  HAL_UART_Transmit
  0.08    237.31     0.18   275097     0.00     0.00  uart_send_bytes2
  0.07    237.48     0.17   289000     0.00     0.00  fp_sub
  0.05    237.59     0.11     6010     0.00     0.00  fp_reverse
  0.04    237.69     0.10    20002     0.00     0.00  hal_asn1_decode_header
  0.04    237.78     0.10     1000     0.00     0.00  hal_modexp2
  0.03    237.86     0.08   272072     0.00     0.00  hal_slip_send_char
  0.03    237.94     0.07   275080     0.00     0.00  uart_send_char2
  0.03    238.00     0.07     2004     0.00     0.00  hal_mkmif_read
  0.02    238.06     0.06                             __aeabi_uldivmod
  0.02    238.11     0.06   275097     0.00     0.00  HAL_UART_GetState
  0.02    238.16     0.05   275080     0.00     0.00  hal_serial_send_char
  0.02    238.21     0.05     1004     0.00     0.00  hal_slip_send
  0.02    238.25     0.04     5000     0.00     0.00  fp_rshd
  0.02    238.29     0.04     2048     0.00     0.00  hal_hmac_initialize
  0.01    238.33     0.04     1000     0.00     0.00  s_fp_add
  0.01    238.35     0.03    10001     0.00     0.00  hal_asn1_decode_integer
  0.01    238.38     0.03     4096     0.00     0.00  swytebop
  0.01    238.41     0.02    18055     0.00     0.00  fp_count_bits
  0.01    238.42     0.02     8194     0.00     0.00  hal_hash_update
  0.01    238.44     0.01     1000     0.00     0.01  modexp2
  0.00    238.45     0.01        1     0.01     1.73  hal_pbkdf2
  0.00    238.46     0.01     3003     0.00     0.00  hal_core_alloc_no_wait
  0.00    238.46     0.01     4096     0.00     0.00  hal_hash_finalize
  0.00    238.47     0.01     4096     0.00     0.00  hal_hash_initialize
  0.00    238.48     0.01     8192     0.00     0.00  hash_write_block
  0.00    238.48     0.01     4000     0.00     0.00  fp_mul
  0.00    238.49     0.01     2048     0.00     0.00  hal_hmac_finalize
  0.00    238.49     0.01    13031     0.00     0.00  fp_unsigned_bin_size
  0.00    238.50     0.01     5000     0.00     0.00  fp_cmp
  0.00    238.50     0.01     1000     0.00     0.04  hal_rsa_decrypt
  0.00    238.51     0.00     5000     0.00     0.00  fp_mod
  0.00    238.51     0.00     4014     0.00     0.00  hal_xdr_encode_int
  0.00    238.52     0.00     1000     0.00     0.01  create_blinding_factors
  0.00    238.52     0.00     6000     0.00     0.00  unpack_fp
  0.00    238.52     0.00     3003     0.00     0.00  hal_core_free
  0.00    238.53     0.00     2000     0.00     0.00  fp_sqr
  0.00    238.53     0.00     1000     0.00     0.04  pkey_local_sign_rsa
  0.00    238.53     0.00     3031     0.00     0.00  fp_cmp_d
  0.00    238.53     0.00     3000     0.00     0.01  fp_mulmod
  0.00    238.53     0.00     2008     0.00     0.00  ibuf_put
  0.00    238.54     0.00     2000     0.00     0.00  get_buffer
  0.00    238.54     0.00     1004     0.00     0.09  hal_rpc_server_dispatch
  0.00    238.54     0.00     1000     0.00     0.01  hal_rsa_private_key_from_der
  0.00    238.54     0.00     1000     0.00     0.04  rsa_crt
  0.00    238.54     0.00     2048     0.00     0.00  do_hmac
  0.00    238.54     0.00     2046     0.00     0.00  hal_task_yield_maybe
  0.00    238.54     0.00     2046     0.00     0.00  task_yield_maybe
  0.00    238.55     0.00     1469     0.00     0.00  fp_add
  0.00    238.55     0.00     1000     0.00     0.00  hal_core_alloc2
  0.00    238.55     0.00        2     0.00     0.04  hal_aes_keywrap
  0.00    238.55     0.00                             dispatch_task
  0.00    238.55     0.00  7111036     0.00     0.00  default_idle_hook
  0.00    238.55     0.00   238546     0.00     0.00  HAL_IncTick
  0.00    238.55     0.00   238546     0.00     0.00  HAL_SYSTICK_Callback
  0.00    238.55     0.00   238546     0.00     0.00  HAL_SYSTICK_IRQHandler
  0.00    238.55     0.00    80300     0.00     0.00  RxCallback
  0.00    238.55     0.00    80300     0.00     0.00  hal_slip_process_char
  0.00    238.55     0.00    11032     0.00     0.00  hal_critical_section_end
  0.00    238.55     0.00    11032     0.00     0.00  hal_critical_section_start
  0.00    238.55     0.00     8006     0.00     0.00  hal_core_find
  0.00    238.55     0.00     8006     0.00     0.00  hal_core_iterate
  0.00    238.55     0.00     7017     0.00     0.00  hal_xdr_decode_int_peek
  0.00    238.55     0.00     7015     0.00     0.00  hal_xdr_decode_int
  0.00    238.55     0.00     2050     0.00     0.00  hal_hmac_update
  0.00    238.55     0.00     2008     0.00     0.00  ibuf_get
  0.00    238.55     0.00     2007     0.00     0.00  memmove
  0.00    238.55     0.00     2006     0.00     0.00  task_mutex_lock
  0.00    238.55     0.00     2006     0.00     0.00  task_mutex_unlock
  0.00    238.55     0.00     2004     0.00     0.00  hal_xdr_decode_fixed_opaque_ptr
  0.00    238.55     0.00     2004     0.00     0.00  memcmp
  0.00    238.55     0.00     2000     0.00     0.00  fp_sqrmod
  0.00    238.55     0.00     1017     0.00     0.00  task_wake
  0.00    238.55     0.00     1007     0.00     0.00  hal_ks_index_fsck
  0.00    238.55     0.00     1006     0.00     0.00  hal_ks_lock
  0.00    238.55     0.00     1006     0.00     0.00  hal_ks_unlock
  0.00    238.55     0.00     1005     0.00     0.00  hal_ks_cache_mark_used
  0.00    238.55     0.00     1005     0.00     0.00  task_sleep
  0.00    238.55     0.00     1004     0.00     0.00  hal_rpc_sendto
  0.00    238.55     0.00     1004     0.00     0.00  ks_find
  0.00    238.55     0.00     1004     0.00     0.00  task_get_func
  0.00    238.55     0.00     1004     0.00     0.00  task_get_state
  0.00    238.55     0.00     1004     0.00     0.00  task_iterate
  0.00    238.55     0.00     1004     0.00     0.00  task_next_waiting
  0.00    238.55     0.00     1003     0.00     0.00  hal_core_alloc
  0.00    238.55     0.00     1003     0.00     0.00  hal_xdr_decode_variable_opaque_ptr
  0.00    238.55     0.00     1002     0.00     0.00  hal_ks_cache_find_block
  0.00    238.55     0.00     1002     0.00     0.00  hal_mkm_get_kek
  0.00    238.55     0.00     1002     0.00     0.00  hal_mkm_volatile_init
  0.00    238.55     0.00     1002     0.00     0.00  hal_mkm_volatile_read
  0.00    238.55     0.00     1002     0.00     0.00  hal_mkmif_read_word
  0.00    238.55     0.00     1002     0.00     0.00  ks_volatile_test_owner
  0.00    238.55     0.00     1002     0.00     0.00  load_kek
  0.00    238.55     0.00     1001     0.00     0.00  hal_asn1_decode_pkcs8_privatekeyinfo
  0.00    238.55     0.00     1001     0.00     0.00  hal_ks_block_read_cached
  0.00    238.55     0.00     1001     0.00     0.00  hal_ks_index_find
  0.00    238.55     0.00     1000     0.00     0.00  extract_component
  0.00    238.55     0.00     1000     0.00     0.05  hal_ks_fetch
  0.00    238.55     0.00     1000     0.00     0.09  hal_rpc_pkey_sign
  0.00    238.55     0.00     1000     0.00     0.00  hal_rsa_bf_lock
  0.00    238.55     0.00     1000     0.00     0.00  hal_rsa_bf_unlock
  0.00    238.55     0.00     1000     0.00     0.00  hal_rsa_key_get_modulus
  0.00    238.55     0.00     1000     0.00     0.00  hal_rsa_key_needs_saving
  0.00    238.55     0.00     1000     0.00     0.00  pkcs1_5_pad
  0.00    238.55     0.00     1000     0.00     0.09  pkey_local_sign
  0.00    238.55     0.00     1000     0.00     0.09  pkey_sign
  0.00    238.55     0.00      170     0.00     0.00  HAL_DMA_IRQHandler
  0.00    238.55     0.00       92     0.00     0.00  HAL_UART_RxCpltCallback
  0.00    238.55     0.00       92     0.00     0.00  UART_DMAReceiveCplt
  0.00    238.55     0.00       79     0.00     0.00  HAL_UART2_RxCpltCallback
  0.00    238.55     0.00       78     0.00     0.00  HAL_UART2_RxHalfCpltCallback
  0.00    238.55     0.00       78     0.00     0.00  HAL_UART_RxHalfCpltCallback
  0.00    238.55     0.00       78     0.00     0.00  UART_DMARxHalfCplt
  0.00    238.55     0.00       66     0.00     0.00  hal_asn1_encode_header
  0.00    238.55     0.00       31     0.00     0.00  hal_asn1_encode_integer
  0.00    238.55     0.00       17     0.00     0.00  uart_cli_write
  0.00    238.55     0.00       13     0.00     0.00  HAL_UART1_RxCpltCallback
  0.00    238.55     0.00       13     0.00     0.00  uart_cli_read
  0.00    238.55     0.00        3     0.00     0.00  hal_asn1_encode_pkcs8_privatekeyinfo
  0.00    238.55     0.00        3     0.00     0.00  ks_volatile_erase
  0.00    238.55     0.00        2     0.00     0.00  check_stack
  0.00    238.55     0.00        2     0.00     0.04  construct_key_block
  0.00    238.55     0.00        2     0.00     0.00  hal_aes_keywrap_ciphertext_length
  0.00    238.55     0.00        2     0.00     0.00  hal_ks_cache_release
  0.00    238.55     0.00        2     0.00     0.00  hal_ks_logout
  0.00    238.55     0.00        2     0.00     0.00  hal_rpc_is_logged_in
  0.00    238.55     0.00        2     0.00     0.86  hal_rpc_login
  0.00    238.55     0.00        2     0.00     0.01  hal_rsa_private_key_to_der_extra
  0.00    238.55     0.00        2     0.00     0.01  hal_rsa_private_key_to_der_internal
  0.00    238.55     0.00        2     0.00     0.00  is_logged_in
  0.00    238.55     0.00        2     0.00     0.00  ks_volatile_write
  0.00    238.55     0.00        2     0.00     0.00  ks_volatile_zero
  0.00    238.55     0.00        1     0.00     0.00  cli_add_history
  0.00    238.55     0.00        1     0.00     0.00  cli_command_name
  0.00    238.55     0.00        1     0.00     0.00  cli_find_command
  0.00    238.55     0.00        1     0.00     0.00  cli_parse_line
  0.00    238.55     0.00        1     0.00     0.00  cli_run_command
  0.00    238.55     0.00        1     0.00     0.00  cmd_profile_stop
  0.00    238.55     0.00        1     0.00     0.00  get_random
  0.00    238.55     0.00        1     0.00     0.00  hal_asn1_guess_key_type
  0.00    238.55     0.00        1     0.00     0.00  hal_get_pin
  0.00    238.55     0.00        1     0.00     0.00  hal_get_random
  0.00    238.55     0.00        1     0.00     0.00  hal_ks_attribute_scan
  0.00    238.55     0.00        1     0.00     0.00  hal_ks_block_update
  0.00    238.55     0.00        1     0.00     0.00  hal_ks_cache_pick_lru
  0.00    238.55     0.00        1     0.00     0.00  hal_ks_delete
  0.00    238.55     0.00        1     0.00     0.00  hal_ks_index_add
  0.00    238.55     0.00        1     0.00     0.00  hal_ks_index_delete
  0.00    238.55     0.00        1     0.00     0.00  hal_ks_index_replace
  0.00    238.55     0.00        1     0.00     0.04  hal_ks_rewrite_der
  0.00    238.55     0.00        1     0.00     0.04  hal_ks_store
  0.00    238.55     0.00        1     0.00     0.00  hal_pkey_logout
  0.00    238.55     0.00        1     0.00     0.00  hal_rpc_get_random
  0.00    238.55     0.00        1     0.00     0.00  hal_rpc_logout
  0.00    238.55     0.00        1     0.00     0.00  hal_rpc_pkey_delete
  0.00    238.55     0.00        1     0.00     0.04  hal_rpc_pkey_load
  0.00    238.55     0.00        1     0.00     0.00  hal_uuid_gen
  0.00    238.55     0.00        1     0.00     0.00  hal_xdr_encode_fixed_opaque
  0.00    238.55     0.00        1     0.00     0.00  hal_xdr_encode_variable_opaque
  0.00    238.55     0.00        1     0.00     0.00  ks_token_logout
  0.00    238.55     0.00        1     0.00     0.00  ks_volatile_copy_owner
  0.00    238.55     0.00        1     0.00     0.00  ks_volatile_deprecate
  0.00    238.55     0.00        1     0.00     0.00  ks_volatile_logout
  0.00    238.55     0.00        1     0.00     0.00  ks_volatile_set_owner
  0.00    238.55     0.00        1     0.00     1.73  login
  0.00    238.55     0.00        1     0.00     0.86  login
  0.00    238.55     0.00        1     0.00     0.00  logout
  0.00    238.55     0.00        1     0.00     0.00  logout
  0.00    238.55     0.00        1     0.00     0.00  pkey_delete
  0.00    238.55     0.00        1     0.00     0.04  pkey_load
  0.00    238.55     0.00        1     0.00     0.00  pkey_local_delete
  0.00    238.55     0.00        1     0.00     0.00  pkey_local_get_key_type
  0.00    238.55     0.00        1     0.00     0.04  pkey_local_load
  0.00    238.55     0.00        1     0.00     0.00  show_prompt

 %         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 2 byte(s) for 0.00% of 238.55 seconds

index % time    self  children    called     name
                                                 <spontaneous>
[1]     40.4   96.32    0.00                 _mcount_internal [1]
-----------------------------------------------
                                                 <spontaneous>
[2]     40.1    0.00   95.67                 dispatch_task [2]
                0.00   94.16    1004/1004        hal_rpc_server_dispatch [3]
                0.00    1.50    1004/1004        hal_rpc_sendto [45]
                0.01    0.00    1004/1869115     memset [22]
                0.00    0.00    1004/1005        task_sleep [110]
                0.00    0.00    1004/2008        ibuf_put [109]
                0.00    0.00    1004/2008        ibuf_get [156]
-----------------------------------------------
                0.00   94.16    1004/1004        dispatch_task [2]
[3]     39.5    0.00   94.16    1004         hal_rpc_server_dispatch [3]
                0.00   93.26    1000/1000        pkey_sign [4]
                0.00    0.86       1/1           login [56]
                0.00    0.04       1/1           pkey_load [86]
                0.00    0.00    3012/4014        hal_xdr_encode_int [103]
                0.00    0.00       1/1           pkey_delete [132]
                0.00    0.00    1004/7015        hal_xdr_decode_int [155]
                0.00    0.00    1004/7017        hal_xdr_decode_int_peek [154]
                0.00    0.00       1/1           logout [208]
-----------------------------------------------
                0.00   93.26    1000/1000        hal_rpc_server_dispatch [3]
[4]     39.1    0.00   93.26    1000         pkey_sign [4]
                0.00   93.26    1000/1000        hal_rpc_pkey_sign [5]
                0.00    0.00    1000/4014        hal_xdr_encode_int [103]
                0.00    0.00    4000/7015        hal_xdr_decode_int [155]
                0.00    0.00    1000/1003        hal_xdr_decode_variable_opaque_ptr [171]
-----------------------------------------------
                0.00   93.26    1000/1000        pkey_sign [4]
[5]     39.1    0.00   93.26    1000         hal_rpc_pkey_sign [5]
                0.00   93.26    1000/1000        pkey_local_sign [6]
-----------------------------------------------
                0.00   93.26    1000/1000        hal_rpc_pkey_sign [5]
[6]     39.1    0.00   93.26    1000         pkey_local_sign [6]
                0.00   48.39    1000/1000        hal_ks_fetch [7]
                0.00   44.86    1000/1000        pkey_local_sign_rsa [11]
                0.01    0.00    1000/1869115     memset [22]
                0.00    0.00    1000/11032       hal_critical_section_start [151]
                0.00    0.00    1000/11032       hal_critical_section_end [150]
-----------------------------------------------
                0.00   48.39    1000/1000        pkey_local_sign [6]
[7]     20.3    0.00   48.39    1000         hal_ks_fetch [7]
                1.09   46.95    1000/1000        hal_aes_keyunwrap [8]
                0.00    0.28    1000/1002        hal_mkm_get_kek [71]
                0.07    0.00    1000/55272       memcpy [39]
                0.00    0.00    1000/1006        hal_ks_lock [163]
                0.00    0.00    1000/1001        hal_ks_index_find [176]
                0.00    0.00    1000/1002        ks_volatile_test_owner [174]
                0.00    0.00    1000/1001        hal_ks_block_read_cached [175]
                0.00    0.00    1000/1005        hal_ks_cache_mark_used [165]
                0.00    0.00    1000/1006        hal_ks_unlock [164]
-----------------------------------------------
                1.09   46.95    1000/1000        hal_ks_fetch [7]
[8]     20.1    1.09   46.95    1000         hal_aes_keyunwrap [8]
                1.94   44.93 1697220/1699836     do_block [9]
                0.00    0.07    1000/2007        memmove [76]
                0.00    0.00    1000/1003        hal_core_alloc [104]
                0.00    0.00    1000/3003        hal_core_free [100]
                0.00    0.00    1000/1002        load_kek [106]
-----------------------------------------------
                0.00    0.07    2616/1699836     hal_aes_keywrap [82]
                1.94   44.93 1697220/1699836     hal_aes_keyunwrap [8]
[9]     19.7    1.94   45.00 1699836         do_block [9]
                0.49   35.71 1699836/1708858     hal_io_wait [14]
                3.61    0.82 5099508/5642554     hal_io_write [36]
                3.55    0.83 3399672/15832758     hal_io_read [18]
-----------------------------------------------
                                                 <spontaneous>
[10]    19.0   45.37    0.00                 __gnu_mcount_nc [10]
-----------------------------------------------
                0.00   44.86    1000/1000        pkey_local_sign [6]
[11]    18.8    0.00   44.86    1000         pkey_local_sign_rsa [11]
                0.01   39.39    1000/1000        hal_rsa_decrypt [12]
                0.00    5.33    1000/1000        hal_rsa_private_key_from_der [33]
                0.00    0.07    1000/1000        pkcs1_5_pad [83]
                0.00    0.04       1/1           hal_ks_rewrite_der [89]
                0.00    0.02       2/2           hal_rsa_private_key_to_der_extra [96]
                0.00    0.00    1000/1000        hal_rsa_key_get_modulus [112]
                0.00    0.00       1/1869115     memset [22]
                0.00    0.00    1000/1000        hal_rsa_key_needs_saving [179]
-----------------------------------------------
                0.01   39.39    1000/1000        pkey_local_sign_rsa [11]
[12]    16.5    0.01   39.39    1000         hal_rsa_decrypt [12]
                0.00   36.97    1000/1000        rsa_crt [13]
                0.00    1.92    1000/6000        unpack_fp [23]
                0.05    0.44    1000/13001       fp_read_unsigned_bin [31]
                0.01    0.00    2000/1869115     memset [22]
-----------------------------------------------
                0.00   36.97    1000/1000        hal_rsa_decrypt [12]
[13]    15.5    0.00   36.97    1000         rsa_crt [13]
                0.00   15.15    3000/3000        fp_mulmod [19]
                0.01   11.31    1000/1000        modexp2 [25]
                0.00    9.97    1000/1000        create_blinding_factors [27]
                0.00    0.40    1000/4000        fp_mul [44]
                0.04    0.00    1469/289469      s_fp_sub [29]
                0.04    0.00    1000/1000        s_fp_add [91]
                0.03    0.00    5000/1869115     memset [22]
                0.00    0.00    3000/3031        fp_cmp_d [108]
                0.00    0.00    1000/289000      fp_sub [68]
                0.00    0.00    1469/1469        fp_add [113]
-----------------------------------------------
                0.00    0.00       4/1708858     hal_get_random [128]
                0.00    0.19    9018/1708858     hal_mkmif_read [70]
                0.49   35.71 1699836/1708858     do_block [9]
[14]    15.3    0.49   35.90 1708858         hal_io_wait [14]
                5.07   30.84 1708858/1709859     hal_io_wait2 [15]
-----------------------------------------------
                0.00    0.02    1001/1709859     hal_modexp2 [63]
                5.07   30.84 1708858/1709859     hal_io_wait [14]
[15]    15.1    5.07   30.86 1709859         hal_io_wait2 [15]
               12.89    3.02 12357808/15832758     hal_io_read [18]
                1.17   13.78 7099091/7102094     hal_task_yield [20]
-----------------------------------------------
                0.00    9.29    2000/5000        fp_sqrmod [28]
                0.00   13.93    3000/5000        fp_mulmod [19]
[16]     9.7    0.00   23.22    5000         fp_mod [16]
                1.02   21.83    5000/5000        fp_div [17]
                0.33    0.00    5000/55272       memcpy [39]
                0.03    0.00    5000/1869115     memset [22]
-----------------------------------------------
                1.02   21.83    5000/5000        fp_mod [16]
[17]     9.6    1.02   21.83    5000         fp_div [17]
                7.49    0.00  288000/289469      s_fp_sub [29]
                5.00    0.00  748692/748692      fp_mul_d [34]
                2.16    1.91  293000/293000      fp_lshd [38]
                3.16    0.00  475692/1869115     memset [22]
                1.00    0.00   15000/55272       memcpy [39]
                0.48    0.00  470692/761161      fp_cmp_mag [61]
                0.17    0.29  288000/289000      fp_sub [68]
                0.04    0.03    5000/5000        fp_rshd [80]
                0.02    0.03    5000/1030147     fp_div_2d [26]
                0.03    0.00   10000/1684001     fp_mul_2d [32]
                0.01    0.00    5000/18055       fp_count_bits [94]
                0.01    0.00    5000/5000        fp_cmp [102]
-----------------------------------------------
                0.00    0.00       4/15832758     hal_get_random [128]
                0.00    0.00    2256/15832758     hal_modexp2 [63]
                0.01    0.00    9018/15832758     hal_mkmif_read [70]
                0.07    0.02   64000/15832758     get_buffer [79]
                3.55    0.83 3399672/15832758     do_block [9]
               12.89    3.02 12357808/15832758     hal_io_wait2 [15]
[18]     8.5   16.51    3.86 15832758         hal_io_read [18]
                3.86    0.00 38464860/47514100     HAL_GPIO_ReadPin [37]
-----------------------------------------------
                0.00   15.15    3000/3000        rsa_crt [13]
[19]     6.4    0.00   15.15    3000         fp_mulmod [19]
                0.00   13.93    3000/5000        fp_mod [16]
                0.00    1.19    3000/4000        fp_mul [44]
                0.02    0.00    3000/1869115     memset [22]
-----------------------------------------------
                0.00    0.01    3003/7102094     hal_core_free [100]
                1.17   13.78 7099091/7102094     hal_io_wait2 [15]
[20]     6.3    1.17   13.79 7102094         hal_task_yield [20]
                5.40    8.39 7102094/7103109     task_yield [21]
-----------------------------------------------
                0.00    0.00      10/7103109     task_yield_maybe [114]
                0.00    0.00    1005/7103109     task_sleep [110]
                5.40    8.39 7102094/7103109     hal_task_yield [20]
[21]     5.8    5.40    8.39 7103109         task_yield [21]
                7.44    0.00 14214145/14214145     next_task [30]
                0.95    0.00 7103109/9603267     HAL_GetTick [50]
                0.00    0.00 7111036/7111036     default_idle_hook [147]
                0.00    0.00       2/2           check_stack [189]
-----------------------------------------------
                0.00    0.00       1/1869115     _mcleanup [145]
                0.00    0.00       1/1869115     pkey_local_sign_rsa [11]
                0.00    0.00       1/1869115     pkey_local_delete [133]
                0.00    0.00       1/1869115     pkey_local_load [88]
                0.00    0.00       1/1869115     cli_parse_line [125]
                0.00    0.00       1/1869115     cli_command_name [122]
                0.00    0.00       1/1869115     cli_run_command [121]
                0.00    0.00       1/1869115     cli_loop [120]
                0.00    0.00       2/1869115     construct_key_block [81]
                0.00    0.00       2/1869115     ks_volatile_zero [143]
                0.00    0.00       2/1869115     hal_pbkdf2 [41]
                0.00    0.00       2/1869115     hal_aes_keywrap [82]
                0.00    0.00       3/1869115     ks_volatile_erase [141]
                0.00    0.00       3/1869115     hal_rsa_private_key_to_der_internal [97]
                0.00    0.00       3/1869115     _cleanup_r [142]
                0.00    0.00       4/1869115     hal_asn1_encode_pkcs8_privatekeyinfo [105]
                0.01    0.00    1000/1869115     pkcs1_5_pad [83]
                0.01    0.00    1000/1869115     pkey_local_sign [6]
                0.01    0.00    1000/1869115     create_blinding_factors [27]
                0.01    0.00    1001/1869115     hal_asn1_decode_pkcs8_privatekeyinfo [64]
                0.01    0.00    1004/1869115     dispatch_task [2]
                0.01    0.00    2000/1869115     hal_rsa_decrypt [12]
                0.01    0.00    2000/1869115     hal_rsa_private_key_from_der [33]
                0.01    0.00    2000/1869115     fp_sqrmod [28]
                0.01    0.00    2048/1869115     hal_hmac_initialize [69]
                0.02    0.00    3000/1869115     fp_mulmod [19]
                0.03    0.00    4096/1869115     hal_hash_initialize [92]
                0.03    0.00    4096/1869115     hal_hash_finalize [67]
                0.03    0.00    5000/1869115     rsa_crt [13]
                0.03    0.00    5000/1869115     fp_rshd [80]
                0.03    0.00    5000/1869115     fp_mod [16]
                0.04    0.00    6000/1869115     unpack_fp [23]
                0.05    0.00    7000/1869115     modexp2 [25]
                0.07    0.00   10001/1869115     hal_asn1_decode_integer [35]
                0.09    0.00   13001/1869115     fp_read_unsigned_bin [31]
                1.91    0.00  288000/1869115     fp_lshd [38]
                3.16    0.00  475692/1869115     fp_div [17]
                6.84    0.00 1030147/1869115     fp_div_2d [26]
[22]     5.2   12.41    0.00 1869115         memset [22]
-----------------------------------------------
                0.00    1.92    1000/6000        hal_rsa_decrypt [12]
                0.00    9.61    5000/6000        modexp2 [25]
[23]     4.8    0.00   11.53    6000         unpack_fp [23]
                0.30   11.18    6000/6010        fp_to_unsigned_bin [24]
                0.04    0.00    6000/1869115     memset [22]
                0.00    0.01    6000/13031       fp_unsigned_bin_size [95]
-----------------------------------------------
                0.00    0.02      10/6010        hal_asn1_encode_integer [98]
                0.30   11.18    6000/6010        unpack_fp [23]
[24]     4.8    0.30   11.20    6010         fp_to_unsigned_bin [24]
                3.89    6.81 1025147/1030147     fp_div_2d [26]
                0.40    0.00    6010/55272       memcpy [39]
                0.11    0.00    6010/6010        fp_reverse [77]
-----------------------------------------------
                0.01   11.31    1000/1000        rsa_crt [13]
[25]     4.7    0.01   11.31    1000         modexp2 [25]
                0.00    9.61    5000/6000        unpack_fp [23]
                0.09    0.88    2000/13001       fp_read_unsigned_bin [31]
                0.10    0.58    1000/1000        hal_modexp2 [63]
                0.05    0.00    7000/1869115     memset [22]
                0.00    0.01    5000/13031       fp_unsigned_bin_size [95]
-----------------------------------------------
                0.02    0.03    5000/1030147     fp_div [17]
                3.89    6.81 1025147/1030147     fp_to_unsigned_bin [24]
[26]     4.5    3.90    6.84 1030147         fp_div_2d [26]
                6.84    0.00 1030147/1869115     memset [22]
-----------------------------------------------
                0.00    9.97    1000/1000        rsa_crt [13]
[27]     4.2    0.00    9.97    1000         create_blinding_factors [27]
                0.00    9.83    2000/2000        fp_sqrmod [28]
                0.13    0.00    2000/55272       memcpy [39]
                0.01    0.00    1000/1869115     memset [22]
                0.00    0.00    1000/13031       fp_unsigned_bin_size [95]
                0.00    0.00    1000/761161      fp_cmp_mag [61]
                0.00    0.00    1000/1000        hal_rsa_bf_lock [177]
                0.00    0.00    1000/1000        hal_rsa_bf_unlock [178]
-----------------------------------------------
                0.00    9.83    2000/2000        create_blinding_factors [27]
[28]     4.1    0.00    9.83    2000         fp_sqrmod [28]
                0.00    9.29    2000/5000        fp_mod [16]
                0.00    0.53    2000/2000        fp_sqr [65]
                0.01    0.00    2000/1869115     memset [22]
-----------------------------------------------
                0.04    0.00    1469/289469      rsa_crt [13]
                7.49    0.00  288000/289469      fp_div [17]
[29]     3.2    7.53    0.00  289469         s_fp_sub [29]
-----------------------------------------------
                7.44    0.00 14214145/14214145     task_yield [21]
[30]     3.1    7.44    0.00 14214145         next_task [30]
-----------------------------------------------
                0.05    0.44    1000/13001       hal_rsa_decrypt [12]
                0.09    0.88    2000/13001       modexp2 [25]
                0.46    4.40   10001/13001       hal_asn1_decode_integer [35]
[31]     2.6    0.60    5.71   13001         fp_read_unsigned_bin [31]
                5.63    0.00 1674001/1684001     fp_mul_2d [32]
                0.09    0.00   13001/1869115     memset [22]
-----------------------------------------------
                0.03    0.00   10000/1684001     fp_div [17]
                5.63    0.00 1674001/1684001     fp_read_unsigned_bin [31]
[32]     2.4    5.66    0.00 1684001         fp_mul_2d [32]
-----------------------------------------------
                0.00    5.33    1000/1000        pkey_local_sign_rsa [11]
[33]     2.2    0.00    5.33    1000         hal_rsa_private_key_from_der [33]
                0.03    4.47    9000/10001       hal_asn1_decode_integer [35]
                0.00    0.53    1000/1001        hal_asn1_decode_pkcs8_privatekeyinfo [64]
                0.27    0.00    3996/55272       memcpy [39]
                0.02    0.00    4996/20002       hal_asn1_decode_header [78]
                0.01    0.00    2000/1869115     memset [22]
                0.00    0.00    1000/2004        memcmp [160]
-----------------------------------------------
                5.00    0.00  748692/748692      fp_div [17]
[34]     2.1    5.00    0.00  748692         fp_mul_d [34]
-----------------------------------------------
                0.00    0.50    1001/10001       hal_asn1_decode_pkcs8_privatekeyinfo [64]
                0.03    4.47    9000/10001       hal_rsa_private_key_from_der [33]
[35]     2.1    0.03    4.97   10001         hal_asn1_decode_integer [35]
                0.46    4.40   10001/13001       fp_read_unsigned_bin [31]
                0.07    0.00   10001/1869115     memset [22]
                0.05    0.00   10001/20002       hal_asn1_decode_header [78]
-----------------------------------------------
                0.00    0.00    3006/5642554     load_kek [106]
                0.01    0.00   18036/5642554     hal_mkmif_read [70]
                0.37    0.08  522004/5642554     hal_modexp2 [63]
                3.61    0.82 5099508/5642554     do_block [9]
[36]     2.1    3.99    0.91 5642554         hal_io_write [36]
                0.91    0.00 9049240/47514100     HAL_GPIO_ReadPin [37]
-----------------------------------------------
                0.91    0.00 9049240/47514100     hal_io_write [36]
                3.86    0.00 38464860/47514100     hal_io_read [18]
[37]     2.0    4.77    0.00 47514100         HAL_GPIO_ReadPin [37]
-----------------------------------------------
                2.16    1.91  293000/293000      fp_div [17]
[38]     1.7    2.16    1.91  293000         fp_lshd [38]
                1.91    0.00  288000/1869115     memset [22]
-----------------------------------------------
                0.00    0.00       1/55272       hal_xdr_encode_fixed_opaque [137]
                0.00    0.00       1/55272       hal_asn1_encode_pkcs8_privatekeyinfo [105]
                0.00    0.00       2/55272       hal_ks_rewrite_der [89]
                0.00    0.00       2/55272       ks_volatile_write [126]
                0.00    0.00       2/55272       cli_parse_line [125]
                0.00    0.00       2/55272       cli_command_name [122]
                0.00    0.00       4/55272       hal_rsa_private_key_to_der_internal [97]
                0.00    0.00       4/55272       hal_pbkdf2 [41]
                0.07    0.00    1000/55272       hal_ks_fetch [7]
                0.13    0.00    2000/55272       create_blinding_factors [27]
                0.13    0.00    2000/55272       fp_sqr_comba64 [66]
                0.13    0.00    2006/55272       memmove [76]
                0.14    0.00    2048/55272       hal_hmac_initialize [69]
                0.27    0.00    3996/55272       hal_rsa_private_key_from_der [33]
                0.27    0.00    4000/55272       fp_mul_comba32 [55]
                0.27    0.00    4000/55272       fp_mul_comba64 [62]
                0.33    0.00    5000/55272       fp_mod [16]
                0.40    0.00    6010/55272       fp_to_unsigned_bin [24]
                0.54    0.00    8194/55272       hal_hash_update [54]
                1.00    0.00   15000/55272       fp_div [17]
[39]     1.5    3.67    0.00   55272         memcpy [39]
-----------------------------------------------
                0.00    0.86       1/2           monstartup [57]
                0.00    0.86       1/2           login [56]
[40]     0.7    0.00    1.73       2         hal_rpc_login [40]
                0.00    1.73       1/1           login [42]
-----------------------------------------------
                0.01    1.71       1/1           login [42]
[41]     0.7    0.01    1.71       1         hal_pbkdf2 [41]
                0.00    1.71    2048/2048        do_hmac [43]
                0.00    0.00    2046/2046        hal_task_yield_maybe [107]
                0.00    0.00       4/55272       memcpy [39]
                0.00    0.00       2/1869115     memset [22]
-----------------------------------------------
                0.00    1.73       1/1           hal_rpc_login [40]
[42]     0.7    0.00    1.73       1         login [42]
                0.01    1.71       1/1           hal_pbkdf2 [41]
                0.00    0.00       1/1           hal_get_pin [197]
                0.00    0.00       1/11032       hal_critical_section_start [151]
                0.00    0.00       1/11032       hal_critical_section_end [150]
-----------------------------------------------
                0.00    1.71    2048/2048        hal_pbkdf2 [41]
[43]     0.7    0.00    1.71    2048         do_hmac [43]
                0.01    1.00    2048/2048        hal_hmac_finalize [53]
                0.04    0.41    2048/2048        hal_hmac_initialize [69]
                0.00    0.25    2050/2050        hal_hmac_update [74]
-----------------------------------------------
                0.00    0.40    1000/4000        rsa_crt [13]
                0.00    1.19    3000/4000        fp_mulmod [19]
[44]     0.7    0.01    1.59    4000         fp_mul [44]
                0.61    0.27    2000/2000        fp_mul_comba32 [55]
                0.45    0.27    2000/2000        fp_mul_comba64 [62]
-----------------------------------------------
                0.00    1.50    1004/1004        dispatch_task [2]
[45]     0.6    0.00    1.50    1004         hal_rpc_sendto [45]
                0.05    1.45    1004/1004        hal_slip_send [46]
-----------------------------------------------
                0.05    1.45    1004/1004        hal_rpc_sendto [45]
[46]     0.6    0.05    1.45    1004         hal_slip_send [46]
                0.08    1.36  272072/272072      hal_slip_send_char [47]
                0.00    0.01    2008/275080      hal_serial_send_char [48]
-----------------------------------------------
                0.08    1.36  272072/272072      hal_slip_send [46]
[47]     0.6    0.08    1.36  272072         hal_slip_send_char [47]
                0.05    1.31  273072/275080      hal_serial_send_char [48]
-----------------------------------------------
                0.00    0.01    2008/275080      hal_slip_send [46]
                0.05    1.31  273072/275080      hal_slip_send_char [47]
[48]     0.6    0.05    1.32  275080         hal_serial_send_char [48]
                0.07    1.25  275080/275080      uart_send_char2 [49]
-----------------------------------------------
                0.07    1.25  275080/275080      hal_serial_send_char [48]
[49]     0.6    0.07    1.25  275080         uart_send_char2 [49]
                0.18    1.07  275080/275097      uart_send_bytes2 [51]
-----------------------------------------------
                0.00    0.00    2046/9603267     task_yield_maybe [114]
                0.33    0.00 2498112/9603267     UART_WaitOnFlagUntilTimeout [60]
                0.95    0.00 7103109/9603267     task_yield [21]
[50]     0.5    1.28    0.00 9603267         HAL_GetTick [50]
-----------------------------------------------
                0.00    0.00      17/275097      uart_cli_write [135]
                0.18    1.07  275080/275097      uart_send_char2 [49]
[51]     0.5    0.18    1.07  275097         uart_send_bytes2 [51]
                0.23    0.78  275097/275097      HAL_UART_Transmit [52]
                0.06    0.00  275097/275097      HAL_UART_GetState [85]
-----------------------------------------------
                0.23    0.78  275097/275097      uart_send_bytes2 [51]
[52]     0.4    0.23    0.78  275097         HAL_UART_Transmit [52]
                0.45    0.33  550202/550202      UART_WaitOnFlagUntilTimeout [60]
-----------------------------------------------
                0.01    1.00    2048/2048        do_hmac [43]
[53]     0.4    0.01    1.00    2048         hal_hmac_finalize [53]
                0.01    0.49    4096/8194        hal_hash_update [54]
                0.01    0.48    4096/4096        hal_hash_finalize [67]
                0.00    0.01    2048/4096        hal_hash_initialize [92]
-----------------------------------------------
                0.00    0.24    2048/8194        hal_hmac_initialize [69]
                0.00    0.24    2050/8194        hal_hmac_update [74]
                0.01    0.49    4096/8194        hal_hmac_finalize [53]
[54]     0.4    0.02    0.97    8194         hal_hash_update [54]
                0.54    0.00    8194/55272       memcpy [39]
                0.00    0.43    4096/8192        hash_write_block [58]
-----------------------------------------------
                0.61    0.27    2000/2000        fp_mul [44]
[55]     0.4    0.61    0.27    2000         fp_mul_comba32 [55]
                0.27    0.00    4000/55272       memcpy [39]
-----------------------------------------------
                0.00    0.86       1/1           hal_rpc_server_dispatch [3]
[56]     0.4    0.00    0.86       1         login [56]
                0.00    0.86       1/2           hal_rpc_login [40]
                0.00    0.00       2/7015        hal_xdr_decode_int [155]
                0.00    0.00       1/1003        hal_xdr_decode_variable_opaque_ptr [171]
-----------------------------------------------
                                                 <spontaneous>
[57]     0.4    0.00    0.86                 monstartup [57]
                0.00    0.86       1/2           hal_rpc_login [40]
-----------------------------------------------
                0.00    0.43    4096/8192        hal_hash_update [54]
                0.00    0.43    4096/8192        hal_hash_finalize [67]
[58]     0.4    0.01    0.85    8192         hash_write_block [58]
                0.85    0.00    8192/8192        sw_hash_core_sha256 [59]
-----------------------------------------------
                0.85    0.00    8192/8192        hash_write_block [58]
[59]     0.4    0.85    0.00    8192         sw_hash_core_sha256 [59]
-----------------------------------------------
                0.45    0.33  550202/550202      HAL_UART_Transmit [52]
[60]     0.3    0.45    0.33  550202         UART_WaitOnFlagUntilTimeout [60]
                0.33    0.00 2498112/9603267     HAL_GetTick [50]
-----------------------------------------------
                0.00    0.00     469/761161      fp_add [113]
                0.00    0.00    1000/761161      create_blinding_factors [27]
                0.29    0.00  289000/761161      fp_sub [68]
                0.48    0.00  470692/761161      fp_div [17]
[61]     0.3    0.77    0.00  761161         fp_cmp_mag [61]
-----------------------------------------------
                0.45    0.27    2000/2000        fp_mul [44]
[62]     0.3    0.45    0.27    2000         fp_mul_comba64 [62]
                0.27    0.00    4000/55272       memcpy [39]
-----------------------------------------------
                0.10    0.58    1000/1000        modexp2 [25]
[63]     0.3    0.10    0.58    1000         hal_modexp2 [63]
                0.37    0.08  522004/5642554     hal_io_write [36]
                0.00    0.08    2000/2000        get_buffer [79]
                0.00    0.02    1001/1709859     hal_io_wait2 [15]
                0.00    0.01    1000/1000        hal_core_alloc2 [101]
                0.00    0.00    2000/3003        hal_core_free [100]
                0.00    0.00    2256/15832758     hal_io_read [18]
-----------------------------------------------
                0.00    0.00       1/1001        hal_asn1_guess_key_type [119]
                0.00    0.53    1000/1001        hal_rsa_private_key_from_der [33]
[64]     0.2    0.00    0.53    1001         hal_asn1_decode_pkcs8_privatekeyinfo [64]
                0.00    0.50    1001/10001       hal_asn1_decode_integer [35]
                0.02    0.00    5005/20002       hal_asn1_decode_header [78]
                0.01    0.00    1001/1869115     memset [22]
-----------------------------------------------
                0.00    0.53    2000/2000        fp_sqrmod [28]
[65]     0.2    0.00    0.53    2000         fp_sqr [65]
                0.39    0.13    2000/2000        fp_sqr_comba64 [66]
-----------------------------------------------
                0.39    0.13    2000/2000        fp_sqr [65]
[66]     0.2    0.39    0.13    2000         fp_sqr_comba64 [66]
                0.13    0.00    2000/55272       memcpy [39]
-----------------------------------------------
                0.01    0.48    4096/4096        hal_hmac_finalize [53]
[67]     0.2    0.01    0.48    4096         hal_hash_finalize [67]
                0.00    0.43    4096/8192        hash_write_block [58]
                0.03    0.00    4096/1869115     memset [22]
                0.03    0.00    4096/4096        swytebop [93]
-----------------------------------------------
                0.00    0.00    1000/289000      rsa_crt [13]
                0.17    0.29  288000/289000      fp_div [17]
[68]     0.2    0.17    0.29  289000         fp_sub [68]
                0.29    0.00  289000/761161      fp_cmp_mag [61]
-----------------------------------------------
                0.04    0.41    2048/2048        do_hmac [43]
[69]     0.2    0.04    0.41    2048         hal_hmac_initialize [69]
                0.00    0.24    2048/8194        hal_hash_update [54]
                0.14    0.00    2048/55272       memcpy [39]
                0.00    0.01    2048/4096        hal_hash_initialize [92]
                0.01    0.00    2048/1869115     memset [22]
-----------------------------------------------
                0.03    0.11    1002/2004        hal_mkm_volatile_read [72]
                0.03    0.11    1002/2004        hal_mkmif_read_word [75]
[70]     0.1    0.07    0.22    2004         hal_mkmif_read [70]
                0.00    0.19    9018/1708858     hal_io_wait [14]
                0.01    0.00   18036/5642554     hal_io_write [36]
                0.01    0.00    9018/15832758     hal_io_read [18]
-----------------------------------------------
                0.00    0.00       2/1002        construct_key_block [81]
                0.00    0.28    1000/1002        hal_ks_fetch [7]
[71]     0.1    0.00    0.28    1002         hal_mkm_get_kek [71]
                0.00    0.28    1002/1002        hal_mkm_volatile_read [72]
-----------------------------------------------
                0.00    0.28    1002/1002        hal_mkm_get_kek [71]
[72]     0.1    0.00    0.28    1002         hal_mkm_volatile_read [72]
                0.00    0.14    1002/1002        hal_mkmif_read_word [75]
                0.03    0.11    1002/2004        hal_mkmif_read [70]
                0.00    0.00    1002/1002        hal_mkm_volatile_init [173]
-----------------------------------------------
                                                 <spontaneous>
[73]     0.1    0.26    0.00                 __udivmoddi4 [73]
-----------------------------------------------
                0.00    0.25    2050/2050        do_hmac [43]
[74]     0.1    0.00    0.25    2050         hal_hmac_update [74]
                0.00    0.24    2050/8194        hal_hash_update [54]
-----------------------------------------------
                0.00    0.14    1002/1002        hal_mkm_volatile_read [72]
[75]     0.1    0.00    0.14    1002         hal_mkmif_read_word [75]
                0.03    0.11    1002/2004        hal_mkmif_read [70]
-----------------------------------------------
                0.00    0.00       1/2007        hal_ks_index_add [138]
                0.00    0.00       1/2007        hal_ks_index_delete [139]
                0.00    0.00       1/2007        hal_ks_index_replace [140]
                0.00    0.00       1/2007        hal_asn1_encode_pkcs8_privatekeyinfo [105]
                0.00    0.00       1/2007        cli_command_name [122]
                0.00    0.00       2/2007        hal_aes_keywrap [82]
                0.00    0.07    1000/2007        pkcs1_5_pad [83]
                0.00    0.07    1000/2007        hal_aes_keyunwrap [8]
[76]     0.1    0.00    0.13    2007         memmove [76]
                0.13    0.00    2006/55272       memcpy [39]
-----------------------------------------------
                0.11    0.00    6010/6010        fp_to_unsigned_bin [24]
[77]     0.0    0.11    0.00    6010         fp_reverse [77]
-----------------------------------------------
                0.02    0.00    4996/20002       hal_rsa_private_key_from_der [33]
                0.02    0.00    5005/20002       hal_asn1_decode_pkcs8_privatekeyinfo [64]
                0.05    0.00   10001/20002       hal_asn1_decode_integer [35]
[78]     0.0    0.10    0.00   20002         hal_asn1_decode_header [78]
-----------------------------------------------
                0.00    0.08    2000/2000        hal_modexp2 [63]
[79]     0.0    0.00    0.08    2000         get_buffer [79]
                0.07    0.02   64000/15832758     hal_io_read [18]
-----------------------------------------------
                0.04    0.03    5000/5000        fp_div [17]
[80]     0.0    0.04    0.03    5000         fp_rshd [80]
                0.03    0.00    5000/1869115     memset [22]
-----------------------------------------------
                0.00    0.04       1/2           hal_ks_store [90]
                0.00    0.04       1/2           hal_ks_rewrite_der [89]
[81]     0.0    0.00    0.07       2         construct_key_block [81]
                0.00    0.07       2/2           hal_aes_keywrap [82]
                0.00    0.00       2/1002        hal_mkm_get_kek [71]
                0.00    0.00       2/1869115     memset [22]
-----------------------------------------------
                0.00    0.07       2/2           construct_key_block [81]
[82]     0.0    0.00    0.07       2         hal_aes_keywrap [82]
                0.00    0.07    2616/1699836     do_block [9]
                0.00    0.00       2/2007        memmove [76]
                0.00    0.00       2/1869115     memset [22]
                0.00    0.00       2/1003        hal_core_alloc [104]
                0.00    0.00       2/3003        hal_core_free [100]
                0.00    0.00       2/1002        load_kek [106]
                0.00    0.00       2/2           hal_aes_keywrap_ciphertext_length [190]
-----------------------------------------------
                0.00    0.07    1000/1000        pkey_local_sign_rsa [11]
[83]     0.0    0.00    0.07    1000         pkcs1_5_pad [83]
                0.00    0.07    1000/2007        memmove [76]
                0.01    0.00    1000/1869115     memset [22]
-----------------------------------------------
                                                 <spontaneous>
[84]     0.0    0.06    0.00                 __aeabi_uldivmod [84]
-----------------------------------------------
                0.06    0.00  275097/275097      uart_send_bytes2 [51]
[85]     0.0    0.06    0.00  275097         HAL_UART_GetState [85]
-----------------------------------------------
                0.00    0.04       1/1           hal_rpc_server_dispatch [3]
[86]     0.0    0.00    0.04       1         pkey_load [86]
                0.00    0.04       1/1           hal_rpc_pkey_load [87]
                0.00    0.00       1/1           hal_xdr_encode_variable_opaque [136]
                0.00    0.00       1/4014        hal_xdr_encode_int [103]
                0.00    0.00       3/7015        hal_xdr_decode_int [155]
                0.00    0.00       1/1003        hal_xdr_decode_variable_opaque_ptr [171]
-----------------------------------------------
                0.00    0.04       1/1           pkey_load [86]
[87]     0.0    0.00    0.04       1         hal_rpc_pkey_load [87]
                0.00    0.04       1/1           pkey_local_load [88]
-----------------------------------------------
                0.00    0.04       1/1           hal_rpc_pkey_load [87]
[88]     0.0    0.00    0.04       1         pkey_local_load [88]
                0.00    0.04       1/1           hal_ks_store [90]
                0.00    0.00       1/1           hal_asn1_guess_key_type [119]
                0.00    0.00       1/1           hal_uuid_gen [130]
                0.00    0.00       1/1869115     memset [22]
                0.00    0.00       1/2           hal_rpc_is_logged_in [193]
                0.00    0.00       1/11032       hal_critical_section_start [151]
                0.00    0.00       1/11032       hal_critical_section_end [150]
-----------------------------------------------
                0.00    0.04       1/1           pkey_local_sign_rsa [11]
[89]     0.0    0.00    0.04       1         hal_ks_rewrite_der [89]
                0.00    0.04       1/2           construct_key_block [81]
                0.00    0.00       1/1           hal_ks_block_update [124]
                0.00    0.00       2/55272       memcpy [39]
                0.00    0.00       1/1006        hal_ks_lock [163]
                0.00    0.00       1/1001        hal_ks_index_find [176]
                0.00    0.00       1/1002        ks_volatile_test_owner [174]
                0.00    0.00       1/1006        hal_ks_unlock [164]
                0.00    0.00       1/1001        hal_ks_block_read_cached [175]
                0.00    0.00       1/1005        hal_ks_cache_mark_used [165]
                0.00    0.00       1/1           hal_ks_attribute_scan [198]
-----------------------------------------------
                0.00    0.04       1/1           pkey_local_load [88]
[90]     0.0    0.00    0.04       1         hal_ks_store [90]
                0.00    0.04       1/2           construct_key_block [81]
                0.00    0.00       1/2           ks_volatile_write [126]
                0.00    0.00       1/1           hal_ks_index_add [138]
                0.00    0.00       1/3           ks_volatile_erase [141]
                0.00    0.00       1/1006        hal_ks_lock [163]
                0.00    0.00       1/1           hal_ks_cache_pick_lru [199]
                0.00    0.00       1/1006        hal_ks_unlock [164]
                0.00    0.00       1/1005        hal_ks_cache_mark_used [165]
                0.00    0.00       1/1           ks_volatile_set_owner [206]
-----------------------------------------------
                0.04    0.00    1000/1000        rsa_crt [13]
[91]     0.0    0.04    0.00    1000         s_fp_add [91]
-----------------------------------------------
                0.00    0.01    2048/4096        hal_hmac_initialize [69]
                0.00    0.01    2048/4096        hal_hmac_finalize [53]
[92]     0.0    0.01    0.03    4096         hal_hash_initialize [92]
                0.03    0.00    4096/1869115     memset [22]
-----------------------------------------------
                0.03    0.00    4096/4096        hal_hash_finalize [67]
[93]     0.0    0.03    0.00    4096         swytebop [93]
-----------------------------------------------
                0.00    0.00      24/18055       hal_asn1_encode_integer [98]
                0.01    0.00    5000/18055       fp_div [17]
                0.02    0.00   13031/18055       fp_unsigned_bin_size [95]
[94]     0.0    0.02    0.00   18055         fp_count_bits [94]
-----------------------------------------------
                0.00    0.00      31/13031       hal_asn1_encode_integer [98]
                0.00    0.00    1000/13031       extract_component [111]
                0.00    0.00    1000/13031       create_blinding_factors [27]
                0.00    0.01    5000/13031       modexp2 [25]
                0.00    0.01    6000/13031       unpack_fp [23]
[95]     0.0    0.00    0.02   13031         fp_unsigned_bin_size [95]
                0.02    0.00   13031/18055       fp_count_bits [94]
-----------------------------------------------
                0.00    0.02       2/2           pkey_local_sign_rsa [11]
[96]     0.0    0.00    0.02       2         hal_rsa_private_key_to_der_extra [96]
                0.00    0.02       2/2           hal_rsa_private_key_to_der_internal [97]
-----------------------------------------------
                0.00    0.02       2/2           hal_rsa_private_key_to_der_extra [96]
[97]     0.0    0.00    0.02       2         hal_rsa_private_key_to_der_internal [97]
                0.00    0.02      27/31          hal_asn1_encode_integer [98]
                0.00    0.00       3/3           hal_asn1_encode_pkcs8_privatekeyinfo [105]
                0.00    0.00       4/55272       memcpy [39]
                0.00    0.00       3/1869115     memset [22]
                0.00    0.00      15/66          hal_asn1_encode_header [187]
-----------------------------------------------
                0.00    0.00       4/31          hal_asn1_encode_pkcs8_privatekeyinfo [105]
                0.00    0.02      27/31          hal_rsa_private_key_to_der_internal [97]
[98]     0.0    0.00    0.02      31         hal_asn1_encode_integer [98]
                0.00    0.02      10/6010        fp_to_unsigned_bin [24]
                0.00    0.00      31/13031       fp_unsigned_bin_size [95]
                0.00    0.00      24/18055       fp_count_bits [94]
                0.00    0.00      31/3031        fp_cmp_d [108]
                0.00    0.00      31/66          hal_asn1_encode_header [187]
-----------------------------------------------
                0.00    0.00    1003/3003        hal_core_alloc [104]
                0.01    0.00    2000/3003        hal_core_alloc2 [101]
[99]     0.0    0.01    0.00    3003         hal_core_alloc_no_wait [99]
                0.00    0.00    8006/8006        hal_core_find [152]
                0.00    0.00    3003/11032       hal_critical_section_start [151]
                0.00    0.00    3003/11032       hal_critical_section_end [150]
-----------------------------------------------
                0.00    0.00       1/3003        hal_get_random [128]
                0.00    0.00       2/3003        hal_aes_keywrap [82]
                0.00    0.00    1000/3003        hal_aes_keyunwrap [8]
                0.00    0.00    2000/3003        hal_modexp2 [63]
[100]    0.0    0.00    0.01    3003         hal_core_free [100]
                0.00    0.01    3003/7102094     hal_task_yield [20]
                0.00    0.00    3003/11032       hal_critical_section_start [151]
                0.00    0.00    3003/11032       hal_critical_section_end [150]
-----------------------------------------------
                0.00    0.01    1000/1000        hal_modexp2 [63]
[101]    0.0    0.00    0.01    1000         hal_core_alloc2 [101]
                0.01    0.00    2000/3003        hal_core_alloc_no_wait [99]
-----------------------------------------------
                0.01    0.00    5000/5000        fp_div [17]
[102]    0.0    0.01    0.00    5000         fp_cmp [102]
-----------------------------------------------
                0.00    0.00       1/4014        hal_xdr_encode_variable_opaque [136]
                0.00    0.00       1/4014        pkey_load [86]
                0.00    0.00    1000/4014        pkey_sign [4]
                0.00    0.00    3012/4014        hal_rpc_server_dispatch [3]
[103]    0.0    0.00    0.00    4014         hal_xdr_encode_int [103]
-----------------------------------------------
                0.00    0.00       1/1003        hal_get_random [128]
                0.00    0.00       2/1003        hal_aes_keywrap [82]
                0.00    0.00    1000/1003        hal_aes_keyunwrap [8]
[104]    0.0    0.00    0.00    1003         hal_core_alloc [104]
                0.00    0.00    1003/3003        hal_core_alloc_no_wait [99]
-----------------------------------------------
                0.00    0.00       3/3           hal_rsa_private_key_to_der_internal [97]
[105]    0.0    0.00    0.00       3         hal_asn1_encode_pkcs8_privatekeyinfo [105]
                0.00    0.00       4/31          hal_asn1_encode_integer [98]
                0.00    0.00       1/55272       memcpy [39]
                0.00    0.00       1/2007        memmove [76]
                0.00    0.00       4/1869115     memset [22]
                0.00    0.00      20/66          hal_asn1_encode_header [187]
-----------------------------------------------
                0.00    0.00       2/1002        hal_aes_keywrap [82]
                0.00    0.00    1000/1002        hal_aes_keyunwrap [8]
[106]    0.0    0.00    0.00    1002         load_kek [106]
                0.00    0.00    3006/5642554     hal_io_write [36]
-----------------------------------------------
                0.00    0.00    2046/2046        hal_pbkdf2 [41]
[107]    0.0    0.00    0.00    2046         hal_task_yield_maybe [107]
                0.00    0.00    2046/2046        task_yield_maybe [114]
-----------------------------------------------
                0.00    0.00      31/3031        hal_asn1_encode_integer [98]
                0.00    0.00    3000/3031        rsa_crt [13]
[108]    0.0    0.00    0.00    3031         fp_cmp_d [108]
-----------------------------------------------
                0.00    0.00    1004/2008        RxCallback [117]
                0.00    0.00    1004/2008        dispatch_task [2]
[109]    0.0    0.00    0.00    2008         ibuf_put [109]
                0.00    0.00    2008/11032       hal_critical_section_start [151]
                0.00    0.00    2008/11032       hal_critical_section_end [150]
-----------------------------------------------
                0.00    0.00       1/1005        uart_cli_read [146]
                0.00    0.00    1004/1005        dispatch_task [2]
[110]    0.0    0.00    0.00    1005         task_sleep [110]
                0.00    0.00    1005/7103109     task_yield [21]
-----------------------------------------------
                0.00    0.00    1000/1000        hal_rsa_key_get_modulus [112]
[111]    0.0    0.00    0.00    1000         extract_component [111]
                0.00    0.00    1000/13031       fp_unsigned_bin_size [95]
-----------------------------------------------
                0.00    0.00    1000/1000        pkey_local_sign_rsa [11]
[112]    0.0    0.00    0.00    1000         hal_rsa_key_get_modulus [112]
                0.00    0.00    1000/1000        extract_component [111]
-----------------------------------------------
                0.00    0.00    1469/1469        rsa_crt [13]
[113]    0.0    0.00    0.00    1469         fp_add [113]
                0.00    0.00     469/761161      fp_cmp_mag [61]
-----------------------------------------------
                0.00    0.00    2046/2046        hal_task_yield_maybe [107]
[114]    0.0    0.00    0.00    2046         task_yield_maybe [114]
                0.00    0.00    2046/9603267     HAL_GetTick [50]
                0.00    0.00      10/7103109     task_yield [21]
-----------------------------------------------
                0.00    0.00  238546/238546      HAL_SYSTICK_IRQHandler [116]
[115]    0.0    0.00    0.00  238546         HAL_SYSTICK_Callback [115]
                0.00    0.00   80300/80300       RxCallback [117]
-----------------------------------------------
                0.00    0.00  238546/238546      SysTick_Handler [118]
[116]    0.0    0.00    0.00  238546         HAL_SYSTICK_IRQHandler [116]
                0.00    0.00  238546/238546      HAL_SYSTICK_Callback [115]
                0.00    0.00    1002/2004        hal_xdr_decode_fixed_opaque_ptr [159]
-----------------------------------------------
                0.00    0.00   80300/80300       HAL_SYSTICK_Callback [115]
[117]    0.0    0.00    0.00   80300         RxCallback [117]
                0.00    0.00    1004/2008        ibuf_put [109]
                0.00    0.00   80300/80300       hal_slip_process_char [149]
                0.00    0.00    1004/2008        ibuf_get [156]
                0.00    0.00    1004/1004        task_next_waiting [170]
                0.00    0.00    1004/1017        task_wake [161]
-----------------------------------------------
                                                 <spontaneous>
[118]    0.0    0.00    0.00                 SysTick_Handler [118]
                0.00    0.00  238546/238546      HAL_SYSTICK_IRQHandler [116]
                0.00    0.00  238546/238546      HAL_IncTick [148]
                0.00    0.00    1002/7015        hal_xdr_decode_int [155]
                0.00    0.00       1/1003        hal_xdr_decode_variable_opaque_ptr [171]
-----------------------------------------------
                0.00    0.00       1/1           pkey_local_load [88]
[119]    0.0    0.00    0.00       1         hal_asn1_guess_key_type [119]
                0.00    0.00       1/1001        hal_asn1_decode_pkcs8_privatekeyinfo [64]
                0.00    0.00       1/2004        memcmp [160]
-----------------------------------------------
                                                 <spontaneous>
[120]    0.0    0.00    0.00                 cli_loop [120]
                0.00    0.00       1/1           cli_run_command [121]
                0.00    0.00      15/17          uart_cli_write [135]
                0.00    0.00       1/1           show_prompt [144]
                0.00    0.00       1/1869115     memset [22]
                0.00    0.00      13/13          uart_cli_read [146]
                0.00    0.00       1/1           cli_add_history [195]
-----------------------------------------------
                0.00    0.00       1/1           cli_loop [120]
[121]    0.0    0.00    0.00       1         cli_run_command [121]
                0.00    0.00       1/1           cli_find_command [123]
                0.00    0.00       1/1           cli_parse_line [125]
                0.00    0.00       1/1869115     memset [22]
-----------------------------------------------
                0.00    0.00       1/1           cli_find_command [123]
[122]    0.0    0.00    0.00       1         cli_command_name [122]
                0.00    0.00       2/55272       memcpy [39]
                0.00    0.00       1/2007        memmove [76]
                0.00    0.00       1/1869115     memset [22]
-----------------------------------------------
                                   1             cli_find_command [123]
                0.00    0.00       1/1           cli_run_command [121]
[123]    0.0    0.00    0.00       1+1       cli_find_command [123]
                0.00    0.00       1/1           cli_command_name [122]
                0.00    0.00       1/1           cmd_profile_stop [196]
                                   1             cli_find_command [123]
-----------------------------------------------
                0.00    0.00       1/1           hal_ks_rewrite_der [89]
[124]    0.0    0.00    0.00       1         hal_ks_block_update [124]
                0.00    0.00       1/2           ks_volatile_write [126]
                0.00    0.00       1/1           hal_ks_index_replace [140]
                0.00    0.00       1/2           ks_volatile_zero [143]
                0.00    0.00       1/3           ks_volatile_erase [141]
                0.00    0.00       1/2           hal_ks_cache_release [191]
                0.00    0.00       1/1           ks_volatile_deprecate [204]
                0.00    0.00       1/1           ks_volatile_copy_owner [203]
                0.00    0.00       1/1005        hal_ks_cache_mark_used [165]
-----------------------------------------------
                0.00    0.00       1/1           cli_run_command [121]
[125]    0.0    0.00    0.00       1         cli_parse_line [125]
                0.00    0.00       2/55272       memcpy [39]
                0.00    0.00       1/1869115     memset [22]
-----------------------------------------------
                0.00    0.00       1/2           hal_ks_block_update [124]
                0.00    0.00       1/2           hal_ks_store [90]
[126]    0.0    0.00    0.00       2         ks_volatile_write [126]
                0.00    0.00       2/55272       memcpy [39]
-----------------------------------------------
                0.00    0.00       1/1           hal_rpc_get_random [129]
[127]    0.0    0.00    0.00       1         get_random [127]
                0.00    0.00       1/1           hal_get_random [128]
-----------------------------------------------
                0.00    0.00       1/1           get_random [127]
[128]    0.0    0.00    0.00       1         hal_get_random [128]
                0.00    0.00       4/1708858     hal_io_wait [14]
                0.00    0.00       4/15832758     hal_io_read [18]
                0.00    0.00       1/1003        hal_core_alloc [104]
                0.00    0.00       1/3003        hal_core_free [100]
-----------------------------------------------
                0.00    0.00       1/1           hal_uuid_gen [130]
[129]    0.0    0.00    0.00       1         hal_rpc_get_random [129]
                0.00    0.00       1/1           get_random [127]
-----------------------------------------------
                0.00    0.00       1/1           pkey_local_load [88]
[130]    0.0    0.00    0.00       1         hal_uuid_gen [130]
                0.00    0.00       1/1           hal_rpc_get_random [129]
-----------------------------------------------
                0.00    0.00       1/1           pkey_delete [132]
[131]    0.0    0.00    0.00       1         hal_rpc_pkey_delete [131]
                0.00    0.00       1/1           pkey_local_delete [133]
-----------------------------------------------
                0.00    0.00       1/1           hal_rpc_server_dispatch [3]
[132]    0.0    0.00    0.00       1         pkey_delete [132]
                0.00    0.00       1/1           hal_rpc_pkey_delete [131]
                0.00    0.00       1/7015        hal_xdr_decode_int [155]
-----------------------------------------------
                0.00    0.00       1/1           hal_rpc_pkey_delete [131]
[133]    0.0    0.00    0.00       1         pkey_local_delete [133]
                0.00    0.00       1/1           hal_ks_delete [134]
                0.00    0.00       1/1869115     memset [22]
                0.00    0.00       2/11032       hal_critical_section_start [151]
                0.00    0.00       2/11032       hal_critical_section_end [150]
                0.00    0.00       1/2           hal_rpc_is_logged_in [193]
                0.00    0.00       1/1           pkey_local_get_key_type [209]
-----------------------------------------------
                0.00    0.00       1/1           pkey_local_delete [133]
[134]    0.0    0.00    0.00       1         hal_ks_delete [134]
                0.00    0.00       1/1           hal_ks_index_delete [139]
                0.00    0.00       1/2           ks_volatile_zero [143]
                0.00    0.00       1/3           ks_volatile_erase [141]
                0.00    0.00       1/1006        hal_ks_lock [163]
                0.00    0.00       1/1002        ks_volatile_test_owner [174]
                0.00    0.00       1/1006        hal_ks_unlock [164]
                0.00    0.00       1/1002        hal_ks_cache_find_block [172]
                0.00    0.00       1/2           hal_ks_cache_release [191]
-----------------------------------------------
                0.00    0.00       2/17          show_prompt [144]
                0.00    0.00      15/17          cli_loop [120]
[135]    0.0    0.00    0.00      17         uart_cli_write [135]
                0.00    0.00      17/275097      uart_send_bytes2 [51]
-----------------------------------------------
                0.00    0.00       1/1           pkey_load [86]
[136]    0.0    0.00    0.00       1         hal_xdr_encode_variable_opaque [136]
                0.00    0.00       1/1           hal_xdr_encode_fixed_opaque [137]
                0.00    0.00       1/4014        hal_xdr_encode_int [103]
-----------------------------------------------
                0.00    0.00       1/1           hal_xdr_encode_variable_opaque [136]
[137]    0.0    0.00    0.00       1         hal_xdr_encode_fixed_opaque [137]
                0.00    0.00       1/55272       memcpy [39]
-----------------------------------------------
                0.00    0.00       1/1           hal_ks_store [90]
[138]    0.0    0.00    0.00       1         hal_ks_index_add [138]
                0.00    0.00       1/2007        memmove [76]
                0.00    0.00       2/1007        hal_ks_index_fsck [162]
                0.00    0.00       1/1004        ks_find [166]
-----------------------------------------------
                0.00    0.00       1/1           hal_ks_delete [134]
[139]    0.0    0.00    0.00       1         hal_ks_index_delete [139]
                0.00    0.00       1/2007        memmove [76]
                0.00    0.00       2/1007        hal_ks_index_fsck [162]
                0.00    0.00       1/1004        ks_find [166]
-----------------------------------------------
                0.00    0.00       1/1           hal_ks_block_update [124]
[140]    0.0    0.00    0.00       1         hal_ks_index_replace [140]
                0.00    0.00       1/2007        memmove [76]
                0.00    0.00       2/1007        hal_ks_index_fsck [162]
                0.00    0.00       1/1004        ks_find [166]
-----------------------------------------------
                0.00    0.00       1/3           hal_ks_block_update [124]
                0.00    0.00       1/3           hal_ks_store [90]
                0.00    0.00       1/3           hal_ks_delete [134]
[141]    0.0    0.00    0.00       3         ks_volatile_erase [141]
                0.00    0.00       3/1869115     memset [22]
-----------------------------------------------
                                                 <spontaneous>
[142]    0.0    0.00    0.00                 _cleanup_r [142]
                0.00    0.00       3/1869115     memset [22]
-----------------------------------------------
                0.00    0.00       1/2           hal_ks_block_update [124]
                0.00    0.00       1/2           hal_ks_delete [134]
[143]    0.0    0.00    0.00       2         ks_volatile_zero [143]
                0.00    0.00       2/1869115     memset [22]
-----------------------------------------------
                0.00    0.00       1/1           cli_loop [120]
[144]    0.0    0.00    0.00       1         show_prompt [144]
                0.00    0.00       2/17          uart_cli_write [135]
-----------------------------------------------
                                                 <spontaneous>
[145]    0.0    0.00    0.00                 _mcleanup [145]
                0.00    0.00       1/1869115     memset [22]
-----------------------------------------------
                0.00    0.00      13/13          cli_loop [120]
[146]    0.0    0.00    0.00      13         uart_cli_read [146]
                0.00    0.00       1/1005        task_sleep [110]
-----------------------------------------------
                0.00    0.00 7111036/7111036     task_yield [21]
[147]    0.0    0.00    0.00 7111036         default_idle_hook [147]
-----------------------------------------------
                0.00    0.00  238546/238546      SysTick_Handler [118]
[148]    0.0    0.00    0.00  238546         HAL_IncTick [148]
-----------------------------------------------
                0.00    0.00   80300/80300       RxCallback [117]
[149]    0.0    0.00    0.00   80300         hal_slip_process_char [149]
-----------------------------------------------
                0.00    0.00       1/11032       login [42]
                0.00    0.00       1/11032       pkey_local_get_key_type [209]
                0.00    0.00       1/11032       pkey_local_load [88]
                0.00    0.00       1/11032       hal_pkey_logout [200]
                0.00    0.00       2/11032       is_logged_in [194]
                0.00    0.00       2/11032       logout [207]
                0.00    0.00       2/11032       pkey_local_delete [133]
                0.00    0.00    1000/11032       pkey_local_sign [6]
                0.00    0.00    2008/11032       ibuf_put [109]
                0.00    0.00    2008/11032       ibuf_get [156]
                0.00    0.00    3003/11032       hal_core_alloc_no_wait [99]
                0.00    0.00    3003/11032       hal_core_free [100]
[150]    0.0    0.00    0.00   11032         hal_critical_section_end [150]
-----------------------------------------------
                0.00    0.00       1/11032       login [42]
                0.00    0.00       1/11032       pkey_local_get_key_type [209]
                0.00    0.00       1/11032       pkey_local_load [88]
                0.00    0.00       1/11032       hal_pkey_logout [200]
                0.00    0.00       2/11032       is_logged_in [194]
                0.00    0.00       2/11032       logout [207]
                0.00    0.00       2/11032       pkey_local_delete [133]
                0.00    0.00    1000/11032       pkey_local_sign [6]
                0.00    0.00    2008/11032       ibuf_put [109]
                0.00    0.00    2008/11032       ibuf_get [156]
                0.00    0.00    3003/11032       hal_core_alloc_no_wait [99]
                0.00    0.00    3003/11032       hal_core_free [100]
[151]    0.0    0.00    0.00   11032         hal_critical_section_start [151]
-----------------------------------------------
                0.00    0.00    8006/8006        hal_core_alloc_no_wait [99]
[152]    0.0    0.00    0.00    8006         hal_core_find [152]
                0.00    0.00    8006/8006        hal_core_iterate [153]
-----------------------------------------------
                0.00    0.00    8006/8006        hal_core_find [152]
[153]    0.0    0.00    0.00    8006         hal_core_iterate [153]
-----------------------------------------------
                0.00    0.00    1004/7017        hal_rpc_server_dispatch [3]
                0.00    0.00    6013/7017        hal_xdr_decode_int [155]
[154]    0.0    0.00    0.00    7017         hal_xdr_decode_int_peek [154]
-----------------------------------------------
                0.00    0.00       1/7015        pkey_delete [132]
                0.00    0.00       1/7015        logout [208]
                0.00    0.00       2/7015        login [56]
                0.00    0.00       3/7015        pkey_load [86]
                0.00    0.00    1002/7015        SysTick_Handler [118]
                0.00    0.00    1002/7015        hal_xdr_decode_variable_opaque_ptr [171]
                0.00    0.00    1004/7015        hal_rpc_server_dispatch [3]
                0.00    0.00    4000/7015        pkey_sign [4]
[155]    0.0    0.00    0.00    7015         hal_xdr_decode_int [155]
                0.00    0.00    6013/7017        hal_xdr_decode_int_peek [154]
-----------------------------------------------
                0.00    0.00    1004/2008        RxCallback [117]
                0.00    0.00    1004/2008        dispatch_task [2]
[156]    0.0    0.00    0.00    2008         ibuf_get [156]
                0.00    0.00    2008/11032       hal_critical_section_start [151]
                0.00    0.00    2008/11032       hal_critical_section_end [150]
-----------------------------------------------
                0.00    0.00    1000/2006        hal_rsa_bf_lock [177]
                0.00    0.00    1006/2006        hal_ks_lock [163]
[157]    0.0    0.00    0.00    2006         task_mutex_lock [157]
-----------------------------------------------
                0.00    0.00    1000/2006        hal_rsa_bf_unlock [178]
                0.00    0.00    1006/2006        hal_ks_unlock [164]
[158]    0.0    0.00    0.00    2006         task_mutex_unlock [158]
-----------------------------------------------
                0.00    0.00    1002/2004        HAL_SYSTICK_IRQHandler [116]
                0.00    0.00    1002/2004        hal_xdr_decode_variable_opaque_ptr [171]
[159]    0.0    0.00    0.00    2004         hal_xdr_decode_fixed_opaque_ptr [159]
-----------------------------------------------
                0.00    0.00       1/2004        hal_asn1_guess_key_type [119]
                0.00    0.00    1000/2004        hal_rsa_private_key_from_der [33]
                0.00    0.00    1003/2004        ks_find [166]
[160]    0.0    0.00    0.00    2004         memcmp [160]
-----------------------------------------------
                0.00    0.00      13/1017        HAL_UART1_RxCpltCallback [188]
                0.00    0.00    1004/1017        RxCallback [117]
[161]    0.0    0.00    0.00    1017         task_wake [161]
-----------------------------------------------
                0.00    0.00       2/1007        hal_ks_index_add [138]
                0.00    0.00       2/1007        hal_ks_index_delete [139]
                0.00    0.00       2/1007        hal_ks_index_replace [140]
                0.00    0.00    1001/1007        hal_ks_index_find [176]
[162]    0.0    0.00    0.00    1007         hal_ks_index_fsck [162]
-----------------------------------------------
                0.00    0.00       1/1006        hal_ks_store [90]
                0.00    0.00       1/1006        hal_ks_delete [134]
                0.00    0.00       1/1006        hal_ks_rewrite_der [89]
                0.00    0.00       1/1006        hal_get_pin [197]
                0.00    0.00       2/1006        hal_ks_logout [192]
                0.00    0.00    1000/1006        hal_ks_fetch [7]
[163]    0.0    0.00    0.00    1006         hal_ks_lock [163]
                0.00    0.00    1006/2006        task_mutex_lock [157]
-----------------------------------------------
                0.00    0.00       1/1006        hal_ks_store [90]
                0.00    0.00       1/1006        hal_ks_delete [134]
                0.00    0.00       1/1006        hal_ks_rewrite_der [89]
                0.00    0.00       1/1006        hal_get_pin [197]
                0.00    0.00       2/1006        hal_ks_logout [192]
                0.00    0.00    1000/1006        hal_ks_fetch [7]
[164]    0.0    0.00    0.00    1006         hal_ks_unlock [164]
                0.00    0.00    1006/2006        task_mutex_unlock [158]
-----------------------------------------------
                0.00    0.00       1/1005        hal_ks_block_update [124]
                0.00    0.00       1/1005        hal_ks_store [90]
                0.00    0.00       1/1005        hal_ks_rewrite_der [89]
                0.00    0.00       2/1005        hal_ks_cache_release [191]
                0.00    0.00    1000/1005        hal_ks_fetch [7]
[165]    0.0    0.00    0.00    1005         hal_ks_cache_mark_used [165]
-----------------------------------------------
                0.00    0.00       1/1004        hal_ks_index_add [138]
                0.00    0.00       1/1004        hal_ks_index_delete [139]
                0.00    0.00       1/1004        hal_ks_index_replace [140]
                0.00    0.00    1001/1004        hal_ks_index_find [176]
[166]    0.0    0.00    0.00    1004         ks_find [166]
                0.00    0.00    1003/2004        memcmp [160]
-----------------------------------------------
                0.00    0.00    1004/1004        task_next_waiting [170]
[167]    0.0    0.00    0.00    1004         task_get_func [167]
-----------------------------------------------
                0.00    0.00    1004/1004        task_next_waiting [170]
[168]    0.0    0.00    0.00    1004         task_get_state [168]
-----------------------------------------------
                0.00    0.00    1004/1004        task_next_waiting [170]
[169]    0.0    0.00    0.00    1004         task_iterate [169]
-----------------------------------------------
                0.00    0.00    1004/1004        RxCallback [117]
[170]    0.0    0.00    0.00    1004         task_next_waiting [170]
                0.00    0.00    1004/1004        task_iterate [169]
                0.00    0.00    1004/1004        task_get_func [167]
                0.00    0.00    1004/1004        task_get_state [168]
-----------------------------------------------
                0.00    0.00       1/1003        SysTick_Handler [118]
                0.00    0.00       1/1003        pkey_load [86]
                0.00    0.00       1/1003        login [56]
                0.00    0.00    1000/1003        pkey_sign [4]
[171]    0.0    0.00    0.00    1003         hal_xdr_decode_variable_opaque_ptr [171]
                0.00    0.00    1002/7015        hal_xdr_decode_int [155]
                0.00    0.00    1002/2004        hal_xdr_decode_fixed_opaque_ptr [159]
-----------------------------------------------
                0.00    0.00       1/1002        hal_ks_delete [134]
                0.00    0.00    1001/1002        hal_ks_block_read_cached [175]
[172]    0.0    0.00    0.00    1002         hal_ks_cache_find_block [172]
-----------------------------------------------
                0.00    0.00    1002/1002        hal_mkm_volatile_read [72]
[173]    0.0    0.00    0.00    1002         hal_mkm_volatile_init [173]
-----------------------------------------------
                0.00    0.00       1/1002        hal_ks_delete [134]
                0.00    0.00       1/1002        hal_ks_rewrite_der [89]
                0.00    0.00    1000/1002        hal_ks_fetch [7]
[174]    0.0    0.00    0.00    1002         ks_volatile_test_owner [174]
-----------------------------------------------
                0.00    0.00       1/1001        hal_ks_rewrite_der [89]
                0.00    0.00    1000/1001        hal_ks_fetch [7]
[175]    0.0    0.00    0.00    1001         hal_ks_block_read_cached [175]
                0.00    0.00    1001/1002        hal_ks_cache_find_block [172]
-----------------------------------------------
                0.00    0.00       1/1001        hal_ks_rewrite_der [89]
                0.00    0.00    1000/1001        hal_ks_fetch [7]
[176]    0.0    0.00    0.00    1001         hal_ks_index_find [176]
                0.00    0.00    1001/1007        hal_ks_index_fsck [162]
                0.00    0.00    1001/1004        ks_find [166]
-----------------------------------------------
                0.00    0.00    1000/1000        create_blinding_factors [27]
[177]    0.0    0.00    0.00    1000         hal_rsa_bf_lock [177]
                0.00    0.00    1000/2006        task_mutex_lock [157]
-----------------------------------------------
                0.00    0.00    1000/1000        create_blinding_factors [27]
[178]    0.0    0.00    0.00    1000         hal_rsa_bf_unlock [178]
                0.00    0.00    1000/2006        task_mutex_unlock [158]
-----------------------------------------------
                0.00    0.00    1000/1000        pkey_local_sign_rsa [11]
[179]    0.0    0.00    0.00    1000         hal_rsa_key_needs_saving [179]
-----------------------------------------------
                0.00    0.00      13/170         DMA2_Stream2_IRQHandler [215]
                0.00    0.00     157/170         DMA1_Stream5_IRQHandler [214]
[180]    0.0    0.00    0.00     170         HAL_DMA_IRQHandler [180]
                0.00    0.00      92/92          UART_DMAReceiveCplt [182]
                0.00    0.00      78/78          UART_DMARxHalfCplt [186]
-----------------------------------------------
                0.00    0.00      92/92          UART_DMAReceiveCplt [182]
[181]    0.0    0.00    0.00      92         HAL_UART_RxCpltCallback [181]
                0.00    0.00      79/79          HAL_UART2_RxCpltCallback [183]
                0.00    0.00      13/13          HAL_UART1_RxCpltCallback [188]
-----------------------------------------------
                0.00    0.00      92/92          HAL_DMA_IRQHandler [180]
[182]    0.0    0.00    0.00      92         UART_DMAReceiveCplt [182]
                0.00    0.00      92/92          HAL_UART_RxCpltCallback [181]
-----------------------------------------------
                0.00    0.00      79/79          HAL_UART_RxCpltCallback [181]
[183]    0.0    0.00    0.00      79         HAL_UART2_RxCpltCallback [183]
-----------------------------------------------
                0.00    0.00      78/78          HAL_UART_RxHalfCpltCallback [185]
[184]    0.0    0.00    0.00      78         HAL_UART2_RxHalfCpltCallback [184]
-----------------------------------------------
                0.00    0.00      78/78          UART_DMARxHalfCplt [186]
[185]    0.0    0.00    0.00      78         HAL_UART_RxHalfCpltCallback [185]
                0.00    0.00      78/78          HAL_UART2_RxHalfCpltCallback [184]
-----------------------------------------------
                0.00    0.00      78/78          HAL_DMA_IRQHandler [180]
[186]    0.0    0.00    0.00      78         UART_DMARxHalfCplt [186]
                0.00    0.00      78/78          HAL_UART_RxHalfCpltCallback [185]
-----------------------------------------------
                0.00    0.00      15/66          hal_rsa_private_key_to_der_internal [97]
                0.00    0.00      20/66          hal_asn1_encode_pkcs8_privatekeyinfo [105]
                0.00    0.00      31/66          hal_asn1_encode_integer [98]
[187]    0.0    0.00    0.00      66         hal_asn1_encode_header [187]
-----------------------------------------------
                0.00    0.00      13/13          HAL_UART_RxCpltCallback [181]
[188]    0.0    0.00    0.00      13         HAL_UART1_RxCpltCallback [188]
                0.00    0.00      13/1017        task_wake [161]
-----------------------------------------------
                0.00    0.00       2/2           task_yield [21]
[189]    0.0    0.00    0.00       2         check_stack [189]
-----------------------------------------------
                0.00    0.00       2/2           hal_aes_keywrap [82]
[190]    0.0    0.00    0.00       2         hal_aes_keywrap_ciphertext_length [190]
-----------------------------------------------
                0.00    0.00       1/2           hal_ks_block_update [124]
                0.00    0.00       1/2           hal_ks_delete [134]
[191]    0.0    0.00    0.00       2         hal_ks_cache_release [191]
                0.00    0.00       2/1005        hal_ks_cache_mark_used [165]
-----------------------------------------------
                0.00    0.00       2/2           hal_pkey_logout [200]
[192]    0.0    0.00    0.00       2         hal_ks_logout [192]
                0.00    0.00       2/1006        hal_ks_lock [163]
                0.00    0.00       2/1006        hal_ks_unlock [164]
                0.00    0.00       1/1           ks_token_logout [202]
                0.00    0.00       1/1           ks_volatile_logout [205]
-----------------------------------------------
                0.00    0.00       1/2           pkey_local_delete [133]
                0.00    0.00       1/2           pkey_local_load [88]
[193]    0.0    0.00    0.00       2         hal_rpc_is_logged_in [193]
                0.00    0.00       2/2           is_logged_in [194]
-----------------------------------------------
                0.00    0.00       2/2           hal_rpc_is_logged_in [193]
[194]    0.0    0.00    0.00       2         is_logged_in [194]
                0.00    0.00       2/11032       hal_critical_section_start [151]
                0.00    0.00       2/11032       hal_critical_section_end [150]
-----------------------------------------------
                0.00    0.00       1/1           cli_loop [120]
[195]    0.0    0.00    0.00       1         cli_add_history [195]
-----------------------------------------------
                0.00    0.00       1/1           cli_find_command [123]
[196]    0.0    0.00    0.00       1         cmd_profile_stop [196]
-----------------------------------------------
                0.00    0.00       1/1           login [42]
[197]    0.0    0.00    0.00       1         hal_get_pin [197]
                0.00    0.00       1/1006        hal_ks_lock [163]
                0.00    0.00       1/1006        hal_ks_unlock [164]
-----------------------------------------------
                0.00    0.00       1/1           hal_ks_rewrite_der [89]
[198]    0.0    0.00    0.00       1         hal_ks_attribute_scan [198]
-----------------------------------------------
                0.00    0.00       1/1           hal_ks_store [90]
[199]    0.0    0.00    0.00       1         hal_ks_cache_pick_lru [199]
-----------------------------------------------
                0.00    0.00       1/1           logout [207]
[200]    0.0    0.00    0.00       1         hal_pkey_logout [200]
                0.00    0.00       2/2           hal_ks_logout [192]
                0.00    0.00       1/11032       hal_critical_section_start [151]
                0.00    0.00       1/11032       hal_critical_section_end [150]
-----------------------------------------------
                0.00    0.00       1/1           logout [208]
[201]    0.0    0.00    0.00       1         hal_rpc_logout [201]
                0.00    0.00       1/1           logout [207]
-----------------------------------------------
                0.00    0.00       1/1           hal_ks_logout [192]
[202]    0.0    0.00    0.00       1         ks_token_logout [202]
-----------------------------------------------
                0.00    0.00       1/1           hal_ks_block_update [124]
[203]    0.0    0.00    0.00       1         ks_volatile_copy_owner [203]
-----------------------------------------------
                0.00    0.00       1/1           hal_ks_block_update [124]
[204]    0.0    0.00    0.00       1         ks_volatile_deprecate [204]
-----------------------------------------------
                0.00    0.00       1/1           hal_ks_logout [192]
[205]    0.0    0.00    0.00       1         ks_volatile_logout [205]
-----------------------------------------------
                0.00    0.00       1/1           hal_ks_store [90]
[206]    0.0    0.00    0.00       1         ks_volatile_set_owner [206]
-----------------------------------------------
                0.00    0.00       1/1           hal_rpc_logout [201]
[207]    0.0    0.00    0.00       1         logout [207]
                0.00    0.00       2/11032       hal_critical_section_start [151]
                0.00    0.00       2/11032       hal_critical_section_end [150]
                0.00    0.00       1/1           hal_pkey_logout [200]
-----------------------------------------------
                0.00    0.00       1/1           hal_rpc_server_dispatch [3]
[208]    0.0    0.00    0.00       1         logout [208]
                0.00    0.00       1/7015        hal_xdr_decode_int [155]
                0.00    0.00       1/1           hal_rpc_logout [201]
-----------------------------------------------
                0.00    0.00       1/1           pkey_local_delete [133]
[209]    0.0    0.00    0.00       1         pkey_local_get_key_type [209]
                0.00    0.00       1/11032       hal_critical_section_start [151]
                0.00    0.00       1/11032       hal_critical_section_end [150]
-----------------------------------------------

 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

 [180] HAL_DMA_IRQHandler     [98] hal_asn1_encode_integer [149] hal_slip_process_char
  [37] HAL_GPIO_ReadPin      [105] hal_asn1_encode_pkcs8_privatekeyinfo [46] hal_slip_send
  [50] HAL_GetTick           [119] hal_asn1_guess_key_type [47] hal_slip_send_char
 [148] HAL_IncTick           [104] hal_core_alloc         [20] hal_task_yield
 [115] HAL_SYSTICK_Callback  [101] hal_core_alloc2       [107] hal_task_yield_maybe
 [116] HAL_SYSTICK_IRQHandler [99] hal_core_alloc_no_wait (core.c) [130] hal_uuid_gen
 [188] HAL_UART1_RxCpltCallback [152] hal_core_find      [159] hal_xdr_decode_fixed_opaque_ptr
 [183] HAL_UART2_RxCpltCallback [100] hal_core_free      [155] hal_xdr_decode_int
 [184] HAL_UART2_RxHalfCpltCallback [153] hal_core_iterate [154] hal_xdr_decode_int_peek
  [85] HAL_UART_GetState     [150] hal_critical_section_end [171] hal_xdr_decode_variable_opaque_ptr
 [181] HAL_UART_RxCpltCallback [151] hal_critical_section_start [137] hal_xdr_encode_fixed_opaque
 [185] HAL_UART_RxHalfCpltCallback [197] hal_get_pin     [103] hal_xdr_encode_int
  [52] HAL_UART_Transmit     [128] hal_get_random        [136] hal_xdr_encode_variable_opaque
 [117] RxCallback (hsm.c)     [67] hal_hash_finalize      [58] hash_write_block (hash.c)
 [182] UART_DMAReceiveCplt (stm32f4xx_hal_uart.c) [92] hal_hash_initialize [156] ibuf_get (hsm.c)
 [186] UART_DMARxHalfCplt (stm32f4xx_hal_uart.c) [54] hal_hash_update [109] ibuf_put (hsm.c)
  [60] UART_WaitOnFlagUntilTimeout (stm32f4xx_hal_uart.c) [53] hal_hmac_finalize [194] is_logged_in (rpc_misc.c)
  [84] __aeabi_uldivmod       [69] hal_hmac_initialize   [166] ks_find (ks_index.c)
  [10] __gnu_mcount_nc        [74] hal_hmac_update       [202] ks_token_logout (ks_token.c)
  [73] __udivmoddi4           [18] hal_io_read           [203] ks_volatile_copy_owner (ks_volatile.c)
   [1] _mcount_internal       [14] hal_io_wait           [204] ks_volatile_deprecate (ks_volatile.c)
 [189] check_stack (task.c)   [15] hal_io_wait2          [141] ks_volatile_erase (ks_volatile.c)
 [195] cli_add_history (libcli.c) [36] hal_io_write      [205] ks_volatile_logout (ks_volatile.c)
 [122] cli_command_name      [198] hal_ks_attribute_scan [206] ks_volatile_set_owner (ks_volatile.c)
 [123] cli_find_command (libcli.c) [175] hal_ks_block_read_cached [174] ks_volatile_test_owner (ks_volatile.c)
 [125] cli_parse_line (libcli.c) [124] hal_ks_block_update [126] ks_volatile_write (ks_volatile.c)
 [121] cli_run_command       [172] hal_ks_cache_find_block [143] ks_volatile_zero (ks_volatile.c)
 [196] cmd_profile_stop (mgmt-misc.c) [165] hal_ks_cache_mark_used [106] load_kek (aes_keywrap.c)
  [81] construct_key_block (ks.c) [199] hal_ks_cache_pick_lru [42] login (rpc_misc.c)
  [27] create_blinding_factors (rsa.c) [191] hal_ks_cache_release [56] login (rpc_server.c)
 [147] default_idle_hook (task.c) [134] hal_ks_delete    [207] logout (rpc_misc.c)
   [2] dispatch_task (hsm.c)   [7] hal_ks_fetch          [208] logout (rpc_server.c)
   [9] do_block (aes_keywrap.c) [138] hal_ks_index_add   [160] memcmp
  [43] do_hmac (pbkdf2.c)    [139] hal_ks_index_delete    [39] memcpy
 [111] extract_component (rsa.c) [176] hal_ks_index_find  [76] memmove
 [113] fp_add                [162] hal_ks_index_fsck      [22] memset
 [102] fp_cmp                [140] hal_ks_index_replace   [25] modexp2 (rsa.c)
 [108] fp_cmp_d              [163] hal_ks_lock            [30] next_task (task.c)
  [61] fp_cmp_mag            [192] hal_ks_logout          [83] pkcs1_5_pad (rpc_pkey.c)
  [94] fp_count_bits          [89] hal_ks_rewrite_der    [132] pkey_delete (rpc_server.c)
  [17] fp_div                 [90] hal_ks_store           [86] pkey_load (rpc_server.c)
  [26] fp_div_2d             [164] hal_ks_unlock         [133] pkey_local_delete (rpc_pkey.c)
  [38] fp_lshd                [71] hal_mkm_get_kek       [209] pkey_local_get_key_type (rpc_pkey.c)
  [16] fp_mod                [173] hal_mkm_volatile_init (mkm.c) [88] pkey_local_load (rpc_pkey.c)
  [44] fp_mul                 [72] hal_mkm_volatile_read   [6] pkey_local_sign (rpc_pkey.c)
  [32] fp_mul_2d              [70] hal_mkmif_read         [11] pkey_local_sign_rsa (rpc_pkey.c)
  [55] fp_mul_comba32         [75] hal_mkmif_read_word     [4] pkey_sign (rpc_server.c)
  [62] fp_mul_comba64         [63] hal_modexp2            [13] rsa_crt (rsa.c)
  [34] fp_mul_d               [41] hal_pbkdf2             [91] s_fp_add
  [19] fp_mulmod             [200] hal_pkey_logout        [29] s_fp_sub
  [31] fp_read_unsigned_bin  [129] hal_rpc_get_random    [144] show_prompt (libcli.c)
  [77] fp_reverse            [193] hal_rpc_is_logged_in   [59] sw_hash_core_sha256 (hash.c)
  [80] fp_rshd                [40] hal_rpc_login          [93] swytebop (hash.c)
  [65] fp_sqr                [201] hal_rpc_logout        [167] task_get_func
  [66] fp_sqr_comba64        [131] hal_rpc_pkey_delete   [168] task_get_state
  [28] fp_sqrmod              [87] hal_rpc_pkey_load     [169] task_iterate
  [68] fp_sub                  [5] hal_rpc_pkey_sign     [157] task_mutex_lock
  [24] fp_to_unsigned_bin     [45] hal_rpc_sendto        [158] task_mutex_unlock
  [95] fp_unsigned_bin_size    [3] hal_rpc_server_dispatch [170] task_next_waiting (hsm.c)
  [79] get_buffer (modexp.c) [177] hal_rsa_bf_lock       [110] task_sleep
 [127] get_random (rpc_misc.c) [178] hal_rsa_bf_unlock   [161] task_wake
   [8] hal_aes_keyunwrap      [12] hal_rsa_decrypt        [21] task_yield
  [82] hal_aes_keywrap       [112] hal_rsa_key_get_modulus [114] task_yield_maybe
 [190] hal_aes_keywrap_ciphertext_length [179] hal_rsa_key_needs_saving [146] uart_cli_read (mgmt-cli.c)
  [78] hal_asn1_decode_header [33] hal_rsa_private_key_from_der [135] uart_cli_write (mgmt-cli.c)
  [35] hal_asn1_decode_integer [96] hal_rsa_private_key_to_der_extra [51] uart_send_bytes2
  [64] hal_asn1_decode_pkcs8_privatekeyinfo [97] hal_rsa_private_key_to_der_internal [49] uart_send_char2
 [187] hal_asn1_encode_header [48] hal_serial_send_char   [23] unpack_fp (rsa.c)
-------------- next part --------------
Flat profile:

Each sample counts as 0.001 seconds.
  %   cumulative   self              self     total           
 time   seconds   seconds    calls   s/call   s/call  name    
 36.20     68.90    68.90                             _mcount_internal
 18.40    103.93    35.02                             __gnu_mcount_nc
  7.65    118.49    14.56 19084125     0.00     0.00  hal_io_read
  6.84    131.51    13.02  1869520     0.00     0.00  memset
  4.18    139.45     7.95   289478     0.00     0.00  s_fp_sub
  2.88    144.94     5.49 15827624     0.00     0.00  next_task
  2.84    150.34     5.40  1709859     0.00     0.00  hal_io_wait2
  2.82    155.71     5.37  1684001     0.00     0.00  fp_mul_2d
  2.66    160.78     5.07   749092     0.00     0.00  fp_mul_d
  2.35    165.25     4.48  5642554     0.00     0.00  hal_io_write
  2.28    169.60     4.34  8724079     0.00     0.00  task_yield
  2.14    173.67     4.07  1030152     0.00     0.00  fp_div_2d
  1.23    176.01     2.34    55272     0.00     0.00  memcpy
  1.21    178.32     2.31   293000     0.00     0.00  fp_lshd
  0.95    180.12     1.80  8723064     0.00     0.00  hal_task_yield
  0.62    181.31     1.19     2000     0.00     0.00  fp_mul_comba64
  0.51    182.29     0.98     5000     0.00     0.00  fp_div
  0.48    183.20     0.91     1000     0.00     0.04  hal_aes_keyunwrap
  0.48    184.11     0.91     2000     0.00     0.00  fp_sqr_comba64
  0.45    184.96     0.85     8192     0.00     0.00  sw_hash_core_sha256
  0.41    185.73     0.77  1699836     0.00     0.00  do_block
  0.36    186.41     0.68   761570     0.00     0.00  fp_cmp_mag
  0.29    186.97     0.55    13001     0.00     0.00  fp_read_unsigned_bin
  0.22    187.38     0.41   550202     0.00     0.00  UART_WaitOnFlagUntilTimeout
  0.20    187.76     0.38     2000     0.00     0.00  fp_mul_comba32
  0.17    188.08     0.32     6010     0.00     0.00  fp_to_unsigned_bin
  0.15    188.37     0.28                             __udivmoddi4
  0.14    188.63     0.27   275097     0.00     0.00  HAL_UART_Transmit
  0.11    188.83     0.20   289000     0.00     0.00  fp_sub
  0.09    189.01     0.18   275097     0.00     0.00  uart_send_bytes2
  0.08    189.16     0.15 11238153     0.00     0.00  HAL_GetTick
  0.08    189.31     0.15     3003     0.00     0.00  hal_core_alloc_no_wait
  0.06    189.43     0.12   275080     0.00     0.00  hal_serial_send_char
  0.06    189.54     0.11  1708858     0.00     0.00  hal_io_wait
  0.05    189.64     0.10     1000     0.00     0.00  hal_modexp2
  0.05    189.74     0.10   272072     0.00     0.00  hal_slip_send_char
  0.04    189.82     0.08                             __aeabi_uldivmod
  0.03    189.88     0.06     6010     0.00     0.00  fp_reverse
  0.03    189.93     0.05     5000     0.00     0.00  fp_rshd
  0.02    189.97     0.04    20002     0.00     0.00  hal_asn1_decode_header
  0.02    190.01     0.04   275097     0.00     0.00  HAL_UART_GetState
  0.02    190.05     0.04   275080     0.00     0.00  uart_send_char2
  0.02    190.09     0.04     2048     0.00     0.00  hal_hmac_initialize
  0.02    190.13     0.04     1004     0.00     0.00  hal_slip_send
  0.02    190.17     0.04     1000     0.00     0.00  s_fp_add
  0.01    190.19     0.02     4096     0.00     0.00  swytebop
  0.01    190.20     0.01     4096     0.00     0.00  hal_hash_finalize
  0.01    190.21     0.01    18055     0.00     0.00  fp_count_bits
  0.01    190.23     0.01     1000     0.00     0.00  hal_rsa_private_key_from_der
  0.01    190.24     0.01     1001     0.00     0.00  hal_asn1_decode_pkcs8_privatekeyinfo
  0.01    190.25     0.01        1     0.01     1.47  hal_pbkdf2
  0.00    190.26     0.01     2048     0.00     0.00  do_hmac
  0.00    190.26     0.01    10001     0.00     0.00  hal_asn1_decode_integer
  0.00    190.27     0.01     8194     0.00     0.00  hal_hash_update
  0.00    190.28     0.01     8192     0.00     0.00  hash_write_block
  0.00    190.28     0.01     4096     0.00     0.00  hal_hash_initialize
  0.00    190.29     0.01     2004     0.00     0.00  hal_mkmif_read
  0.00    190.30     0.01     1000     0.00     0.01  modexp2
  0.00    190.30     0.00     4000     0.00     0.00  fp_mul
  0.00    190.30     0.00     4014     0.00     0.00  hal_xdr_encode_int
  0.00    190.31     0.00     3003     0.00     0.00  hal_core_free
  0.00    190.31     0.00     2004     0.00     0.00  memcmp
  0.00    190.31     0.00     1002     0.00     0.00  load_kek
  0.00    190.32     0.00     1000     0.00     0.04  rsa_crt
  0.00    190.32     0.00     1004     0.00     0.08  hal_rpc_server_dispatch
  0.00    190.32     0.00     1000     0.00     0.01  create_blinding_factors
  0.00    190.32     0.00     1000     0.00     0.04  hal_ks_fetch
  0.00    190.32     0.00        2     0.00     0.03  hal_aes_keywrap
  0.00    190.32     0.00  7103545     0.00     0.00  default_idle_hook
  0.00    190.33     0.00    11032     0.00     0.00  hal_critical_section_start
  0.00    190.33     0.00     5000     0.00     0.00  fp_cmp
  0.00    190.33     0.00     5000     0.00     0.00  fp_mod
  0.00    190.33     0.00     3031     0.00     0.00  fp_cmp_d
  0.00    190.33     0.00     3000     0.00     0.01  fp_mulmod
  0.00    190.33     0.00     2048     0.00     0.00  hal_hmac_finalize
  0.00    190.33     0.00     2046     0.00     0.00  hal_task_yield_maybe
  0.00    190.33     0.00     2000     0.00     0.01  fp_sqrmod
  0.00    190.33     0.00     1478     0.00     0.00  fp_add
  0.00    190.34     0.00     1002     0.00     0.00  hal_mkm_get_kek
  0.00    190.34     0.00     1000     0.00     0.08  pkey_local_sign
  0.00    190.34     0.00                             _cleanup_r
  0.00    190.34     0.00                             dispatch_task
  0.00    190.34     0.00   190339     0.00     0.00  HAL_SYSTICK_Callback
  0.00    190.34     0.00   190338     0.00     0.00  HAL_IncTick
  0.00    190.34     0.00   190338     0.00     0.00  HAL_SYSTICK_IRQHandler
  0.00    190.34     0.00    80300     0.00     0.00  RxCallback
  0.00    190.34     0.00    80300     0.00     0.00  hal_slip_process_char
  0.00    190.34     0.00    13031     0.00     0.00  fp_unsigned_bin_size
  0.00    190.34     0.00    11032     0.00     0.00  hal_critical_section_end
  0.00    190.34     0.00     8006     0.00     0.00  hal_core_find
  0.00    190.34     0.00     8006     0.00     0.00  hal_core_iterate
  0.00    190.34     0.00     7017     0.00     0.00  hal_xdr_decode_int_peek
  0.00    190.34     0.00     6013     0.00     0.00  hal_xdr_decode_int
  0.00    190.34     0.00     6000     0.00     0.00  unpack_fp
  0.00    190.34     0.00     2050     0.00     0.00  hal_hmac_update
  0.00    190.34     0.00     2046     0.00     0.00  task_yield_maybe
  0.00    190.34     0.00     2008     0.00     0.00  ibuf_get
  0.00    190.34     0.00     2008     0.00     0.00  ibuf_put
  0.00    190.34     0.00     2007     0.00     0.00  memmove
  0.00    190.34     0.00     2006     0.00     0.00  task_mutex_lock
  0.00    190.34     0.00     2006     0.00     0.00  task_mutex_unlock
  0.00    190.34     0.00     2000     0.00     0.00  fp_sqr
  0.00    190.34     0.00     2000     0.00     0.00  get_buffer
  0.00    190.34     0.00     1017     0.00     0.00  task_wake
  0.00    190.34     0.00     1007     0.00     0.00  hal_ks_index_fsck
  0.00    190.34     0.00     1006     0.00     0.00  hal_ks_lock
  0.00    190.34     0.00     1006     0.00     0.00  hal_ks_unlock
  0.00    190.34     0.00     1005     0.00     0.00  hal_ks_cache_mark_used
  0.00    190.34     0.00     1005     0.00     0.00  task_sleep
  0.00    190.34     0.00     1004     0.00     0.00  hal_rpc_sendto
  0.00    190.34     0.00     1004     0.00     0.00  ks_find
  0.00    190.34     0.00     1004     0.00     0.00  task_get_func
  0.00    190.34     0.00     1004     0.00     0.00  task_get_state
  0.00    190.34     0.00     1004     0.00     0.00  task_iterate
  0.00    190.34     0.00     1004     0.00     0.00  task_next_waiting
  0.00    190.34     0.00     1003     0.00     0.00  hal_core_alloc
  0.00    190.34     0.00     1002     0.00     0.00  hal_ks_cache_find_block
  0.00    190.34     0.00     1002     0.00     0.00  hal_mkm_volatile_init
  0.00    190.34     0.00     1002     0.00     0.00  hal_mkm_volatile_read
  0.00    190.34     0.00     1002     0.00     0.00  hal_mkmif_read_word
  0.00    190.34     0.00     1002     0.00     0.00  hal_xdr_decode_fixed_opaque_ptr
  0.00    190.34     0.00     1002     0.00     0.00  hal_xdr_decode_variable_opaque_ptr
  0.00    190.34     0.00     1002     0.00     0.00  ks_volatile_test_owner
  0.00    190.34     0.00     1001     0.00     0.00  hal_ks_block_read_cached
  0.00    190.34     0.00     1001     0.00     0.00  hal_ks_index_find
  0.00    190.34     0.00     1000     0.00     0.00  extract_component
  0.00    190.34     0.00     1000     0.00     0.00  hal_core_alloc2
  0.00    190.34     0.00     1000     0.00     0.08  hal_rpc_pkey_sign
  0.00    190.34     0.00     1000     0.00     0.00  hal_rsa_bf_lock
  0.00    190.34     0.00     1000     0.00     0.00  hal_rsa_bf_unlock
  0.00    190.34     0.00     1000     0.00     0.04  hal_rsa_decrypt
  0.00    190.34     0.00     1000     0.00     0.00  hal_rsa_key_get_modulus
  0.00    190.34     0.00     1000     0.00     0.00  hal_rsa_key_needs_saving
  0.00    190.34     0.00     1000     0.00     0.00  pkcs1_5_pad
  0.00    190.34     0.00     1000     0.00     0.05  pkey_local_sign_rsa
  0.00    190.34     0.00     1000     0.00     0.08  pkey_sign
  0.00    190.34     0.00      170     0.00     0.00  HAL_DMA_IRQHandler
  0.00    190.34     0.00       92     0.00     0.00  HAL_UART_RxCpltCallback
  0.00    190.34     0.00       92     0.00     0.00  UART_DMAReceiveCplt
  0.00    190.34     0.00       79     0.00     0.00  HAL_UART2_RxCpltCallback
  0.00    190.34     0.00       78     0.00     0.00  HAL_UART2_RxHalfCpltCallback
  0.00    190.34     0.00       78     0.00     0.00  HAL_UART_RxHalfCpltCallback
  0.00    190.34     0.00       78     0.00     0.00  UART_DMARxHalfCplt
  0.00    190.34     0.00       66     0.00     0.00  hal_asn1_encode_header
  0.00    190.34     0.00       31     0.00     0.00  hal_asn1_encode_integer
  0.00    190.34     0.00       17     0.00     0.00  uart_cli_write
  0.00    190.34     0.00       13     0.00     0.00  HAL_UART1_RxCpltCallback
  0.00    190.34     0.00       13     0.00     0.00  uart_cli_read
  0.00    190.34     0.00        3     0.00     0.00  hal_asn1_encode_pkcs8_privatekeyinfo
  0.00    190.34     0.00        3     0.00     0.00  ks_volatile_erase
  0.00    190.34     0.00        2     0.00     0.00  check_stack
  0.00    190.34     0.00        2     0.00     0.03  construct_key_block
  0.00    190.34     0.00        2     0.00     0.00  hal_aes_keywrap_ciphertext_length
  0.00    190.34     0.00        2     0.00     0.00  hal_ks_cache_release
  0.00    190.34     0.00        2     0.00     0.00  hal_ks_logout
  0.00    190.34     0.00        2     0.00     0.00  hal_rpc_is_logged_in
  0.00    190.34     0.00        2     0.00     0.01  hal_rsa_private_key_to_der_extra
  0.00    190.34     0.00        2     0.00     0.01  hal_rsa_private_key_to_der_internal
  0.00    190.34     0.00        2     0.00     0.00  is_logged_in
  0.00    190.34     0.00        2     0.00     0.00  ks_volatile_write
  0.00    190.34     0.00        2     0.00     0.00  ks_volatile_zero
  0.00    190.34     0.00        1     0.00     0.00  cli_add_history
  0.00    190.34     0.00        1     0.00     0.00  cli_command_name
  0.00    190.34     0.00        1     0.00     0.00  cli_find_command
  0.00    190.34     0.00        1     0.00     0.00  cli_parse_line
  0.00    190.34     0.00        1     0.00     0.00  cli_run_command
  0.00    190.34     0.00        1     0.00     0.00  cmd_profile_stop
  0.00    190.34     0.00        1     0.00     0.00  get_random
  0.00    190.34     0.00        1     0.00     0.00  hal_asn1_guess_key_type
  0.00    190.34     0.00        1     0.00     0.00  hal_get_pin
  0.00    190.34     0.00        1     0.00     0.00  hal_get_random
  0.00    190.34     0.00        1     0.00     0.00  hal_ks_attribute_scan
  0.00    190.34     0.00        1     0.00     0.00  hal_ks_block_update
  0.00    190.34     0.00        1     0.00     0.00  hal_ks_cache_pick_lru
  0.00    190.34     0.00        1     0.00     0.00  hal_ks_delete
  0.00    190.34     0.00        1     0.00     0.00  hal_ks_index_add
  0.00    190.34     0.00        1     0.00     0.00  hal_ks_index_delete
  0.00    190.34     0.00        1     0.00     0.00  hal_ks_index_replace
  0.00    190.34     0.00        1     0.00     0.03  hal_ks_rewrite_der
  0.00    190.34     0.00        1     0.00     0.03  hal_ks_store
  0.00    190.34     0.00        1     0.00     0.00  hal_pkey_logout
  0.00    190.34     0.00        1     0.00     0.00  hal_rpc_get_random
  0.00    190.34     0.00        1     0.00     1.47  hal_rpc_login
  0.00    190.34     0.00        1     0.00     0.00  hal_rpc_logout
  0.00    190.34     0.00        1     0.00     0.00  hal_rpc_pkey_delete
  0.00    190.34     0.00        1     0.00     0.03  hal_rpc_pkey_load
  0.00    190.34     0.00        1     0.00     0.00  hal_uuid_gen
  0.00    190.34     0.00        1     0.00     0.00  hal_xdr_encode_fixed_opaque
  0.00    190.34     0.00        1     0.00     0.00  hal_xdr_encode_variable_opaque
  0.00    190.34     0.00        1     0.00     0.00  ks_token_logout
  0.00    190.34     0.00        1     0.00     0.00  ks_volatile_copy_owner
  0.00    190.34     0.00        1     0.00     0.00  ks_volatile_deprecate
  0.00    190.34     0.00        1     0.00     0.00  ks_volatile_logout
  0.00    190.34     0.00        1     0.00     0.00  ks_volatile_set_owner
  0.00    190.34     0.00        1     0.00     1.47  login
  0.00    190.34     0.00        1     0.00     1.47  login
  0.00    190.34     0.00        1     0.00     0.00  logout
  0.00    190.34     0.00        1     0.00     0.00  logout
  0.00    190.34     0.00        1     0.00     0.00  pkey_delete
  0.00    190.34     0.00        1     0.00     0.03  pkey_load
  0.00    190.34     0.00        1     0.00     0.00  pkey_local_delete
  0.00    190.34     0.00        1     0.00     0.00  pkey_local_get_key_type
  0.00    190.34     0.00        1     0.00     0.03  pkey_local_load
  0.00    190.34     0.00        1     0.00     0.00  show_prompt

 %         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 2 byte(s) for 0.00% of 190.34 seconds

index % time    self  children    called     name
                                                 <spontaneous>
[1]     45.2    0.00   86.04                 dispatch_task [1]
                0.00   84.81    1004/1004        hal_rpc_server_dispatch [2]
                0.00    1.23    1004/1004        hal_rpc_sendto [46]
                0.01    0.00    1004/1869520     memset [20]
                0.00    0.00    1004/1005        task_sleep [108]
                0.00    0.00    1004/2008        ibuf_get [123]
                0.00    0.00    1004/2008        ibuf_put [124]
-----------------------------------------------
                0.00   84.81    1004/1004        dispatch_task [1]
[2]     44.6    0.00   84.81    1004         hal_rpc_server_dispatch [2]
                0.00   83.30    1000/1000        pkey_sign [3]
                0.00    1.47       1/1           login [42]
                0.00    0.03       1/1           pkey_load [89]
                0.00    0.00    3012/4014        hal_xdr_encode_int [102]
                0.00    0.00       1/1           pkey_delete [136]
                0.00    0.00       1/1           logout [153]
                0.00    0.00    1004/6013        hal_xdr_decode_int [164]
                0.00    0.00    1004/7017        hal_xdr_decode_int_peek [163]
-----------------------------------------------
                0.00   83.30    1000/1000        hal_rpc_server_dispatch [2]
[3]     43.8    0.00   83.30    1000         pkey_sign [3]
                0.00   83.30    1000/1000        hal_rpc_pkey_sign [4]
                0.00    0.00    1000/4014        hal_xdr_encode_int [102]
                0.00    0.00    4000/6013        hal_xdr_decode_int [164]
                0.00    0.00    1000/1002        hal_xdr_decode_variable_opaque_ptr [179]
-----------------------------------------------
                0.00   83.30    1000/1000        pkey_sign [3]
[4]     43.8    0.00   83.30    1000         hal_rpc_pkey_sign [4]
                0.00   83.30    1000/1000        pkey_local_sign [5]
-----------------------------------------------
                0.00   83.30    1000/1000        hal_rpc_pkey_sign [4]
[5]     43.8    0.00   83.30    1000         pkey_local_sign [5]
                0.00   45.69    1000/1000        pkey_local_sign_rsa [7]
                0.00   37.60    1000/1000        hal_ks_fetch [10]
                0.01    0.00    1000/1869520     memset [20]
                0.00    0.00    1000/11032       hal_critical_section_start [112]
                0.00    0.00    1000/11032       hal_critical_section_end [160]
-----------------------------------------------
                                                 <spontaneous>
[6]     36.2   68.90    0.00                 _mcount_internal [6]
-----------------------------------------------
                0.00   45.69    1000/1000        pkey_local_sign [5]
[7]     24.0    0.00   45.69    1000         pkey_local_sign_rsa [7]
                0.00   40.67    1000/1000        hal_rsa_decrypt [8]
                0.01    4.92    1000/1000        hal_rsa_private_key_from_der [34]
                0.00    0.05    1000/1000        pkcs1_5_pad [82]
                0.00    0.03       1/1           hal_ks_rewrite_der [92]
                0.00    0.02       2/2           hal_rsa_private_key_to_der_extra [95]
                0.00    0.00    1000/1000        hal_rsa_key_get_modulus [116]
                0.00    0.00       1/1869520     memset [20]
                0.00    0.00    1000/1000        hal_rsa_key_needs_saving [184]
-----------------------------------------------
                0.00   40.67    1000/1000        pkey_local_sign_rsa [7]
[8]     21.4    0.00   40.67    1000         hal_rsa_decrypt [8]
                0.00   38.21    1000/1000        rsa_crt [9]
                0.00    1.98    1000/6000        unpack_fp [21]
                0.04    0.42    1000/13001       fp_read_unsigned_bin [30]
                0.01    0.00    2000/1869520     memset [20]
-----------------------------------------------
                0.00   38.21    1000/1000        hal_rsa_decrypt [8]
[9]     20.1    0.00   38.21    1000         rsa_crt [9]
                0.00   15.57    3000/3000        fp_mulmod [18]
                0.01   11.53    1000/1000        modexp2 [24]
                0.00   10.51    1000/1000        create_blinding_factors [26]
                0.00    0.48    1000/4000        fp_mul [39]
                0.04    0.00    1478/289478      s_fp_sub [29]
                0.04    0.00    1000/1000        s_fp_add [87]
                0.03    0.00    5000/1869520     memset [20]
                0.00    0.00    1000/289000      fp_sub [64]
                0.00    0.00    1478/1478        fp_add [107]
                0.00    0.00    3000/3031        fp_cmp_d [114]
-----------------------------------------------
                0.00   37.60    1000/1000        pkey_local_sign [5]
[10]    19.8    0.00   37.60    1000         hal_ks_fetch [10]
                0.91   36.46    1000/1000        hal_aes_keyunwrap [11]
                0.00    0.18    1000/1002        hal_mkm_get_kek [69]
                0.04    0.00    1000/55272       memcpy [38]
                0.00    0.00    1000/1001        hal_ks_index_find [106]
                0.00    0.00    1000/1006        hal_ks_lock [169]
                0.00    0.00    1000/1002        ks_volatile_test_owner [180]
                0.00    0.00    1000/1001        hal_ks_block_read_cached [181]
                0.00    0.00    1000/1005        hal_ks_cache_mark_used [171]
                0.00    0.00    1000/1006        hal_ks_unlock [170]
-----------------------------------------------
                0.91   36.46    1000/1000        hal_ks_fetch [10]
[11]    19.6    0.91   36.46    1000         hal_aes_keyunwrap [11]
                0.77   35.59 1697220/1699836     do_block [12]
                0.00    0.05    1000/1003        hal_core_alloc [83]
                0.00    0.04    1000/2007        memmove [77]
                0.00    0.00    1000/1002        load_kek [101]
                0.00    0.00    1000/3003        hal_core_free [100]
-----------------------------------------------
                0.00    0.05    2616/1699836     hal_aes_keywrap [81]
                0.77   35.59 1697220/1699836     hal_aes_keyunwrap [11]
[12]    19.1    0.77   35.64 1699836         do_block [12]
                0.11   28.89 1699836/1708858     hal_io_wait [14]
                4.05    0.00 5099508/5642554     hal_io_write [36]
                2.59    0.00 3399672/19084125     hal_io_read [19]
-----------------------------------------------
                                                 <spontaneous>
[13]    18.4   35.02    0.00                 __gnu_mcount_nc [13]
-----------------------------------------------
                0.00    0.00       4/1708858     hal_get_random [129]
                0.00    0.15    9018/1708858     hal_mkmif_read [70]
                0.11   28.89 1699836/1708858     do_block [12]
[14]    15.3    0.11   29.05 1708858         hal_io_wait [14]
                5.40   23.65 1708858/1709859     hal_io_wait2 [15]
-----------------------------------------------
                0.00    0.01    1001/1709859     hal_modexp2 [59]
                5.40   23.65 1708858/1709859     hal_io_wait [14]
[15]    15.3    5.40   23.66 1709859         hal_io_wait2 [15]
               11.91    0.00 15609175/19084125     hal_io_read [19]
                1.80    9.95 8720061/8723064     hal_task_yield [23]
-----------------------------------------------
                0.00    9.41    2000/5000        fp_sqrmod [27]
                0.00   14.11    3000/5000        fp_mulmod [18]
[16]    12.4    0.00   23.52    5000         fp_mod [16]
                0.98   22.30    5000/5000        fp_div [17]
                0.21    0.00    5000/55272       memcpy [38]
                0.03    0.00    5000/1869520     memset [20]
-----------------------------------------------
                0.98   22.30    5000/5000        fp_mod [16]
[17]    12.2    0.98   22.30    5000         fp_div [17]
                7.91    0.00  288000/289478      s_fp_sub [29]
                5.07    0.00  749092/749092      fp_mul_d [33]
                2.31    2.01  293000/293000      fp_lshd [37]
                3.32    0.00  476092/1869520     memset [20]
                0.63    0.00   15000/55272       memcpy [38]
                0.20    0.26  288000/289000      fp_sub [64]
                0.42    0.00  471092/761570      fp_cmp_mag [60]
                0.05    0.03    5000/5000        fp_rshd [76]
                0.02    0.03    5000/1030152     fp_div_2d [25]
                0.03    0.00   10000/1684001     fp_mul_2d [32]
                0.00    0.00    5000/18055       fp_count_bits [98]
                0.00    0.00    5000/5000        fp_cmp [113]
-----------------------------------------------
                0.00   15.57    3000/3000        rsa_crt [9]
[18]     8.2    0.00   15.57    3000         fp_mulmod [18]
                0.00   14.11    3000/5000        fp_mod [16]
                0.00    1.43    3000/4000        fp_mul [39]
                0.02    0.00    3000/1869520     memset [20]
-----------------------------------------------
                0.00    0.00       4/19084125     hal_get_random [129]
                0.00    0.00    2256/19084125     hal_modexp2 [59]
                0.01    0.00    9018/19084125     hal_mkmif_read [70]
                0.05    0.00   64000/19084125     get_buffer [84]
                2.59    0.00 3399672/19084125     do_block [12]
               11.91    0.00 15609175/19084125     hal_io_wait2 [15]
[19]     7.7   14.56    0.00 19084125         hal_io_read [19]
-----------------------------------------------
                0.00    0.00       1/1869520     _mcleanup [148]
                0.00    0.00       1/1869520     pkey_local_sign_rsa [7]
                0.00    0.00       1/1869520     pkey_local_delete [137]
                0.00    0.00       1/1869520     pkey_local_load [91]
                0.00    0.00       1/1869520     cli_parse_line [133]
                0.00    0.00       1/1869520     cli_command_name [126]
                0.00    0.00       1/1869520     cli_run_command [119]
                0.00    0.00       1/1869520     cli_loop [118]
                0.00    0.00       2/1869520     construct_key_block [80]
                0.00    0.00       2/1869520     ks_volatile_zero [147]
                0.00    0.00       2/1869520     hal_pbkdf2 [43]
                0.00    0.00       2/1869520     hal_aes_keywrap [81]
                0.00    0.00       3/1869520     ks_volatile_erase [146]
                0.00    0.00       3/1869520     hal_rsa_private_key_to_der_internal [96]
                0.00    0.00       3/1869520     _cleanup_r [110]
                0.00    0.00       4/1869520     hal_asn1_encode_pkcs8_privatekeyinfo [104]
                0.01    0.00    1000/1869520     pkcs1_5_pad [82]
                0.01    0.00    1000/1869520     pkey_local_sign [5]
                0.01    0.00    1000/1869520     create_blinding_factors [26]
                0.01    0.00    1001/1869520     hal_asn1_decode_pkcs8_privatekeyinfo [62]
                0.01    0.00    1004/1869520     dispatch_task [1]
                0.01    0.00    2000/1869520     hal_rsa_decrypt [8]
                0.01    0.00    2000/1869520     hal_rsa_private_key_from_der [34]
                0.01    0.00    2000/1869520     fp_sqrmod [27]
                0.01    0.00    2048/1869520     hal_hmac_initialize [66]
                0.02    0.00    3000/1869520     fp_mulmod [18]
                0.03    0.00    4096/1869520     hal_hash_initialize [88]
                0.03    0.00    4096/1869520     hal_hash_finalize [63]
                0.03    0.00    5000/1869520     rsa_crt [9]
                0.03    0.00    5000/1869520     fp_rshd [76]
                0.03    0.00    5000/1869520     fp_mod [16]
                0.04    0.00    6000/1869520     unpack_fp [21]
                0.05    0.00    7000/1869520     modexp2 [24]
                0.07    0.00   10001/1869520     hal_asn1_decode_integer [35]
                0.09    0.00   13001/1869520     fp_read_unsigned_bin [30]
                2.01    0.00  288000/1869520     fp_lshd [37]
                3.32    0.00  476092/1869520     fp_div [17]
                7.17    0.00 1030152/1869520     fp_div_2d [25]
[20]     6.8   13.02    0.00 1869520         memset [20]
-----------------------------------------------
                0.00    1.98    1000/6000        hal_rsa_decrypt [8]
                0.00    9.88    5000/6000        modexp2 [24]
[21]     6.2    0.00   11.85    6000         unpack_fp [21]
                0.32   11.48    6000/6010        fp_to_unsigned_bin [22]
                0.04    0.00    6000/1869520     memset [20]
                0.00    0.00    6000/13031       fp_unsigned_bin_size [99]
-----------------------------------------------
                0.00    0.02      10/6010        hal_asn1_encode_integer [97]
                0.32   11.48    6000/6010        unpack_fp [21]
[22]     6.2    0.32   11.50    6010         fp_to_unsigned_bin [22]
                4.05    7.14 1025152/1030152     fp_div_2d [25]
                0.25    0.00    6010/55272       memcpy [38]
                0.06    0.00    6010/6010        fp_reverse [79]
-----------------------------------------------
                0.00    0.00    3003/8723064     hal_core_free [100]
                1.80    9.95 8720061/8723064     hal_io_wait2 [15]
[23]     6.2    1.80    9.95 8723064         hal_task_yield [23]
                4.34    5.61 8723064/8724079     task_yield [28]
-----------------------------------------------
                0.01   11.53    1000/1000        rsa_crt [9]
[24]     6.1    0.01   11.53    1000         modexp2 [24]
                0.00    9.88    5000/6000        unpack_fp [21]
                0.08    0.83    2000/13001       fp_read_unsigned_bin [30]
                0.10    0.58    1000/1000        hal_modexp2 [59]
                0.05    0.00    7000/1869520     memset [20]
                0.00    0.00    5000/13031       fp_unsigned_bin_size [99]
-----------------------------------------------
                0.02    0.03    5000/1030152     fp_div [17]
                4.05    7.14 1025152/1030152     fp_to_unsigned_bin [22]
[25]     5.9    4.07    7.17 1030152         fp_div_2d [25]
                7.17    0.00 1030152/1869520     memset [20]
-----------------------------------------------
                0.00   10.51    1000/1000        rsa_crt [9]
[26]     5.5    0.00   10.51    1000         create_blinding_factors [26]
                0.00   10.42    2000/2000        fp_sqrmod [27]
                0.08    0.00    2000/55272       memcpy [38]
                0.01    0.00    1000/1869520     memset [20]
                0.00    0.00    1000/761570      fp_cmp_mag [60]
                0.00    0.00    1000/13031       fp_unsigned_bin_size [99]
                0.00    0.00    1000/1000        hal_rsa_bf_lock [182]
                0.00    0.00    1000/1000        hal_rsa_bf_unlock [183]
-----------------------------------------------
                0.00   10.42    2000/2000        create_blinding_factors [26]
[27]     5.5    0.00   10.42    2000         fp_sqrmod [27]
                0.00    9.41    2000/5000        fp_mod [16]
                0.00    0.99    2000/2000        fp_sqr [50]
                0.01    0.00    2000/1869520     memset [20]
-----------------------------------------------
                0.00    0.00      10/8724079     task_yield_maybe [145]
                0.00    0.00    1005/8724079     task_sleep [108]
                4.34    5.61 8723064/8724079     hal_task_yield [23]
[28]     5.2    4.34    5.61 8724079         task_yield [28]
                5.49    0.00 15827624/15827624     next_task [31]
                0.12    0.00 8724079/11238153     HAL_GetTick [72]
                0.00    0.00 7103545/7103545     default_idle_hook [111]
                0.00    0.00       2/2           check_stack [194]
-----------------------------------------------
                0.04    0.00    1478/289478      rsa_crt [9]
                7.91    0.00  288000/289478      fp_div [17]
[29]     4.2    7.95    0.00  289478         s_fp_sub [29]
-----------------------------------------------
                0.04    0.42    1000/13001       hal_rsa_decrypt [8]
                0.08    0.83    2000/13001       modexp2 [24]
                0.42    4.17   10001/13001       hal_asn1_decode_integer [35]
[30]     3.1    0.55    5.42   13001         fp_read_unsigned_bin [30]
                5.33    0.00 1674001/1684001     fp_mul_2d [32]
                0.09    0.00   13001/1869520     memset [20]
-----------------------------------------------
                5.49    0.00 15827624/15827624     task_yield [28]
[31]     2.9    5.49    0.00 15827624         next_task [31]
-----------------------------------------------
                0.03    0.00   10000/1684001     fp_div [17]
                5.33    0.00 1674001/1684001     fp_read_unsigned_bin [30]
[32]     2.8    5.37    0.00 1684001         fp_mul_2d [32]
-----------------------------------------------
                5.07    0.00  749092/749092      fp_div [17]
[33]     2.7    5.07    0.00  749092         fp_mul_d [33]
-----------------------------------------------
                0.01    4.92    1000/1000        pkey_local_sign_rsa [7]
[34]     2.6    0.01    4.92    1000         hal_rsa_private_key_from_der [34]
                0.01    4.22    9000/10001       hal_asn1_decode_integer [35]
                0.01    0.49    1000/1001        hal_asn1_decode_pkcs8_privatekeyinfo [62]
                0.17    0.00    3996/55272       memcpy [38]
                0.01    0.00    2000/1869520     memset [20]
                0.01    0.00    4996/20002       hal_asn1_decode_header [85]
                0.00    0.00    1000/2004        memcmp [103]
-----------------------------------------------
                0.00    0.47    1001/10001       hal_asn1_decode_pkcs8_privatekeyinfo [62]
                0.01    4.22    9000/10001       hal_rsa_private_key_from_der [34]
[35]     2.5    0.01    4.69   10001         hal_asn1_decode_integer [35]
                0.42    4.17   10001/13001       fp_read_unsigned_bin [30]
                0.07    0.00   10001/1869520     memset [20]
                0.02    0.00   10001/20002       hal_asn1_decode_header [85]
-----------------------------------------------
                0.00    0.00    3006/5642554     load_kek [101]
                0.01    0.00   18036/5642554     hal_mkmif_read [70]
                0.41    0.00  522004/5642554     hal_modexp2 [59]
                4.05    0.00 5099508/5642554     do_block [12]
[36]     2.4    4.48    0.00 5642554         hal_io_write [36]
-----------------------------------------------
                2.31    2.01  293000/293000      fp_div [17]
[37]     2.3    2.31    2.01  293000         fp_lshd [37]
                2.01    0.00  288000/1869520     memset [20]
-----------------------------------------------
                0.00    0.00       1/55272       hal_xdr_encode_fixed_opaque [144]
                0.00    0.00       1/55272       hal_asn1_encode_pkcs8_privatekeyinfo [104]
                0.00    0.00       2/55272       hal_ks_rewrite_der [92]
                0.00    0.00       2/55272       ks_volatile_write [134]
                0.00    0.00       2/55272       cli_parse_line [133]
                0.00    0.00       2/55272       cli_command_name [126]
                0.00    0.00       4/55272       hal_rsa_private_key_to_der_internal [96]
                0.00    0.00       4/55272       hal_pbkdf2 [43]
                0.04    0.00    1000/55272       hal_ks_fetch [10]
                0.08    0.00    2000/55272       create_blinding_factors [26]
                0.08    0.00    2000/55272       fp_sqr_comba64 [51]
                0.08    0.00    2006/55272       memmove [77]
                0.09    0.00    2048/55272       hal_hmac_initialize [66]
                0.17    0.00    3996/55272       hal_rsa_private_key_from_der [34]
                0.17    0.00    4000/55272       fp_mul_comba32 [61]
                0.17    0.00    4000/55272       fp_mul_comba64 [45]
                0.21    0.00    5000/55272       fp_mod [16]
                0.25    0.00    6010/55272       fp_to_unsigned_bin [22]
                0.35    0.00    8194/55272       hal_hash_update [57]
                0.63    0.00   15000/55272       fp_div [17]
[38]     1.2    2.34    0.00   55272         memcpy [38]
-----------------------------------------------
                0.00    0.48    1000/4000        rsa_crt [9]
                0.00    1.43    3000/4000        fp_mulmod [18]
[39]     1.0    0.00    1.91    4000         fp_mul [39]
                1.19    0.17    2000/2000        fp_mul_comba64 [45]
                0.38    0.17    2000/2000        fp_mul_comba32 [61]
-----------------------------------------------
                0.00    1.47       1/1           login [42]
[40]     0.8    0.00    1.47       1         hal_rpc_login [40]
                0.00    1.47       1/1           login [41]
-----------------------------------------------
                0.00    1.47       1/1           hal_rpc_login [40]
[41]     0.8    0.00    1.47       1         login [41]
                0.01    1.46       1/1           hal_pbkdf2 [43]
                0.00    0.00       1/11032       hal_critical_section_start [112]
                0.00    0.00       1/1           hal_get_pin [200]
                0.00    0.00       1/11032       hal_critical_section_end [160]
-----------------------------------------------
                0.00    1.47       1/1           hal_rpc_server_dispatch [2]
[42]     0.8    0.00    1.47       1         login [42]
                0.00    1.47       1/1           hal_rpc_login [40]
                0.00    0.00       2/6013        hal_xdr_decode_int [164]
                0.00    0.00       1/1002        hal_xdr_decode_variable_opaque_ptr [179]
-----------------------------------------------
                0.01    1.46       1/1           login [41]
[43]     0.8    0.01    1.46       1         hal_pbkdf2 [43]
                0.01    1.45    2048/2048        do_hmac [44]
                0.00    0.00    2046/2046        hal_task_yield_maybe [109]
                0.00    0.00       4/55272       memcpy [38]
                0.00    0.00       2/1869520     memset [20]
-----------------------------------------------
                0.01    1.45    2048/2048        hal_pbkdf2 [43]
[44]     0.8    0.01    1.45    2048         do_hmac [44]
                0.00    0.90    2048/2048        hal_hmac_finalize [54]
                0.04    0.31    2048/2048        hal_hmac_initialize [66]
                0.00    0.20    2050/2050        hal_hmac_update [68]
-----------------------------------------------
                1.19    0.17    2000/2000        fp_mul [39]
[45]     0.7    1.19    0.17    2000         fp_mul_comba64 [45]
                0.17    0.00    4000/55272       memcpy [38]
-----------------------------------------------
                0.00    1.23    1004/1004        dispatch_task [1]
[46]     0.6    0.00    1.23    1004         hal_rpc_sendto [46]
                0.04    1.19    1004/1004        hal_slip_send [47]
-----------------------------------------------
                0.04    1.19    1004/1004        hal_rpc_sendto [46]
[47]     0.6    0.04    1.19    1004         hal_slip_send [47]
                0.10    1.08  272072/272072      hal_slip_send_char [48]
                0.00    0.01    2008/275080      hal_serial_send_char [49]
-----------------------------------------------
                0.10    1.08  272072/272072      hal_slip_send [47]
[48]     0.6    0.10    1.08  272072         hal_slip_send_char [48]
                0.12    0.96  273072/275080      hal_serial_send_char [49]
-----------------------------------------------
                0.00    0.01    2008/275080      hal_slip_send [47]
                0.12    0.96  273072/275080      hal_slip_send_char [48]
[49]     0.6    0.12    0.97  275080         hal_serial_send_char [49]
                0.04    0.93  275080/275080      uart_send_char2 [52]
-----------------------------------------------
                0.00    0.99    2000/2000        fp_sqrmod [27]
[50]     0.5    0.00    0.99    2000         fp_sqr [50]
                0.91    0.08    2000/2000        fp_sqr_comba64 [51]
-----------------------------------------------
                0.91    0.08    2000/2000        fp_sqr [50]
[51]     0.5    0.91    0.08    2000         fp_sqr_comba64 [51]
                0.08    0.00    2000/55272       memcpy [38]
-----------------------------------------------
                0.04    0.93  275080/275080      hal_serial_send_char [49]
[52]     0.5    0.04    0.93  275080         uart_send_char2 [52]
                0.18    0.75  275080/275097      uart_send_bytes2 [53]
-----------------------------------------------
                0.00    0.00      17/275097      uart_cli_write [139]
                0.18    0.75  275080/275097      uart_send_char2 [52]
[53]     0.5    0.18    0.75  275097         uart_send_bytes2 [53]
                0.27    0.45  275097/275097      HAL_UART_Transmit [58]
                0.04    0.00  275097/275097      HAL_UART_GetState [86]
-----------------------------------------------
                0.00    0.90    2048/2048        do_hmac [44]
[54]     0.5    0.00    0.90    2048         hal_hmac_finalize [54]
                0.01    0.48    4096/4096        hal_hash_finalize [63]
                0.00    0.39    4096/8194        hal_hash_update [57]
                0.00    0.01    2048/4096        hal_hash_initialize [88]
-----------------------------------------------
                0.00    0.43    4096/8192        hal_hash_update [57]
                0.00    0.43    4096/8192        hal_hash_finalize [63]
[55]     0.5    0.01    0.85    8192         hash_write_block [55]
                0.85    0.00    8192/8192        sw_hash_core_sha256 [56]
-----------------------------------------------
                0.85    0.00    8192/8192        hash_write_block [55]
[56]     0.4    0.85    0.00    8192         sw_hash_core_sha256 [56]
-----------------------------------------------
                0.00    0.19    2048/8194        hal_hmac_initialize [66]
                0.00    0.19    2050/8194        hal_hmac_update [68]
                0.00    0.39    4096/8194        hal_hmac_finalize [54]
[57]     0.4    0.01    0.78    8194         hal_hash_update [57]
                0.00    0.43    4096/8192        hash_write_block [55]
                0.35    0.00    8194/55272       memcpy [38]
-----------------------------------------------
                0.27    0.45  275097/275097      uart_send_bytes2 [53]
[58]     0.4    0.27    0.45  275097         HAL_UART_Transmit [58]
                0.41    0.03  550202/550202      UART_WaitOnFlagUntilTimeout [65]
-----------------------------------------------
                0.10    0.58    1000/1000        modexp2 [24]
[59]     0.4    0.10    0.58    1000         hal_modexp2 [59]
                0.41    0.00  522004/5642554     hal_io_write [36]
                0.00    0.10    1000/1000        hal_core_alloc2 [74]
                0.00    0.05    2000/2000        get_buffer [84]
                0.00    0.01    1001/1709859     hal_io_wait2 [15]
                0.00    0.00    2000/3003        hal_core_free [100]
                0.00    0.00    2256/19084125     hal_io_read [19]
-----------------------------------------------
                0.00    0.00     478/761570      fp_add [107]
                0.00    0.00    1000/761570      create_blinding_factors [26]
                0.26    0.00  289000/761570      fp_sub [64]
                0.42    0.00  471092/761570      fp_div [17]
[60]     0.4    0.68    0.00  761570         fp_cmp_mag [60]
-----------------------------------------------
                0.38    0.17    2000/2000        fp_mul [39]
[61]     0.3    0.38    0.17    2000         fp_mul_comba32 [61]
                0.17    0.00    4000/55272       memcpy [38]
-----------------------------------------------
                0.00    0.00       1/1001        hal_asn1_guess_key_type [117]
                0.01    0.49    1000/1001        hal_rsa_private_key_from_der [34]
[62]     0.3    0.01    0.49    1001         hal_asn1_decode_pkcs8_privatekeyinfo [62]
                0.00    0.47    1001/10001       hal_asn1_decode_integer [35]
                0.01    0.00    5005/20002       hal_asn1_decode_header [85]
                0.01    0.00    1001/1869520     memset [20]
-----------------------------------------------
                0.01    0.48    4096/4096        hal_hmac_finalize [54]
[63]     0.3    0.01    0.48    4096         hal_hash_finalize [63]
                0.00    0.43    4096/8192        hash_write_block [55]
                0.03    0.00    4096/1869520     memset [20]
                0.02    0.00    4096/4096        swytebop [94]
-----------------------------------------------
                0.00    0.00    1000/289000      rsa_crt [9]
                0.20    0.26  288000/289000      fp_div [17]
[64]     0.2    0.20    0.26  289000         fp_sub [64]
                0.26    0.00  289000/761570      fp_cmp_mag [60]
-----------------------------------------------
                0.41    0.03  550202/550202      HAL_UART_Transmit [58]
[65]     0.2    0.41    0.03  550202         UART_WaitOnFlagUntilTimeout [65]
                0.03    0.00 2512028/11238153     HAL_GetTick [72]
-----------------------------------------------
                0.04    0.31    2048/2048        do_hmac [44]
[66]     0.2    0.04    0.31    2048         hal_hmac_initialize [66]
                0.00    0.19    2048/8194        hal_hash_update [57]
                0.09    0.00    2048/55272       memcpy [38]
                0.00    0.01    2048/4096        hal_hash_initialize [88]
                0.01    0.00    2048/1869520     memset [20]
-----------------------------------------------
                                                 <spontaneous>
[67]     0.1    0.28    0.00                 __udivmoddi4 [67]
-----------------------------------------------
                0.00    0.20    2050/2050        do_hmac [44]
[68]     0.1    0.00    0.20    2050         hal_hmac_update [68]
                0.00    0.19    2050/8194        hal_hash_update [57]
-----------------------------------------------
                0.00    0.00       2/1002        construct_key_block [80]
                0.00    0.18    1000/1002        hal_ks_fetch [10]
[69]     0.1    0.00    0.18    1002         hal_mkm_get_kek [69]
                0.00    0.18    1002/1002        hal_mkm_volatile_read [71]
-----------------------------------------------
                0.00    0.09    1002/2004        hal_mkm_volatile_read [71]
                0.00    0.09    1002/2004        hal_mkmif_read_word [75]
[70]     0.1    0.01    0.18    2004         hal_mkmif_read [70]
                0.00    0.15    9018/1708858     hal_io_wait [14]
                0.01    0.00   18036/5642554     hal_io_write [36]
                0.01    0.00    9018/19084125     hal_io_read [19]
-----------------------------------------------
                0.00    0.18    1002/1002        hal_mkm_get_kek [69]
[71]     0.1    0.00    0.18    1002         hal_mkm_volatile_read [71]
                0.00    0.09    1002/1002        hal_mkmif_read_word [75]
                0.00    0.09    1002/2004        hal_mkmif_read [70]
                0.00    0.00    1002/1002        hal_mkm_volatile_init [177]
-----------------------------------------------
                0.00    0.00    2046/11238153     task_yield_maybe [145]
                0.03    0.00 2512028/11238153     UART_WaitOnFlagUntilTimeout [65]
                0.12    0.00 8724079/11238153     task_yield [28]
[72]     0.1    0.15    0.00 11238153         HAL_GetTick [72]
-----------------------------------------------
                0.05    0.00    1003/3003        hal_core_alloc [83]
                0.10    0.00    2000/3003        hal_core_alloc2 [74]
[73]     0.1    0.15    0.00    3003         hal_core_alloc_no_wait [73]
                0.00    0.00    3003/11032       hal_critical_section_start [112]
                0.00    0.00    8006/8006        hal_core_find [161]
                0.00    0.00    3003/11032       hal_critical_section_end [160]
-----------------------------------------------
                0.00    0.10    1000/1000        hal_modexp2 [59]
[74]     0.1    0.00    0.10    1000         hal_core_alloc2 [74]
                0.10    0.00    2000/3003        hal_core_alloc_no_wait [73]
-----------------------------------------------
                0.00    0.09    1002/1002        hal_mkm_volatile_read [71]
[75]     0.0    0.00    0.09    1002         hal_mkmif_read_word [75]
                0.00    0.09    1002/2004        hal_mkmif_read [70]
-----------------------------------------------
                0.05    0.03    5000/5000        fp_div [17]
[76]     0.0    0.05    0.03    5000         fp_rshd [76]
                0.03    0.00    5000/1869520     memset [20]
-----------------------------------------------
                0.00    0.00       1/2007        hal_ks_index_add [140]
                0.00    0.00       1/2007        hal_ks_index_delete [141]
                0.00    0.00       1/2007        hal_ks_index_replace [142]
                0.00    0.00       1/2007        hal_asn1_encode_pkcs8_privatekeyinfo [104]
                0.00    0.00       1/2007        cli_command_name [126]
                0.00    0.00       2/2007        hal_aes_keywrap [81]
                0.00    0.04    1000/2007        pkcs1_5_pad [82]
                0.00    0.04    1000/2007        hal_aes_keyunwrap [11]
[77]     0.0    0.00    0.08    2007         memmove [77]
                0.08    0.00    2006/55272       memcpy [38]
-----------------------------------------------
                                                 <spontaneous>
[78]     0.0    0.08    0.00                 __aeabi_uldivmod [78]
-----------------------------------------------
                0.06    0.00    6010/6010        fp_to_unsigned_bin [22]
[79]     0.0    0.06    0.00    6010         fp_reverse [79]
-----------------------------------------------
                0.00    0.03       1/2           hal_ks_store [93]
                0.00    0.03       1/2           hal_ks_rewrite_der [92]
[80]     0.0    0.00    0.06       2         construct_key_block [80]
                0.00    0.06       2/2           hal_aes_keywrap [81]
                0.00    0.00       2/1002        hal_mkm_get_kek [69]
                0.00    0.00       2/1869520     memset [20]
-----------------------------------------------
                0.00    0.06       2/2           construct_key_block [80]
[81]     0.0    0.00    0.06       2         hal_aes_keywrap [81]
                0.00    0.05    2616/1699836     do_block [12]
                0.00    0.00       2/1003        hal_core_alloc [83]
                0.00    0.00       2/2007        memmove [77]
                0.00    0.00       2/1869520     memset [20]
                0.00    0.00       2/1002        load_kek [101]
                0.00    0.00       2/3003        hal_core_free [100]
                0.00    0.00       2/2           hal_aes_keywrap_ciphertext_length [195]
-----------------------------------------------
                0.00    0.05    1000/1000        pkey_local_sign_rsa [7]
[82]     0.0    0.00    0.05    1000         pkcs1_5_pad [82]
                0.00    0.04    1000/2007        memmove [77]
                0.01    0.00    1000/1869520     memset [20]
-----------------------------------------------
                0.00    0.00       1/1003        hal_get_random [129]
                0.00    0.00       2/1003        hal_aes_keywrap [81]
                0.00    0.05    1000/1003        hal_aes_keyunwrap [11]
[83]     0.0    0.00    0.05    1003         hal_core_alloc [83]
                0.05    0.00    1003/3003        hal_core_alloc_no_wait [73]
-----------------------------------------------
                0.00    0.05    2000/2000        hal_modexp2 [59]
[84]     0.0    0.00    0.05    2000         get_buffer [84]
                0.05    0.00   64000/19084125     hal_io_read [19]
-----------------------------------------------
                0.01    0.00    4996/20002       hal_rsa_private_key_from_der [34]
                0.01    0.00    5005/20002       hal_asn1_decode_pkcs8_privatekeyinfo [62]
                0.02    0.00   10001/20002       hal_asn1_decode_integer [35]
[85]     0.0    0.04    0.00   20002         hal_asn1_decode_header [85]
-----------------------------------------------
                0.04    0.00  275097/275097      uart_send_bytes2 [53]
[86]     0.0    0.04    0.00  275097         HAL_UART_GetState [86]
-----------------------------------------------
                0.04    0.00    1000/1000        rsa_crt [9]
[87]     0.0    0.04    0.00    1000         s_fp_add [87]
-----------------------------------------------
                0.00    0.01    2048/4096        hal_hmac_initialize [66]
                0.00    0.01    2048/4096        hal_hmac_finalize [54]
[88]     0.0    0.01    0.03    4096         hal_hash_initialize [88]
                0.03    0.00    4096/1869520     memset [20]
-----------------------------------------------
                0.00    0.03       1/1           hal_rpc_server_dispatch [2]
[89]     0.0    0.00    0.03       1         pkey_load [89]
                0.00    0.03       1/1           hal_rpc_pkey_load [90]
                0.00    0.00       1/1           hal_xdr_encode_variable_opaque [143]
                0.00    0.00       1/4014        hal_xdr_encode_int [102]
                0.00    0.00       3/6013        hal_xdr_decode_int [164]
                0.00    0.00       1/1002        hal_xdr_decode_variable_opaque_ptr [179]
-----------------------------------------------
                0.00    0.03       1/1           pkey_load [89]
[90]     0.0    0.00    0.03       1         hal_rpc_pkey_load [90]
                0.00    0.03       1/1           pkey_local_load [91]
-----------------------------------------------
                0.00    0.03       1/1           hal_rpc_pkey_load [90]
[91]     0.0    0.00    0.03       1         pkey_local_load [91]
                0.00    0.03       1/1           hal_ks_store [93]
                0.00    0.00       1/1           hal_asn1_guess_key_type [117]
                0.00    0.00       1/1           hal_uuid_gen [131]
                0.00    0.00       1/1869520     memset [20]
                0.00    0.00       1/2           hal_rpc_is_logged_in [154]
                0.00    0.00       1/11032       hal_critical_section_start [112]
                0.00    0.00       1/11032       hal_critical_section_end [160]
-----------------------------------------------
                0.00    0.03       1/1           pkey_local_sign_rsa [7]
[92]     0.0    0.00    0.03       1         hal_ks_rewrite_der [92]
                0.00    0.03       1/2           construct_key_block [80]
                0.00    0.00       1/1           hal_ks_block_update [132]
                0.00    0.00       2/55272       memcpy [38]
                0.00    0.00       1/1001        hal_ks_index_find [106]
                0.00    0.00       1/1006        hal_ks_lock [169]
                0.00    0.00       1/1002        ks_volatile_test_owner [180]
                0.00    0.00       1/1006        hal_ks_unlock [170]
                0.00    0.00       1/1001        hal_ks_block_read_cached [181]
                0.00    0.00       1/1005        hal_ks_cache_mark_used [171]
                0.00    0.00       1/1           hal_ks_attribute_scan [201]
-----------------------------------------------
                0.00    0.03       1/1           pkey_local_load [91]
[93]     0.0    0.00    0.03       1         hal_ks_store [93]
                0.00    0.03       1/2           construct_key_block [80]
                0.00    0.00       1/1           hal_ks_index_add [140]
                0.00    0.00       1/2           ks_volatile_write [134]
                0.00    0.00       1/3           ks_volatile_erase [146]
                0.00    0.00       1/1006        hal_ks_lock [169]
                0.00    0.00       1/1           hal_ks_cache_pick_lru [202]
                0.00    0.00       1/1006        hal_ks_unlock [170]
                0.00    0.00       1/1005        hal_ks_cache_mark_used [171]
                0.00    0.00       1/1           ks_volatile_set_owner [207]
-----------------------------------------------
                0.02    0.00    4096/4096        hal_hash_finalize [63]
[94]     0.0    0.02    0.00    4096         swytebop [94]
-----------------------------------------------
                0.00    0.02       2/2           pkey_local_sign_rsa [7]
[95]     0.0    0.00    0.02       2         hal_rsa_private_key_to_der_extra [95]
                0.00    0.02       2/2           hal_rsa_private_key_to_der_internal [96]
-----------------------------------------------
                0.00    0.02       2/2           hal_rsa_private_key_to_der_extra [95]
[96]     0.0    0.00    0.02       2         hal_rsa_private_key_to_der_internal [96]
                0.00    0.02      27/31          hal_asn1_encode_integer [97]
                0.00    0.00       3/3           hal_asn1_encode_pkcs8_privatekeyinfo [104]
                0.00    0.00       4/55272       memcpy [38]
                0.00    0.00       3/1869520     memset [20]
                0.00    0.00      15/66          hal_asn1_encode_header [192]
-----------------------------------------------
                0.00    0.00       4/31          hal_asn1_encode_pkcs8_privatekeyinfo [104]
                0.00    0.02      27/31          hal_rsa_private_key_to_der_internal [96]
[97]     0.0    0.00    0.02      31         hal_asn1_encode_integer [97]
                0.00    0.02      10/6010        fp_to_unsigned_bin [22]
                0.00    0.00      31/13031       fp_unsigned_bin_size [99]
                0.00    0.00      24/18055       fp_count_bits [98]
                0.00    0.00      31/3031        fp_cmp_d [114]
                0.00    0.00      31/66          hal_asn1_encode_header [192]
-----------------------------------------------
                0.00    0.00      24/18055       hal_asn1_encode_integer [97]
                0.00    0.00    5000/18055       fp_div [17]
                0.01    0.00   13031/18055       fp_unsigned_bin_size [99]
[98]     0.0    0.01    0.00   18055         fp_count_bits [98]
-----------------------------------------------
                0.00    0.00      31/13031       hal_asn1_encode_integer [97]
                0.00    0.00    1000/13031       extract_component [115]
                0.00    0.00    1000/13031       create_blinding_factors [26]
                0.00    0.00    5000/13031       modexp2 [24]
                0.00    0.00    6000/13031       unpack_fp [21]
[99]     0.0    0.00    0.01   13031         fp_unsigned_bin_size [99]
                0.01    0.00   13031/18055       fp_count_bits [98]
-----------------------------------------------
                0.00    0.00       1/3003        hal_get_random [129]
                0.00    0.00       2/3003        hal_aes_keywrap [81]
                0.00    0.00    1000/3003        hal_aes_keyunwrap [11]
                0.00    0.00    2000/3003        hal_modexp2 [59]
[100]    0.0    0.00    0.00    3003         hal_core_free [100]
                0.00    0.00    3003/8723064     hal_task_yield [23]
                0.00    0.00    3003/11032       hal_critical_section_start [112]
                0.00    0.00    3003/11032       hal_critical_section_end [160]
-----------------------------------------------
                0.00    0.00       2/1002        hal_aes_keywrap [81]
                0.00    0.00    1000/1002        hal_aes_keyunwrap [11]
[101]    0.0    0.00    0.00    1002         load_kek [101]
                0.00    0.00    3006/5642554     hal_io_write [36]
-----------------------------------------------
                0.00    0.00       1/4014        hal_xdr_encode_variable_opaque [143]
                0.00    0.00       1/4014        pkey_load [89]
                0.00    0.00    1000/4014        pkey_sign [3]
                0.00    0.00    3012/4014        hal_rpc_server_dispatch [2]
[102]    0.0    0.00    0.00    4014         hal_xdr_encode_int [102]
-----------------------------------------------
                0.00    0.00       1/2004        hal_asn1_guess_key_type [117]
                0.00    0.00    1000/2004        hal_rsa_private_key_from_der [34]
                0.00    0.00    1003/2004        ks_find [105]
[103]    0.0    0.00    0.00    2004         memcmp [103]
-----------------------------------------------
                0.00    0.00       3/3           hal_rsa_private_key_to_der_internal [96]
[104]    0.0    0.00    0.00       3         hal_asn1_encode_pkcs8_privatekeyinfo [104]
                0.00    0.00       4/31          hal_asn1_encode_integer [97]
                0.00    0.00       1/55272       memcpy [38]
                0.00    0.00       1/2007        memmove [77]
                0.00    0.00       4/1869520     memset [20]
                0.00    0.00      20/66          hal_asn1_encode_header [192]
-----------------------------------------------
                0.00    0.00       1/1004        hal_ks_index_add [140]
                0.00    0.00       1/1004        hal_ks_index_delete [141]
                0.00    0.00       1/1004        hal_ks_index_replace [142]
                0.00    0.00    1001/1004        hal_ks_index_find [106]
[105]    0.0    0.00    0.00    1004         ks_find [105]
                0.00    0.00    1003/2004        memcmp [103]
-----------------------------------------------
                0.00    0.00       1/1001        hal_ks_rewrite_der [92]
                0.00    0.00    1000/1001        hal_ks_fetch [10]
[106]    0.0    0.00    0.00    1001         hal_ks_index_find [106]
                0.00    0.00    1001/1004        ks_find [105]
                0.00    0.00    1001/1007        hal_ks_index_fsck [168]
-----------------------------------------------
                0.00    0.00    1478/1478        rsa_crt [9]
[107]    0.0    0.00    0.00    1478         fp_add [107]
                0.00    0.00     478/761570      fp_cmp_mag [60]
-----------------------------------------------
                0.00    0.00       1/1005        uart_cli_read [150]
                0.00    0.00    1004/1005        dispatch_task [1]
[108]    0.0    0.00    0.00    1005         task_sleep [108]
                0.00    0.00    1005/8724079     task_yield [28]
-----------------------------------------------
                0.00    0.00    2046/2046        hal_pbkdf2 [43]
[109]    0.0    0.00    0.00    2046         hal_task_yield_maybe [109]
                0.00    0.00    2046/2046        task_yield_maybe [145]
-----------------------------------------------
                                                 <spontaneous>
[110]    0.0    0.00    0.00                 _cleanup_r [110]
                0.00    0.00       3/1869520     memset [20]
-----------------------------------------------
                0.00    0.00 7103545/7103545     task_yield [28]
[111]    0.0    0.00    0.00 7103545         default_idle_hook [111]
-----------------------------------------------
                0.00    0.00       1/11032       login [41]
                0.00    0.00       1/11032       pkey_local_get_key_type [157]
                0.00    0.00       1/11032       pkey_local_load [91]
                0.00    0.00       1/11032       hal_pkey_logout [156]
                0.00    0.00       2/11032       is_logged_in [155]
                0.00    0.00       2/11032       logout [152]
                0.00    0.00       2/11032       pkey_local_delete [137]
                0.00    0.00    1000/11032       pkey_local_sign [5]
                0.00    0.00    2008/11032       ibuf_put [124]
                0.00    0.00    2008/11032       ibuf_get [123]
                0.00    0.00    3003/11032       hal_core_free [100]
                0.00    0.00    3003/11032       hal_core_alloc_no_wait [73]
[112]    0.0    0.00    0.00   11032         hal_critical_section_start [112]
-----------------------------------------------
                0.00    0.00    5000/5000        fp_div [17]
[113]    0.0    0.00    0.00    5000         fp_cmp [113]
-----------------------------------------------
                0.00    0.00      31/3031        hal_asn1_encode_integer [97]
                0.00    0.00    3000/3031        rsa_crt [9]
[114]    0.0    0.00    0.00    3031         fp_cmp_d [114]
-----------------------------------------------
                0.00    0.00    1000/1000        hal_rsa_key_get_modulus [116]
[115]    0.0    0.00    0.00    1000         extract_component [115]
                0.00    0.00    1000/13031       fp_unsigned_bin_size [99]
-----------------------------------------------
                0.00    0.00    1000/1000        pkey_local_sign_rsa [7]
[116]    0.0    0.00    0.00    1000         hal_rsa_key_get_modulus [116]
                0.00    0.00    1000/1000        extract_component [115]
-----------------------------------------------
                0.00    0.00       1/1           pkey_local_load [91]
[117]    0.0    0.00    0.00       1         hal_asn1_guess_key_type [117]
                0.00    0.00       1/1001        hal_asn1_decode_pkcs8_privatekeyinfo [62]
                0.00    0.00       1/2004        memcmp [103]
-----------------------------------------------
                                                 <spontaneous>
[118]    0.0    0.00    0.00                 cli_loop [118]
                0.00    0.00       1/1           cli_run_command [119]
                0.00    0.00      15/17          uart_cli_write [139]
                0.00    0.00       1/1869520     memset [20]
                0.00    0.00       1/1           show_prompt [149]
                0.00    0.00      13/13          uart_cli_read [150]
                0.00    0.00       1/1           cli_add_history [198]
-----------------------------------------------
                0.00    0.00       1/1           cli_loop [118]
[119]    0.0    0.00    0.00       1         cli_run_command [119]
                0.00    0.00       1/1           cli_find_command [127]
                0.00    0.00       1/1           cli_parse_line [133]
                0.00    0.00       1/1869520     memset [20]
-----------------------------------------------
                0.00    0.00  190339/190339      HAL_SYSTICK_IRQHandler [121]
[120]    0.0    0.00    0.00  190339         HAL_SYSTICK_Callback [120]
                0.00    0.00   80300/80300       RxCallback [122]
-----------------------------------------------
                0.00    0.00  190338/190338      SysTick_Handler [125]
[121]    0.0    0.00    0.00  190338         HAL_SYSTICK_IRQHandler [121]
                0.00    0.00  190339/190339      HAL_SYSTICK_Callback [120]
-----------------------------------------------
                0.00    0.00   80300/80300       HAL_SYSTICK_Callback [120]
[122]    0.0    0.00    0.00   80300         RxCallback [122]
                0.00    0.00    1004/2008        ibuf_put [124]
                0.00    0.00    1004/2008        ibuf_get [123]
                0.00    0.00   80300/80300       hal_slip_process_char [159]
                0.00    0.00    1004/1004        task_next_waiting [175]
                0.00    0.00    1004/1017        task_wake [167]
-----------------------------------------------
                0.00    0.00    1004/2008        RxCallback [122]
                0.00    0.00    1004/2008        dispatch_task [1]
[123]    0.0    0.00    0.00    2008         ibuf_get [123]
                0.00    0.00    2008/11032       hal_critical_section_start [112]
                0.00    0.00    2008/11032       hal_critical_section_end [160]
-----------------------------------------------
                0.00    0.00    1004/2008        RxCallback [122]
                0.00    0.00    1004/2008        dispatch_task [1]
[124]    0.0    0.00    0.00    2008         ibuf_put [124]
                0.00    0.00    2008/11032       hal_critical_section_start [112]
                0.00    0.00    2008/11032       hal_critical_section_end [160]
-----------------------------------------------
                                                 <spontaneous>
[125]    0.0    0.00    0.00                 SysTick_Handler [125]
                0.00    0.00  190338/190338      HAL_SYSTICK_IRQHandler [121]
                0.00    0.00  190338/190338      HAL_IncTick [158]
-----------------------------------------------
                0.00    0.00       1/1           cli_find_command [127]
[126]    0.0    0.00    0.00       1         cli_command_name [126]
                0.00    0.00       2/55272       memcpy [38]
                0.00    0.00       1/2007        memmove [77]
                0.00    0.00       1/1869520     memset [20]
-----------------------------------------------
                                   1             cli_find_command [127]
                0.00    0.00       1/1           cli_run_command [119]
[127]    0.0    0.00    0.00       1+1       cli_find_command [127]
                0.00    0.00       1/1           cli_command_name [126]
                0.00    0.00       1/1           cmd_profile_stop [199]
                                   1             cli_find_command [127]
-----------------------------------------------
                0.00    0.00       1/1           hal_rpc_get_random [130]
[128]    0.0    0.00    0.00       1         get_random [128]
                0.00    0.00       1/1           hal_get_random [129]
-----------------------------------------------
                0.00    0.00       1/1           get_random [128]
[129]    0.0    0.00    0.00       1         hal_get_random [129]
                0.00    0.00       4/1708858     hal_io_wait [14]
                0.00    0.00       1/1003        hal_core_alloc [83]
                0.00    0.00       4/19084125     hal_io_read [19]
                0.00    0.00       1/3003        hal_core_free [100]
-----------------------------------------------
                0.00    0.00       1/1           hal_uuid_gen [131]
[130]    0.0    0.00    0.00       1         hal_rpc_get_random [130]
                0.00    0.00       1/1           get_random [128]
-----------------------------------------------
                0.00    0.00       1/1           pkey_local_load [91]
[131]    0.0    0.00    0.00       1         hal_uuid_gen [131]
                0.00    0.00       1/1           hal_rpc_get_random [130]
-----------------------------------------------
                0.00    0.00       1/1           hal_ks_rewrite_der [92]
[132]    0.0    0.00    0.00       1         hal_ks_block_update [132]
                0.00    0.00       1/1           hal_ks_index_replace [142]
                0.00    0.00       1/2           ks_volatile_write [134]
                0.00    0.00       1/2           ks_volatile_zero [147]
                0.00    0.00       1/3           ks_volatile_erase [146]
                0.00    0.00       1/2           hal_ks_cache_release [196]
                0.00    0.00       1/1           ks_volatile_deprecate [205]
                0.00    0.00       1/1           ks_volatile_copy_owner [204]
                0.00    0.00       1/1005        hal_ks_cache_mark_used [171]
-----------------------------------------------
                0.00    0.00       1/1           cli_run_command [119]
[133]    0.0    0.00    0.00       1         cli_parse_line [133]
                0.00    0.00       2/55272       memcpy [38]
                0.00    0.00       1/1869520     memset [20]
-----------------------------------------------
                0.00    0.00       1/2           hal_ks_block_update [132]
                0.00    0.00       1/2           hal_ks_store [93]
[134]    0.0    0.00    0.00       2         ks_volatile_write [134]
                0.00    0.00       2/55272       memcpy [38]
-----------------------------------------------
                0.00    0.00       1/1           pkey_delete [136]
[135]    0.0    0.00    0.00       1         hal_rpc_pkey_delete [135]
                0.00    0.00       1/1           pkey_local_delete [137]
-----------------------------------------------
                0.00    0.00       1/1           hal_rpc_server_dispatch [2]
[136]    0.0    0.00    0.00       1         pkey_delete [136]
                0.00    0.00       1/1           hal_rpc_pkey_delete [135]
                0.00    0.00       1/6013        hal_xdr_decode_int [164]
-----------------------------------------------
                0.00    0.00       1/1           hal_rpc_pkey_delete [135]
[137]    0.0    0.00    0.00       1         pkey_local_delete [137]
                0.00    0.00       1/1           hal_ks_delete [138]
                0.00    0.00       1/1869520     memset [20]
                0.00    0.00       2/11032       hal_critical_section_start [112]
                0.00    0.00       1/2           hal_rpc_is_logged_in [154]
                0.00    0.00       1/1           pkey_local_get_key_type [157]
                0.00    0.00       2/11032       hal_critical_section_end [160]
-----------------------------------------------
                0.00    0.00       1/1           pkey_local_delete [137]
[138]    0.0    0.00    0.00       1         hal_ks_delete [138]
                0.00    0.00       1/1           hal_ks_index_delete [141]
                0.00    0.00       1/2           ks_volatile_zero [147]
                0.00    0.00       1/3           ks_volatile_erase [146]
                0.00    0.00       1/1006        hal_ks_lock [169]
                0.00    0.00       1/1002        ks_volatile_test_owner [180]
                0.00    0.00       1/1006        hal_ks_unlock [170]
                0.00    0.00       1/1002        hal_ks_cache_find_block [176]
                0.00    0.00       1/2           hal_ks_cache_release [196]
-----------------------------------------------
                0.00    0.00       2/17          show_prompt [149]
                0.00    0.00      15/17          cli_loop [118]
[139]    0.0    0.00    0.00      17         uart_cli_write [139]
                0.00    0.00      17/275097      uart_send_bytes2 [53]
-----------------------------------------------
                0.00    0.00       1/1           hal_ks_store [93]
[140]    0.0    0.00    0.00       1         hal_ks_index_add [140]
                0.00    0.00       1/2007        memmove [77]
                0.00    0.00       1/1004        ks_find [105]
                0.00    0.00       2/1007        hal_ks_index_fsck [168]
-----------------------------------------------
                0.00    0.00       1/1           hal_ks_delete [138]
[141]    0.0    0.00    0.00       1         hal_ks_index_delete [141]
                0.00    0.00       1/2007        memmove [77]
                0.00    0.00       1/1004        ks_find [105]
                0.00    0.00       2/1007        hal_ks_index_fsck [168]
-----------------------------------------------
                0.00    0.00       1/1           hal_ks_block_update [132]
[142]    0.0    0.00    0.00       1         hal_ks_index_replace [142]
                0.00    0.00       1/2007        memmove [77]
                0.00    0.00       1/1004        ks_find [105]
                0.00    0.00       2/1007        hal_ks_index_fsck [168]
-----------------------------------------------
                0.00    0.00       1/1           pkey_load [89]
[143]    0.0    0.00    0.00       1         hal_xdr_encode_variable_opaque [143]
                0.00    0.00       1/1           hal_xdr_encode_fixed_opaque [144]
                0.00    0.00       1/4014        hal_xdr_encode_int [102]
-----------------------------------------------
                0.00    0.00       1/1           hal_xdr_encode_variable_opaque [143]
[144]    0.0    0.00    0.00       1         hal_xdr_encode_fixed_opaque [144]
                0.00    0.00       1/55272       memcpy [38]
-----------------------------------------------
                0.00    0.00    2046/2046        hal_task_yield_maybe [109]
[145]    0.0    0.00    0.00    2046         task_yield_maybe [145]
                0.00    0.00    2046/11238153     HAL_GetTick [72]
                0.00    0.00      10/8724079     task_yield [28]
-----------------------------------------------
                0.00    0.00       1/3           hal_ks_block_update [132]
                0.00    0.00       1/3           hal_ks_store [93]
                0.00    0.00       1/3           hal_ks_delete [138]
[146]    0.0    0.00    0.00       3         ks_volatile_erase [146]
                0.00    0.00       3/1869520     memset [20]
-----------------------------------------------
                0.00    0.00       1/2           hal_ks_block_update [132]
                0.00    0.00       1/2           hal_ks_delete [138]
[147]    0.0    0.00    0.00       2         ks_volatile_zero [147]
                0.00    0.00       2/1869520     memset [20]
-----------------------------------------------
                                                 <spontaneous>
[148]    0.0    0.00    0.00                 _mcleanup [148]
                0.00    0.00       1/1869520     memset [20]
-----------------------------------------------
                0.00    0.00       1/1           cli_loop [118]
[149]    0.0    0.00    0.00       1         show_prompt [149]
                0.00    0.00       2/17          uart_cli_write [139]
-----------------------------------------------
                0.00    0.00      13/13          cli_loop [118]
[150]    0.0    0.00    0.00      13         uart_cli_read [150]
                0.00    0.00       1/1005        task_sleep [108]
-----------------------------------------------
                0.00    0.00       1/1           logout [153]
[151]    0.0    0.00    0.00       1         hal_rpc_logout [151]
                0.00    0.00       1/1           logout [152]
-----------------------------------------------
                0.00    0.00       1/1           hal_rpc_logout [151]
[152]    0.0    0.00    0.00       1         logout [152]
                0.00    0.00       2/11032       hal_critical_section_start [112]
                0.00    0.00       1/1           hal_pkey_logout [156]
                0.00    0.00       2/11032       hal_critical_section_end [160]
-----------------------------------------------
                0.00    0.00       1/1           hal_rpc_server_dispatch [2]
[153]    0.0    0.00    0.00       1         logout [153]
                0.00    0.00       1/1           hal_rpc_logout [151]
                0.00    0.00       1/6013        hal_xdr_decode_int [164]
-----------------------------------------------
                0.00    0.00       1/2           pkey_local_delete [137]
                0.00    0.00       1/2           pkey_local_load [91]
[154]    0.0    0.00    0.00       2         hal_rpc_is_logged_in [154]
                0.00    0.00       2/2           is_logged_in [155]
-----------------------------------------------
                0.00    0.00       2/2           hal_rpc_is_logged_in [154]
[155]    0.0    0.00    0.00       2         is_logged_in [155]
                0.00    0.00       2/11032       hal_critical_section_start [112]
                0.00    0.00       2/11032       hal_critical_section_end [160]
-----------------------------------------------
                0.00    0.00       1/1           logout [152]
[156]    0.0    0.00    0.00       1         hal_pkey_logout [156]
                0.00    0.00       1/11032       hal_critical_section_start [112]
                0.00    0.00       2/2           hal_ks_logout [197]
                0.00    0.00       1/11032       hal_critical_section_end [160]
-----------------------------------------------
                0.00    0.00       1/1           pkey_local_delete [137]
[157]    0.0    0.00    0.00       1         pkey_local_get_key_type [157]
                0.00    0.00       1/11032       hal_critical_section_start [112]
                0.00    0.00       1/11032       hal_critical_section_end [160]
-----------------------------------------------
                0.00    0.00  190338/190338      SysTick_Handler [125]
[158]    0.0    0.00    0.00  190338         HAL_IncTick [158]
-----------------------------------------------
                0.00    0.00   80300/80300       RxCallback [122]
[159]    0.0    0.00    0.00   80300         hal_slip_process_char [159]
-----------------------------------------------
                0.00    0.00       1/11032       login [41]
                0.00    0.00       1/11032       pkey_local_get_key_type [157]
                0.00    0.00       1/11032       pkey_local_load [91]
                0.00    0.00       1/11032       hal_pkey_logout [156]
                0.00    0.00       2/11032       is_logged_in [155]
                0.00    0.00       2/11032       logout [152]
                0.00    0.00       2/11032       pkey_local_delete [137]
                0.00    0.00    1000/11032       pkey_local_sign [5]
                0.00    0.00    2008/11032       ibuf_put [124]
                0.00    0.00    2008/11032       ibuf_get [123]
                0.00    0.00    3003/11032       hal_core_alloc_no_wait [73]
                0.00    0.00    3003/11032       hal_core_free [100]
[160]    0.0    0.00    0.00   11032         hal_critical_section_end [160]
-----------------------------------------------
                0.00    0.00    8006/8006        hal_core_alloc_no_wait [73]
[161]    0.0    0.00    0.00    8006         hal_core_find [161]
                0.00    0.00    8006/8006        hal_core_iterate [162]
-----------------------------------------------
                0.00    0.00    8006/8006        hal_core_find [161]
[162]    0.0    0.00    0.00    8006         hal_core_iterate [162]
-----------------------------------------------
                0.00    0.00    1004/7017        hal_rpc_server_dispatch [2]
                0.00    0.00    6013/7017        hal_xdr_decode_int [164]
[163]    0.0    0.00    0.00    7017         hal_xdr_decode_int_peek [163]
-----------------------------------------------
                0.00    0.00       1/6013        pkey_delete [136]
                0.00    0.00       1/6013        logout [153]
                0.00    0.00       2/6013        login [42]
                0.00    0.00       3/6013        pkey_load [89]
                0.00    0.00    1002/6013        hal_xdr_decode_variable_opaque_ptr [179]
                0.00    0.00    1004/6013        hal_rpc_server_dispatch [2]
                0.00    0.00    4000/6013        pkey_sign [3]
[164]    0.0    0.00    0.00    6013         hal_xdr_decode_int [164]
                0.00    0.00    6013/7017        hal_xdr_decode_int_peek [163]
-----------------------------------------------
                0.00    0.00    1000/2006        hal_rsa_bf_lock [182]
                0.00    0.00    1006/2006        hal_ks_lock [169]
[165]    0.0    0.00    0.00    2006         task_mutex_lock [165]
-----------------------------------------------
                0.00    0.00    1000/2006        hal_rsa_bf_unlock [183]
                0.00    0.00    1006/2006        hal_ks_unlock [170]
[166]    0.0    0.00    0.00    2006         task_mutex_unlock [166]
-----------------------------------------------
                0.00    0.00      13/1017        HAL_UART1_RxCpltCallback [193]
                0.00    0.00    1004/1017        RxCallback [122]
[167]    0.0    0.00    0.00    1017         task_wake [167]
-----------------------------------------------
                0.00    0.00       2/1007        hal_ks_index_add [140]
                0.00    0.00       2/1007        hal_ks_index_delete [141]
                0.00    0.00       2/1007        hal_ks_index_replace [142]
                0.00    0.00    1001/1007        hal_ks_index_find [106]
[168]    0.0    0.00    0.00    1007         hal_ks_index_fsck [168]
-----------------------------------------------
                0.00    0.00       1/1006        hal_ks_store [93]
                0.00    0.00       1/1006        hal_ks_delete [138]
                0.00    0.00       1/1006        hal_ks_rewrite_der [92]
                0.00    0.00       1/1006        hal_get_pin [200]
                0.00    0.00       2/1006        hal_ks_logout [197]
                0.00    0.00    1000/1006        hal_ks_fetch [10]
[169]    0.0    0.00    0.00    1006         hal_ks_lock [169]
                0.00    0.00    1006/2006        task_mutex_lock [165]
-----------------------------------------------
                0.00    0.00       1/1006        hal_ks_store [93]
                0.00    0.00       1/1006        hal_ks_delete [138]
                0.00    0.00       1/1006        hal_ks_rewrite_der [92]
                0.00    0.00       1/1006        hal_get_pin [200]
                0.00    0.00       2/1006        hal_ks_logout [197]
                0.00    0.00    1000/1006        hal_ks_fetch [10]
[170]    0.0    0.00    0.00    1006         hal_ks_unlock [170]
                0.00    0.00    1006/2006        task_mutex_unlock [166]
-----------------------------------------------
                0.00    0.00       1/1005        hal_ks_block_update [132]
                0.00    0.00       1/1005        hal_ks_store [93]
                0.00    0.00       1/1005        hal_ks_rewrite_der [92]
                0.00    0.00       2/1005        hal_ks_cache_release [196]
                0.00    0.00    1000/1005        hal_ks_fetch [10]
[171]    0.0    0.00    0.00    1005         hal_ks_cache_mark_used [171]
-----------------------------------------------
                0.00    0.00    1004/1004        task_next_waiting [175]
[172]    0.0    0.00    0.00    1004         task_get_func [172]
-----------------------------------------------
                0.00    0.00    1004/1004        task_next_waiting [175]
[173]    0.0    0.00    0.00    1004         task_get_state [173]
-----------------------------------------------
                0.00    0.00    1004/1004        task_next_waiting [175]
[174]    0.0    0.00    0.00    1004         task_iterate [174]
-----------------------------------------------
                0.00    0.00    1004/1004        RxCallback [122]
[175]    0.0    0.00    0.00    1004         task_next_waiting [175]
                0.00    0.00    1004/1004        task_iterate [174]
                0.00    0.00    1004/1004        task_get_func [172]
                0.00    0.00    1004/1004        task_get_state [173]
-----------------------------------------------
                0.00    0.00       1/1002        hal_ks_delete [138]
                0.00    0.00    1001/1002        hal_ks_block_read_cached [181]
[176]    0.0    0.00    0.00    1002         hal_ks_cache_find_block [176]
-----------------------------------------------
                0.00    0.00    1002/1002        hal_mkm_volatile_read [71]
[177]    0.0    0.00    0.00    1002         hal_mkm_volatile_init [177]
-----------------------------------------------
                0.00    0.00    1002/1002        hal_xdr_decode_variable_opaque_ptr [179]
[178]    0.0    0.00    0.00    1002         hal_xdr_decode_fixed_opaque_ptr [178]
-----------------------------------------------
                0.00    0.00       1/1002        pkey_load [89]
                0.00    0.00       1/1002        login [42]
                0.00    0.00    1000/1002        pkey_sign [3]
[179]    0.0    0.00    0.00    1002         hal_xdr_decode_variable_opaque_ptr [179]
                0.00    0.00    1002/6013        hal_xdr_decode_int [164]
                0.00    0.00    1002/1002        hal_xdr_decode_fixed_opaque_ptr [178]
-----------------------------------------------
                0.00    0.00       1/1002        hal_ks_delete [138]
                0.00    0.00       1/1002        hal_ks_rewrite_der [92]
                0.00    0.00    1000/1002        hal_ks_fetch [10]
[180]    0.0    0.00    0.00    1002         ks_volatile_test_owner [180]
-----------------------------------------------
                0.00    0.00       1/1001        hal_ks_rewrite_der [92]
                0.00    0.00    1000/1001        hal_ks_fetch [10]
[181]    0.0    0.00    0.00    1001         hal_ks_block_read_cached [181]
                0.00    0.00    1001/1002        hal_ks_cache_find_block [176]
-----------------------------------------------
                0.00    0.00    1000/1000        create_blinding_factors [26]
[182]    0.0    0.00    0.00    1000         hal_rsa_bf_lock [182]
                0.00    0.00    1000/2006        task_mutex_lock [165]
-----------------------------------------------
                0.00    0.00    1000/1000        create_blinding_factors [26]
[183]    0.0    0.00    0.00    1000         hal_rsa_bf_unlock [183]
                0.00    0.00    1000/2006        task_mutex_unlock [166]
-----------------------------------------------
                0.00    0.00    1000/1000        pkey_local_sign_rsa [7]
[184]    0.0    0.00    0.00    1000         hal_rsa_key_needs_saving [184]
-----------------------------------------------
                0.00    0.00      13/170         DMA2_Stream2_IRQHandler [213]
                0.00    0.00     157/170         DMA1_Stream5_IRQHandler [212]
[185]    0.0    0.00    0.00     170         HAL_DMA_IRQHandler [185]
                0.00    0.00      92/92          UART_DMAReceiveCplt [187]
                0.00    0.00      78/78          UART_DMARxHalfCplt [191]
-----------------------------------------------
                0.00    0.00      92/92          UART_DMAReceiveCplt [187]
[186]    0.0    0.00    0.00      92         HAL_UART_RxCpltCallback [186]
                0.00    0.00      79/79          HAL_UART2_RxCpltCallback [188]
                0.00    0.00      13/13          HAL_UART1_RxCpltCallback [193]
-----------------------------------------------
                0.00    0.00      92/92          HAL_DMA_IRQHandler [185]
[187]    0.0    0.00    0.00      92         UART_DMAReceiveCplt [187]
                0.00    0.00      92/92          HAL_UART_RxCpltCallback [186]
-----------------------------------------------
                0.00    0.00      79/79          HAL_UART_RxCpltCallback [186]
[188]    0.0    0.00    0.00      79         HAL_UART2_RxCpltCallback [188]
-----------------------------------------------
                0.00    0.00      78/78          HAL_UART_RxHalfCpltCallback [190]
[189]    0.0    0.00    0.00      78         HAL_UART2_RxHalfCpltCallback [189]
-----------------------------------------------
                0.00    0.00      78/78          UART_DMARxHalfCplt [191]
[190]    0.0    0.00    0.00      78         HAL_UART_RxHalfCpltCallback [190]
                0.00    0.00      78/78          HAL_UART2_RxHalfCpltCallback [189]
-----------------------------------------------
                0.00    0.00      78/78          HAL_DMA_IRQHandler [185]
[191]    0.0    0.00    0.00      78         UART_DMARxHalfCplt [191]
                0.00    0.00      78/78          HAL_UART_RxHalfCpltCallback [190]
-----------------------------------------------
                0.00    0.00      15/66          hal_rsa_private_key_to_der_internal [96]
                0.00    0.00      20/66          hal_asn1_encode_pkcs8_privatekeyinfo [104]
                0.00    0.00      31/66          hal_asn1_encode_integer [97]
[192]    0.0    0.00    0.00      66         hal_asn1_encode_header [192]
-----------------------------------------------
                0.00    0.00      13/13          HAL_UART_RxCpltCallback [186]
[193]    0.0    0.00    0.00      13         HAL_UART1_RxCpltCallback [193]
                0.00    0.00      13/1017        task_wake [167]
-----------------------------------------------
                0.00    0.00       2/2           task_yield [28]
[194]    0.0    0.00    0.00       2         check_stack [194]
-----------------------------------------------
                0.00    0.00       2/2           hal_aes_keywrap [81]
[195]    0.0    0.00    0.00       2         hal_aes_keywrap_ciphertext_length [195]
-----------------------------------------------
                0.00    0.00       1/2           hal_ks_block_update [132]
                0.00    0.00       1/2           hal_ks_delete [138]
[196]    0.0    0.00    0.00       2         hal_ks_cache_release [196]
                0.00    0.00       2/1005        hal_ks_cache_mark_used [171]
-----------------------------------------------
                0.00    0.00       2/2           hal_pkey_logout [156]
[197]    0.0    0.00    0.00       2         hal_ks_logout [197]
                0.00    0.00       2/1006        hal_ks_lock [169]
                0.00    0.00       2/1006        hal_ks_unlock [170]
                0.00    0.00       1/1           ks_token_logout [203]
                0.00    0.00       1/1           ks_volatile_logout [206]
-----------------------------------------------
                0.00    0.00       1/1           cli_loop [118]
[198]    0.0    0.00    0.00       1         cli_add_history [198]
-----------------------------------------------
                0.00    0.00       1/1           cli_find_command [127]
[199]    0.0    0.00    0.00       1         cmd_profile_stop [199]
-----------------------------------------------
                0.00    0.00       1/1           login [41]
[200]    0.0    0.00    0.00       1         hal_get_pin [200]
                0.00    0.00       1/1006        hal_ks_lock [169]
                0.00    0.00       1/1006        hal_ks_unlock [170]
-----------------------------------------------
                0.00    0.00       1/1           hal_ks_rewrite_der [92]
[201]    0.0    0.00    0.00       1         hal_ks_attribute_scan [201]
-----------------------------------------------
                0.00    0.00       1/1           hal_ks_store [93]
[202]    0.0    0.00    0.00       1         hal_ks_cache_pick_lru [202]
-----------------------------------------------
                0.00    0.00       1/1           hal_ks_logout [197]
[203]    0.0    0.00    0.00       1         ks_token_logout [203]
-----------------------------------------------
                0.00    0.00       1/1           hal_ks_block_update [132]
[204]    0.0    0.00    0.00       1         ks_volatile_copy_owner [204]
-----------------------------------------------
                0.00    0.00       1/1           hal_ks_block_update [132]
[205]    0.0    0.00    0.00       1         ks_volatile_deprecate [205]
-----------------------------------------------
                0.00    0.00       1/1           hal_ks_logout [197]
[206]    0.0    0.00    0.00       1         ks_volatile_logout [206]
-----------------------------------------------
                0.00    0.00       1/1           hal_ks_store [93]
[207]    0.0    0.00    0.00       1         ks_volatile_set_owner [207]
-----------------------------------------------

 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

 [185] HAL_DMA_IRQHandler     [97] hal_asn1_encode_integer [159] hal_slip_process_char
  [72] HAL_GetTick           [104] hal_asn1_encode_pkcs8_privatekeyinfo [47] hal_slip_send
 [158] HAL_IncTick           [117] hal_asn1_guess_key_type [48] hal_slip_send_char
 [120] HAL_SYSTICK_Callback   [83] hal_core_alloc         [23] hal_task_yield
 [121] HAL_SYSTICK_IRQHandler [74] hal_core_alloc2       [109] hal_task_yield_maybe
 [193] HAL_UART1_RxCpltCallback [73] hal_core_alloc_no_wait (core.c) [131] hal_uuid_gen
 [188] HAL_UART2_RxCpltCallback [161] hal_core_find      [178] hal_xdr_decode_fixed_opaque_ptr
 [189] HAL_UART2_RxHalfCpltCallback [100] hal_core_free  [164] hal_xdr_decode_int
  [86] HAL_UART_GetState     [162] hal_core_iterate      [163] hal_xdr_decode_int_peek
 [186] HAL_UART_RxCpltCallback [160] hal_critical_section_end [179] hal_xdr_decode_variable_opaque_ptr
 [190] HAL_UART_RxHalfCpltCallback [112] hal_critical_section_start [144] hal_xdr_encode_fixed_opaque
  [58] HAL_UART_Transmit     [200] hal_get_pin           [102] hal_xdr_encode_int
 [122] RxCallback (hsm.c)    [129] hal_get_random        [143] hal_xdr_encode_variable_opaque
 [187] UART_DMAReceiveCplt (stm32f4xx_hal_uart.c) [63] hal_hash_finalize [55] hash_write_block (hash.c)
 [191] UART_DMARxHalfCplt (stm32f4xx_hal_uart.c) [88] hal_hash_initialize [123] ibuf_get (hsm.c)
  [65] UART_WaitOnFlagUntilTimeout (stm32f4xx_hal_uart.c) [57] hal_hash_update [124] ibuf_put (hsm.c)
  [78] __aeabi_uldivmod       [54] hal_hmac_finalize     [155] is_logged_in (rpc_misc.c)
  [13] __gnu_mcount_nc        [66] hal_hmac_initialize   [105] ks_find (ks_index.c)
  [67] __udivmoddi4           [68] hal_hmac_update       [203] ks_token_logout (ks_token.c)
 [110] _cleanup_r             [19] hal_io_read           [204] ks_volatile_copy_owner (ks_volatile.c)
   [6] _mcount_internal       [14] hal_io_wait           [205] ks_volatile_deprecate (ks_volatile.c)
 [194] check_stack (task.c)   [15] hal_io_wait2          [146] ks_volatile_erase (ks_volatile.c)
 [198] cli_add_history (libcli.c) [36] hal_io_write      [206] ks_volatile_logout (ks_volatile.c)
 [126] cli_command_name      [201] hal_ks_attribute_scan [207] ks_volatile_set_owner (ks_volatile.c)
 [127] cli_find_command (libcli.c) [181] hal_ks_block_read_cached [180] ks_volatile_test_owner (ks_volatile.c)
 [133] cli_parse_line (libcli.c) [132] hal_ks_block_update [134] ks_volatile_write (ks_volatile.c)
 [119] cli_run_command       [176] hal_ks_cache_find_block [147] ks_volatile_zero (ks_volatile.c)
 [199] cmd_profile_stop (mgmt-misc.c) [171] hal_ks_cache_mark_used [101] load_kek (aes_keywrap.c)
  [80] construct_key_block (ks.c) [202] hal_ks_cache_pick_lru [41] login (rpc_misc.c)
  [26] create_blinding_factors (rsa.c) [196] hal_ks_cache_release [42] login (rpc_server.c)
 [111] default_idle_hook (task.c) [138] hal_ks_delete    [152] logout (rpc_misc.c)
   [1] dispatch_task (hsm.c)  [10] hal_ks_fetch          [153] logout (rpc_server.c)
  [12] do_block (aes_keywrap.c) [140] hal_ks_index_add   [103] memcmp
  [44] do_hmac (pbkdf2.c)    [141] hal_ks_index_delete    [38] memcpy
 [115] extract_component (rsa.c) [106] hal_ks_index_find  [77] memmove
 [107] fp_add                [168] hal_ks_index_fsck      [20] memset
 [113] fp_cmp                [142] hal_ks_index_replace   [24] modexp2 (rsa.c)
 [114] fp_cmp_d              [169] hal_ks_lock            [31] next_task (task.c)
  [60] fp_cmp_mag            [197] hal_ks_logout          [82] pkcs1_5_pad (rpc_pkey.c)
  [98] fp_count_bits          [92] hal_ks_rewrite_der    [136] pkey_delete (rpc_server.c)
  [17] fp_div                 [93] hal_ks_store           [89] pkey_load (rpc_server.c)
  [25] fp_div_2d             [170] hal_ks_unlock         [137] pkey_local_delete (rpc_pkey.c)
  [37] fp_lshd                [69] hal_mkm_get_kek       [157] pkey_local_get_key_type (rpc_pkey.c)
  [16] fp_mod                [177] hal_mkm_volatile_init (mkm.c) [91] pkey_local_load (rpc_pkey.c)
  [39] fp_mul                 [71] hal_mkm_volatile_read   [5] pkey_local_sign (rpc_pkey.c)
  [32] fp_mul_2d              [70] hal_mkmif_read          [7] pkey_local_sign_rsa (rpc_pkey.c)
  [61] fp_mul_comba32         [75] hal_mkmif_read_word     [3] pkey_sign (rpc_server.c)
  [45] fp_mul_comba64         [59] hal_modexp2             [9] rsa_crt (rsa.c)
  [33] fp_mul_d               [43] hal_pbkdf2             [87] s_fp_add
  [18] fp_mulmod             [156] hal_pkey_logout        [29] s_fp_sub
  [30] fp_read_unsigned_bin  [130] hal_rpc_get_random    [149] show_prompt (libcli.c)
  [79] fp_reverse            [154] hal_rpc_is_logged_in   [56] sw_hash_core_sha256 (hash.c)
  [76] fp_rshd                [40] hal_rpc_login          [94] swytebop (hash.c)
  [50] fp_sqr                [151] hal_rpc_logout        [172] task_get_func
  [51] fp_sqr_comba64        [135] hal_rpc_pkey_delete   [173] task_get_state
  [27] fp_sqrmod              [90] hal_rpc_pkey_load     [174] task_iterate
  [64] fp_sub                  [4] hal_rpc_pkey_sign     [165] task_mutex_lock
  [22] fp_to_unsigned_bin     [46] hal_rpc_sendto        [166] task_mutex_unlock
  [99] fp_unsigned_bin_size    [2] hal_rpc_server_dispatch [175] task_next_waiting (hsm.c)
  [84] get_buffer (modexp.c) [182] hal_rsa_bf_lock       [108] task_sleep
 [128] get_random (rpc_misc.c) [183] hal_rsa_bf_unlock   [167] task_wake
  [11] hal_aes_keyunwrap       [8] hal_rsa_decrypt        [28] task_yield
  [81] hal_aes_keywrap       [116] hal_rsa_key_get_modulus [145] task_yield_maybe
 [195] hal_aes_keywrap_ciphertext_length [184] hal_rsa_key_needs_saving [150] uart_cli_read (mgmt-cli.c)
  [85] hal_asn1_decode_header [34] hal_rsa_private_key_from_der [139] uart_cli_write (mgmt-cli.c)
  [35] hal_asn1_decode_integer [95] hal_rsa_private_key_to_der_extra [53] uart_send_bytes2
  [62] hal_asn1_decode_pkcs8_privatekeyinfo [96] hal_rsa_private_key_to_der_internal [52] uart_send_char2
 [192] hal_asn1_encode_header [49] hal_serial_send_char   [21] unpack_fp (rsa.c)
-------------- next part --------------
Flat profile:

Each sample counts as 0.001 seconds.
  %   cumulative   self              self     total           
 time   seconds   seconds    calls   s/call   s/call  name    
 36.83     62.61    62.61                             _mcount_internal
 19.47     95.71    33.10                             __gnu_mcount_nc
  7.17    107.90    12.18  1869765     0.00     0.00  memset
  7.06    119.90    12.00 10988920     0.00     0.00  hal_io_read
  4.69    127.87     7.97   289490     0.00     0.00  s_fp_sub
  4.12    134.87     7.00 12785938     0.00     0.00  next_task
  3.14    140.21     5.34  1684001     0.00     0.00  fp_mul_2d
  3.06    145.41     5.20   749340     0.00     0.00  fp_mul_d
  2.23    149.20     3.79  1030149     0.00     0.00  fp_div_2d
  1.77    152.20     3.00    55272     0.00     0.00  memcpy
  1.62    154.95     2.75  5657648     0.00     0.00  task_yield
  1.34    157.23     2.27 24231740     0.00     0.00  HAL_GPIO_ReadPin
  1.34    159.50     2.27   293000     0.00     0.00  fp_lshd
  0.95    161.12     1.61     2000     0.00     0.00  fp_mul_comba64
  0.83    162.53     1.42    11025     0.00     0.00  hal_io_wait2
  0.59    163.54     1.01     5000     0.00     0.00  fp_div
  0.50    164.39     0.85     8192     0.00     0.00  sw_hash_core_sha256
  0.44    165.14     0.76   761830     0.00     0.00  fp_cmp_mag
  0.43    165.87     0.73  8162542     0.00     0.00  HAL_GetTick
  0.41    166.57     0.70    13001     0.00     0.00  fp_read_unsigned_bin
  0.30    167.07     0.50   547052     0.00     0.00  hal_io_write
  0.20    167.41     0.34   550202     0.00     0.00  UART_WaitOnFlagUntilTimeout
  0.18    167.71     0.30   275097     0.00     0.00  HAL_UART_Transmit
  0.18    168.01     0.30     6010     0.00     0.00  fp_to_unsigned_bin
  0.15    168.26     0.25  5656633     0.00     0.00  hal_task_yield
  0.14    168.50     0.24                             __udivmoddi4
  0.13    168.72     0.23     2000     0.00     0.00  fp_sqr_comba64
  0.12    168.92     0.20   289000     0.00     0.00  fp_sub
  0.11    169.12     0.20   275097     0.00     0.00  uart_send_bytes2
  0.06    169.23     0.11     1000     0.00     0.00  hal_modexp2
  0.06    169.33     0.10   275080     0.00     0.00  hal_serial_send_char
  0.06    169.43     0.10     3003     0.00     0.00  hal_core_alloc_no_wait
  0.05    169.51     0.09   272072     0.00     0.00  hal_slip_send_char
  0.04    169.58     0.06     6010     0.00     0.00  fp_reverse
  0.03    169.64     0.06                             __aeabi_uldivmod
  0.03    169.68     0.04   275080     0.00     0.00  uart_send_char2
  0.02    169.71     0.03     2000     0.00     0.00  fp_mul_comba32
  0.02    169.74     0.03     2048     0.00     0.00  hal_hmac_initialize
  0.02    169.77     0.03     1004     0.00     0.00  hal_slip_send
  0.02    169.80     0.03   275097     0.00     0.00  HAL_UART_GetState
  0.02    169.82     0.03     4096     0.00     0.00  swytebop
  0.01    169.84     0.02     5000     0.00     0.00  fp_rshd
  0.01    169.86     0.02     8194     0.00     0.00  hal_hash_update
  0.01    169.88     0.02        1     0.02     1.60  hal_pbkdf2
  0.01    169.90     0.01     2000     0.00     0.00  get_buffer
  0.01    169.91     0.01    18055     0.00     0.00  fp_count_bits
  0.01    169.92     0.01     4096     0.00     0.00  hal_hash_finalize
  0.01    169.93     0.01  7128290     0.00     0.00  default_idle_hook
  0.00    169.94     0.01     8192     0.00     0.00  hash_write_block
  0.00    169.94     0.01    20002     0.00     0.00  hal_asn1_decode_header
  0.00    169.95     0.01     4096     0.00     0.00  hal_hash_initialize
  0.00    169.96     0.01     6000     0.00     0.00  unpack_fp
  0.00    169.96     0.01     1000     0.00     0.01  hal_rsa_private_key_from_der
  0.00    169.96     0.00     2004     0.00     0.01  hal_mkmif_read
  0.00    169.97     0.00     1000     0.00     0.05  pkey_local_sign_rsa
  0.00    169.97     0.00     5000     0.00     0.00  fp_mod
  0.00    169.97     0.00     2048     0.00     0.00  do_hmac
  0.00    169.98     0.00     1000     0.00     0.04  hal_rsa_decrypt
  0.00    169.98     0.00     1000     0.00     0.01  modexp2
  0.00    169.98     0.00    10024     0.00     0.00  hal_io_wait
  0.00    169.98     0.00    10001     0.00     0.00  hal_asn1_decode_integer
  0.00    169.99     0.00     4000     0.00     0.00  fp_mul
  0.00    169.99     0.00     3003     0.00     0.00  hal_core_free
  0.00    169.99     0.00     2048     0.00     0.00  hal_hmac_finalize
  0.00    169.99     0.00     2007     0.00     0.00  memmove
  0.00    169.99     0.00     1000     0.00     0.00  s_fp_add
  0.00    170.00     0.00    13031     0.00     0.00  fp_unsigned_bin_size
  0.00    170.00     0.00     5000     0.00     0.00  fp_cmp
  0.00    170.00     0.00     4014     0.00     0.00  hal_xdr_encode_int
  0.00    170.00     0.00     3000     0.00     0.01  fp_mulmod
  0.00    170.00     0.00     2050     0.00     0.00  hal_hmac_update
  0.00    170.00     0.00     2046     0.00     0.00  task_yield_maybe
  0.00    170.00     0.00     2008     0.00     0.00  ibuf_put
  0.00    170.00     0.00     1000     0.00     0.01  create_blinding_factors
  0.00    170.00     0.00     1000     0.00     0.00  hal_core_alloc2
  0.00    170.00     0.00     1000     0.00     0.00  hal_rsa_key_needs_saving
  0.00    170.00     0.00   170004     0.00     0.00  HAL_SYSTICK_Callback
  0.00    170.00     0.00   170003     0.00     0.00  HAL_IncTick
  0.00    170.00     0.00   170003     0.00     0.00  HAL_SYSTICK_IRQHandler
  0.00    170.00     0.00    80300     0.00     0.00  RxCallback
  0.00    170.00     0.00    80300     0.00     0.00  hal_slip_process_char
  0.00    170.00     0.00    11032     0.00     0.00  hal_critical_section_end
  0.00    170.00     0.00    11032     0.00     0.00  hal_critical_section_start
  0.00    170.00     0.00     8006     0.00     0.00  hal_core_find
  0.00    170.00     0.00     8006     0.00     0.00  hal_core_iterate
  0.00    170.00     0.00     7017     0.00     0.00  hal_xdr_decode_int_peek
  0.00    170.00     0.00     6013     0.00     0.00  hal_xdr_decode_int
  0.00    170.00     0.00     3031     0.00     0.00  fp_cmp_d
  0.00    170.00     0.00     2046     0.00     0.00  hal_task_yield_maybe
  0.00    170.00     0.00     2008     0.00     0.00  ibuf_get
  0.00    170.00     0.00     2006     0.00     0.00  task_mutex_lock
  0.00    170.00     0.00     2006     0.00     0.00  task_mutex_unlock
  0.00    170.00     0.00     2004     0.00     0.00  memcmp
  0.00    170.00     0.00     2000     0.00     0.00  fp_sqr
  0.00    170.00     0.00     2000     0.00     0.00  fp_sqrmod
  0.00    170.00     0.00     1490     0.00     0.00  fp_add
  0.00    170.00     0.00     1017     0.00     0.00  task_wake
  0.00    170.00     0.00     1007     0.00     0.00  hal_ks_index_fsck
  0.00    170.00     0.00     1006     0.00     0.00  hal_ks_lock
  0.00    170.00     0.00     1006     0.00     0.00  hal_ks_unlock
  0.00    170.00     0.00     1005     0.00     0.00  hal_ks_cache_mark_used
  0.00    170.00     0.00     1005     0.00     0.00  task_sleep
  0.00    170.00     0.00     1004     0.00     0.00  hal_aes_keywrap_ciphertext_length
  0.00    170.00     0.00     1004     0.00     0.00  hal_rpc_sendto
  0.00    170.00     0.00     1004     0.00     0.07  hal_rpc_server_dispatch
  0.00    170.00     0.00     1004     0.00     0.00  ks_find
  0.00    170.00     0.00     1004     0.00     0.00  task_get_func
  0.00    170.00     0.00     1004     0.00     0.00  task_get_state
  0.00    170.00     0.00     1004     0.00     0.00  task_iterate
  0.00    170.00     0.00     1004     0.00     0.00  task_next_waiting
  0.00    170.00     0.00     1003     0.00     0.00  hal_core_alloc
  0.00    170.00     0.00     1002     0.00     0.00  do_keywrap_core
  0.00    170.00     0.00     1002     0.00     0.00  hal_ks_cache_find_block
  0.00    170.00     0.00     1002     0.00     0.02  hal_mkm_get_kek
  0.00    170.00     0.00     1002     0.00     0.00  hal_mkm_volatile_init
  0.00    170.00     0.00     1002     0.00     0.02  hal_mkm_volatile_read
  0.00    170.00     0.00     1002     0.00     0.01  hal_mkmif_read_word
  0.00    170.00     0.00     1002     0.00     0.00  hal_xdr_decode_fixed_opaque_ptr
  0.00    170.00     0.00     1002     0.00     0.00  hal_xdr_decode_variable_opaque_ptr
  0.00    170.00     0.00     1002     0.00     0.00  ks_volatile_test_owner
  0.00    170.00     0.00     1002     0.00     0.00  load_kek
  0.00    170.00     0.00     1001     0.00     0.00  hal_asn1_decode_pkcs8_privatekeyinfo
  0.00    170.00     0.00     1001     0.00     0.00  hal_ks_block_read_cached
  0.00    170.00     0.00     1001     0.00     0.00  hal_ks_index_find
  0.00    170.00     0.00     1000     0.00     0.00  extract_component
  0.00    170.00     0.00     1000     0.00     0.00  hal_aes_keyunwrap
  0.00    170.00     0.00     1000     0.00     0.02  hal_ks_fetch
  0.00    170.00     0.00     1000     0.00     0.07  hal_rpc_pkey_sign
  0.00    170.00     0.00     1000     0.00     0.00  hal_rsa_bf_lock
  0.00    170.00     0.00     1000     0.00     0.00  hal_rsa_bf_unlock
  0.00    170.00     0.00     1000     0.00     0.00  hal_rsa_key_get_modulus
  0.00    170.00     0.00     1000     0.00     0.00  pkcs1_5_pad
  0.00    170.00     0.00     1000     0.00     0.07  pkey_local_sign
  0.00    170.00     0.00     1000     0.00     0.07  pkey_sign
  0.00    170.00     0.00     1000     0.00     0.04  rsa_crt
  0.00    170.00     0.00      170     0.00     0.00  HAL_DMA_IRQHandler
  0.00    170.00     0.00       92     0.00     0.00  HAL_UART_RxCpltCallback
  0.00    170.00     0.00       92     0.00     0.00  UART_DMAReceiveCplt
  0.00    170.00     0.00       79     0.00     0.00  HAL_UART2_RxCpltCallback
  0.00    170.00     0.00       78     0.00     0.00  HAL_UART2_RxHalfCpltCallback
  0.00    170.00     0.00       78     0.00     0.00  HAL_UART_RxHalfCpltCallback
  0.00    170.00     0.00       78     0.00     0.00  UART_DMARxHalfCplt
  0.00    170.00     0.00       66     0.00     0.00  hal_asn1_encode_header
  0.00    170.00     0.00       31     0.00     0.00  hal_asn1_encode_integer
  0.00    170.00     0.00       26     0.00     0.00  uart_cli_read
  0.00    170.00     0.00       19     0.00     0.00  uart_cli_write
  0.00    170.00     0.00       13     0.00     0.00  HAL_UART1_RxCpltCallback
  0.00    170.00     0.00        3     0.00     0.00  hal_asn1_encode_pkcs8_privatekeyinfo
  0.00    170.00     0.00        3     0.00     0.00  ks_volatile_erase
  0.00    170.00     0.00        2     0.00     0.00  check_stack
  0.00    170.00     0.00        2     0.00     0.02  construct_key_block
  0.00    170.00     0.00        2     0.00     0.00  hal_aes_keywrap
  0.00    170.00     0.00        2     0.00     0.00  hal_ks_cache_release
  0.00    170.00     0.00        2     0.00     0.00  hal_ks_logout
  0.00    170.00     0.00        2     0.00     0.00  hal_rpc_is_logged_in
  0.00    170.00     0.00        2     0.00     0.01  hal_rsa_private_key_to_der_extra
  0.00    170.00     0.00        2     0.00     0.01  hal_rsa_private_key_to_der_internal
  0.00    170.00     0.00        2     0.00     0.00  is_logged_in
  0.00    170.00     0.00        2     0.00     0.00  ks_volatile_write
  0.00    170.00     0.00        2     0.00     0.00  ks_volatile_zero
  0.00    170.00     0.00        1     0.00     0.00  cli_add_history
  0.00    170.00     0.00        1     0.00     0.00  cli_command_name
  0.00    170.00     0.00        1     0.00     0.00  cli_find_command
  0.00    170.00     0.00        1     0.00     0.00  cli_parse_line
  0.00    170.00     0.00        1     0.00     0.00  cli_run_command
  0.00    170.00     0.00        1     0.00     0.00  cmd_profile_stop
  0.00    170.00     0.00        1     0.00     0.01  get_random
  0.00    170.00     0.00        1     0.00     0.00  hal_asn1_guess_key_type
  0.00    170.00     0.00        1     0.00     0.00  hal_get_pin
  0.00    170.00     0.00        1     0.00     0.01  hal_get_random
  0.00    170.00     0.00        1     0.00     0.00  hal_ks_attribute_scan
  0.00    170.00     0.00        1     0.00     0.00  hal_ks_block_update
  0.00    170.00     0.00        1     0.00     0.00  hal_ks_cache_pick_lru
  0.00    170.00     0.00        1     0.00     0.00  hal_ks_delete
  0.00    170.00     0.00        1     0.00     0.00  hal_ks_index_add
  0.00    170.00     0.00        1     0.00     0.00  hal_ks_index_delete
  0.00    170.00     0.00        1     0.00     0.00  hal_ks_index_replace
  0.00    170.00     0.00        1     0.00     0.02  hal_ks_rewrite_der
  0.00    170.00     0.00        1     0.00     0.02  hal_ks_store
  0.00    170.00     0.00        1     0.00     0.00  hal_pkey_logout
  0.00    170.00     0.00        1     0.00     0.01  hal_rpc_get_random
  0.00    170.00     0.00        1     0.00     1.60  hal_rpc_login
  0.00    170.00     0.00        1     0.00     0.00  hal_rpc_logout
  0.00    170.00     0.00        1     0.00     0.00  hal_rpc_pkey_delete
  0.00    170.00     0.00        1     0.00     0.03  hal_rpc_pkey_load
  0.00    170.00     0.00        1     0.00     0.01  hal_uuid_gen
  0.00    170.00     0.00        1     0.00     0.00  hal_xdr_encode_fixed_opaque
  0.00    170.00     0.00        1     0.00     0.00  hal_xdr_encode_variable_opaque
  0.00    170.00     0.00        1     0.00     0.00  ks_token_logout
  0.00    170.00     0.00        1     0.00     0.00  ks_volatile_copy_owner
  0.00    170.00     0.00        1     0.00     0.00  ks_volatile_deprecate
  0.00    170.00     0.00        1     0.00     0.00  ks_volatile_logout
  0.00    170.00     0.00        1     0.00     0.00  ks_volatile_set_owner
  0.00    170.00     0.00        1     0.00     1.60  login
  0.00    170.00     0.00        1     0.00     1.60  login
  0.00    170.00     0.00        1     0.00     0.00  logout
  0.00    170.00     0.00        1     0.00     0.00  logout
  0.00    170.00     0.00        1     0.00     0.00  pkey_delete
  0.00    170.00     0.00        1     0.00     0.03  pkey_load
  0.00    170.00     0.00        1     0.00     0.00  pkey_local_delete
  0.00    170.00     0.00        1     0.00     0.00  pkey_local_get_key_type
  0.00    170.00     0.00        1     0.00     0.03  pkey_local_load
  0.00    170.00     0.00        1     0.00     0.00  show_prompt

 %         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 2 byte(s) for 0.00% of 170.00 seconds

index % time    self  children    called     name
                                                 <spontaneous>
[1]     43.5    0.00   73.99                 dispatch_task [1]
                0.00   72.64    1004/1004        hal_rpc_server_dispatch [2]
                0.00    1.34    1004/1004        hal_rpc_sendto [51]
                0.01    0.00    1004/1869765     memset [22]
                0.00    0.00    1004/1005        task_sleep [109]
                0.00    0.00    1004/2008        ibuf_put [114]
                0.00    0.00    1004/2008        ibuf_get [156]
-----------------------------------------------
                0.00   72.64    1004/1004        dispatch_task [1]
[2]     42.7    0.00   72.64    1004         hal_rpc_server_dispatch [2]
                0.00   71.01    1000/1000        pkey_sign [3]
                0.00    1.60       1/1           login [49]
                0.00    0.03       1/1           pkey_load [84]
                0.00    0.00    3012/4014        hal_xdr_encode_int [113]
                0.00    0.00       1/1           pkey_delete [132]
                0.00    0.00    1004/6013        hal_xdr_decode_int [154]
                0.00    0.00    1004/7017        hal_xdr_decode_int_peek [153]
                0.00    0.00       1/1           logout [207]
-----------------------------------------------
                0.00   71.01    1000/1000        hal_rpc_server_dispatch [2]
[3]     41.8    0.00   71.01    1000         pkey_sign [3]
                0.00   71.01    1000/1000        hal_rpc_pkey_sign [4]
                0.00    0.00    1000/4014        hal_xdr_encode_int [113]
                0.00    0.00    4000/6013        hal_xdr_decode_int [154]
                0.00    0.00    1000/1002        hal_xdr_decode_variable_opaque_ptr [174]
-----------------------------------------------
                0.00   71.01    1000/1000        pkey_sign [3]
[4]     41.8    0.00   71.01    1000         hal_rpc_pkey_sign [4]
                0.00   71.01    1000/1000        pkey_local_sign [5]
-----------------------------------------------
                0.00   71.01    1000/1000        hal_rpc_pkey_sign [4]
[5]     41.8    0.00   71.01    1000         pkey_local_sign [5]
                0.00   47.23    1000/1000        pkey_local_sign_rsa [7]
                0.00   23.77    1000/1000        hal_ks_fetch [12]
                0.01    0.00    1000/1869765     memset [22]
                0.00    0.00    1000/11032       hal_critical_section_start [150]
                0.00    0.00    1000/11032       hal_critical_section_end [149]
-----------------------------------------------
                                                 <spontaneous>
[6]     36.8   62.61    0.00                 _mcount_internal [6]
-----------------------------------------------
                0.00   47.23    1000/1000        pkey_local_sign [5]
[7]     27.8    0.00   47.23    1000         pkey_local_sign_rsa [7]
                0.00   42.11    1000/1000        hal_rsa_decrypt [8]
                0.01    5.00    1000/1000        hal_rsa_private_key_from_der [36]
                0.00    0.06    1000/1000        pkcs1_5_pad [80]
                0.00    0.02       1/1           hal_ks_rewrite_der [91]
                0.00    0.02       2/2           hal_rsa_private_key_to_der_extra [93]
                0.00    0.00    1000/1000        hal_rsa_key_needs_saving [115]
                0.00    0.00    1000/1000        hal_rsa_key_get_modulus [117]
                0.00    0.00       1/1869765     memset [22]
-----------------------------------------------
                0.00   42.11    1000/1000        pkey_local_sign_rsa [7]
[8]     24.8    0.00   42.11    1000         hal_rsa_decrypt [8]
                0.00   39.77    1000/1000        rsa_crt [9]
                0.00    1.86    1000/6000        unpack_fp [23]
                0.05    0.41    1000/13001       fp_read_unsigned_bin [33]
                0.01    0.00    2000/1869765     memset [22]
-----------------------------------------------
                0.00   39.77    1000/1000        hal_rsa_decrypt [8]
[9]     23.4    0.00   39.77    1000         rsa_crt [9]
                0.00   15.74    3000/3000        fp_mulmod [19]
                0.00   13.52    1000/1000        modexp2 [21]
                0.00    9.91    1000/1000        create_blinding_factors [29]
                0.00    0.52    1000/4000        fp_mul [44]
                0.04    0.00    1490/289490      s_fp_sub [31]
                0.03    0.00    5000/1869765     memset [22]
                0.00    0.00    1000/1000        s_fp_add [108]
                0.00    0.00    1000/289000      fp_sub [68]
                0.00    0.00    1490/1490        fp_add [122]
                0.00    0.00    3000/3031        fp_cmp_d [155]
-----------------------------------------------
                                                 <spontaneous>
[10]    19.5   33.10    0.00                 __gnu_mcount_nc [10]
-----------------------------------------------
                0.13    2.23    1001/11025       hal_modexp2 [39]
                1.29   22.35   10024/11025       hal_io_wait [13]
[11]    15.3    1.42   24.58   11025         hal_io_wait2 [11]
               11.91    2.15 10911638/10988920     hal_io_read [20]
                0.25   10.26 5653630/5656633     hal_task_yield [26]
-----------------------------------------------
                0.00   23.77    1000/1000        pkey_local_sign [5]
[12]    14.0    0.00   23.77    1000         hal_ks_fetch [12]
                0.00   21.26    1000/1002        hal_mkm_get_kek [17]
                0.00    2.46    1000/1000        hal_aes_keyunwrap [41]
                0.05    0.00    1000/55272       memcpy [40]
                0.00    0.00    1000/1006        hal_ks_lock [162]
                0.00    0.00    1000/1001        hal_ks_index_find [177]
                0.00    0.00    1000/1002        ks_volatile_test_owner [175]
                0.00    0.00    1000/1001        hal_ks_block_read_cached [176]
                0.00    0.00    1000/1005        hal_ks_cache_mark_used [164]
                0.00    0.00    1000/1006        hal_ks_unlock [163]
-----------------------------------------------
                0.00    0.01       4/10024       hal_get_random [100]
                0.00    2.36    1002/10024       do_keywrap_core [42]
                0.00   21.26    9018/10024       hal_mkmif_read [16]
[13]    13.9    0.00   23.63   10024         hal_io_wait [13]
                1.29   22.35   10024/11025       hal_io_wait2 [11]
-----------------------------------------------
                0.00    9.44    2000/5000        fp_sqrmod [30]
                0.00   14.16    3000/5000        fp_mulmod [19]
[14]    13.9    0.00   23.60    5000         fp_mod [14]
                1.01   22.29    5000/5000        fp_div [15]
                0.27    0.00    5000/55272       memcpy [40]
                0.03    0.00    5000/1869765     memset [22]
-----------------------------------------------
                1.01   22.29    5000/5000        fp_mod [14]
[15]    13.7    1.01   22.29    5000         fp_div [15]
                7.93    0.00  288000/289490      s_fp_sub [31]
                5.20    0.00  749340/749340      fp_mul_d [35]
                2.27    1.88  293000/293000      fp_lshd [38]
                3.10    0.00  476340/1869765     memset [22]
                0.82    0.00   15000/55272       memcpy [40]
                0.20    0.29  288000/289000      fp_sub [68]
                0.47    0.00  471340/761830      fp_cmp_mag [62]
                0.02    0.03    5000/5000        fp_rshd [82]
                0.02    0.03    5000/1030149     fp_div_2d [27]
                0.03    0.00   10000/1684001     fp_mul_2d [34]
                0.00    0.00    5000/18055       fp_count_bits [96]
                0.00    0.00    5000/5000        fp_cmp [112]
-----------------------------------------------
                0.00   10.65    1002/2004        hal_mkm_volatile_read [18]
                0.00   10.65    1002/2004        hal_mkmif_read_word [25]
[16]    12.5    0.00   21.30    2004         hal_mkmif_read [16]
                0.00   21.26    9018/10024       hal_io_wait [13]
                0.02    0.00   18036/547052      hal_io_write [64]
                0.01    0.00    9018/10988920     hal_io_read [20]
-----------------------------------------------
                0.00    0.04       2/1002        construct_key_block [83]
                0.00   21.26    1000/1002        hal_ks_fetch [12]
[17]    12.5    0.00   21.30    1002         hal_mkm_get_kek [17]
                0.00   21.30    1002/1002        hal_mkm_volatile_read [18]
-----------------------------------------------
                0.00   21.30    1002/1002        hal_mkm_get_kek [17]
[18]    12.5    0.00   21.30    1002         hal_mkm_volatile_read [18]
                0.00   10.65    1002/1002        hal_mkmif_read_word [25]
                0.00   10.65    1002/2004        hal_mkmif_read [16]
                0.00    0.00    1002/1002        hal_mkm_volatile_init [172]
-----------------------------------------------
                0.00   15.74    3000/3000        rsa_crt [9]
[19]     9.3    0.00   15.74    3000         fp_mulmod [19]
                0.00   14.16    3000/5000        fp_mod [14]
                0.00    1.56    3000/4000        fp_mul [44]
                0.02    0.00    3000/1869765     memset [22]
-----------------------------------------------
                0.00    0.00       4/10988920     hal_get_random [100]
                0.00    0.00    2004/10988920     do_keywrap_core [42]
                0.00    0.00    2256/10988920     hal_modexp2 [39]
                0.01    0.00    9018/10988920     hal_mkmif_read [16]
                0.07    0.01   64000/10988920     get_buffer [77]
               11.91    2.15 10911638/10988920     hal_io_wait2 [11]
[20]     8.3   12.00    2.17 10988920         hal_io_read [20]
                2.17    0.00 23111064/24231740     HAL_GPIO_ReadPin [43]
-----------------------------------------------
                0.00   13.52    1000/1000        rsa_crt [9]
[21]     8.0    0.00   13.52    1000         modexp2 [21]
                0.00    9.30    5000/6000        unpack_fp [23]
                0.11    3.11    1000/1000        hal_modexp2 [39]
                0.11    0.83    2000/13001       fp_read_unsigned_bin [33]
                0.05    0.00    7000/1869765     memset [22]
                0.00    0.00    5000/13031       fp_unsigned_bin_size [98]
-----------------------------------------------
                0.00    0.00       1/1869765     _mcleanup [145]
                0.00    0.00       1/1869765     pkey_local_sign_rsa [7]
                0.00    0.00       1/1869765     pkey_local_delete [133]
                0.00    0.00       1/1869765     pkey_local_load [86]
                0.00    0.00       1/1869765     cli_parse_line [129]
                0.00    0.00       1/1869765     cli_command_name [126]
                0.00    0.00       1/1869765     cli_run_command [125]
                0.00    0.00       1/1869765     cli_loop [124]
                0.00    0.00       2/1869765     construct_key_block [83]
                0.00    0.00       2/1869765     ks_volatile_zero [143]
                0.00    0.00       2/1869765     hal_pbkdf2 [46]
                0.00    0.00       2/1869765     hal_aes_keywrap [105]
                0.00    0.00       3/1869765     ks_volatile_erase [141]
                0.00    0.00       3/1869765     hal_rsa_private_key_to_der_internal [94]
                0.00    0.00       3/1869765     _cleanup_r [142]
                0.00    0.00       4/1869765     hal_asn1_encode_pkcs8_privatekeyinfo [107]
                0.01    0.00    1000/1869765     pkcs1_5_pad [80]
                0.01    0.00    1000/1869765     pkey_local_sign [5]
                0.01    0.00    1000/1869765     create_blinding_factors [29]
                0.01    0.00    1001/1869765     hal_asn1_decode_pkcs8_privatekeyinfo [67]
                0.01    0.00    1004/1869765     dispatch_task [1]
                0.01    0.00    2000/1869765     hal_rsa_decrypt [8]
                0.01    0.00    2000/1869765     hal_rsa_private_key_from_der [36]
                0.01    0.00    2000/1869765     fp_sqrmod [30]
                0.01    0.00    2048/1869765     hal_hmac_initialize [69]
                0.02    0.00    3000/1869765     fp_mulmod [19]
                0.03    0.00    4096/1869765     hal_hash_initialize [88]
                0.03    0.00    4096/1869765     hal_hash_finalize [66]
                0.03    0.00    5000/1869765     rsa_crt [9]
                0.03    0.00    5000/1869765     fp_rshd [82]
                0.03    0.00    5000/1869765     fp_mod [14]
                0.04    0.00    6000/1869765     unpack_fp [23]
                0.05    0.00    7000/1869765     modexp2 [21]
                0.07    0.00   10001/1869765     hal_asn1_decode_integer [37]
                0.08    0.00   13001/1869765     fp_read_unsigned_bin [33]
                1.88    0.00  288000/1869765     fp_lshd [38]
                3.10    0.00  476340/1869765     fp_div [15]
                6.71    0.00 1030149/1869765     fp_div_2d [27]
[22]     7.2   12.18    0.00 1869765         memset [22]
-----------------------------------------------
                0.00    1.86    1000/6000        hal_rsa_decrypt [8]
                0.00    9.30    5000/6000        modexp2 [21]
[23]     6.6    0.01   11.16    6000         unpack_fp [23]
                0.30   10.82    6000/6010        fp_to_unsigned_bin [24]
                0.04    0.00    6000/1869765     memset [22]
                0.00    0.00    6000/13031       fp_unsigned_bin_size [98]
-----------------------------------------------
                0.00    0.02      10/6010        hal_asn1_encode_integer [95]
                0.30   10.82    6000/6010        unpack_fp [23]
[24]     6.6    0.30   10.84    6010         fp_to_unsigned_bin [24]
                3.77    6.68 1025149/1030149     fp_div_2d [27]
                0.33    0.00    6010/55272       memcpy [40]
                0.06    0.00    6010/6010        fp_reverse [79]
-----------------------------------------------
                0.00   10.65    1002/1002        hal_mkm_volatile_read [18]
[25]     6.3    0.00   10.65    1002         hal_mkmif_read_word [25]
                0.00   10.65    1002/2004        hal_mkmif_read [16]
-----------------------------------------------
                0.00    0.01    3003/5656633     hal_core_free [103]
                0.25   10.26 5653630/5656633     hal_io_wait2 [11]
[26]     6.2    0.25   10.26 5656633         hal_task_yield [26]
                2.75    7.52 5656633/5657648     task_yield [28]
-----------------------------------------------
                0.02    0.03    5000/1030149     fp_div [15]
                3.77    6.68 1025149/1030149     fp_to_unsigned_bin [24]
[27]     6.2    3.79    6.71 1030149         fp_div_2d [27]
                6.71    0.00 1030149/1869765     memset [22]
-----------------------------------------------
                0.00    0.00      10/5657648     task_yield_maybe [111]
                0.00    0.00    1005/5657648     task_sleep [109]
                2.75    7.52 5656633/5657648     hal_task_yield [26]
[28]     6.0    2.75    7.52 5657648         task_yield [28]
                7.00    0.00 12785938/12785938     next_task [32]
                0.50    0.00 5657648/8162542     HAL_GetTick [63]
                0.01    0.00 7128290/7128290     default_idle_hook [97]
                0.00    0.00       2/2           check_stack [189]
-----------------------------------------------
                0.00    9.91    1000/1000        rsa_crt [9]
[29]     5.8    0.00    9.91    1000         create_blinding_factors [29]
                0.00    9.79    2000/2000        fp_sqrmod [30]
                0.11    0.00    2000/55272       memcpy [40]
                0.01    0.00    1000/1869765     memset [22]
                0.00    0.00    1000/761830      fp_cmp_mag [62]
                0.00    0.00    1000/13031       fp_unsigned_bin_size [98]
                0.00    0.00    1000/1000        hal_rsa_bf_lock [178]
                0.00    0.00    1000/1000        hal_rsa_bf_unlock [179]
-----------------------------------------------
                0.00    9.79    2000/2000        create_blinding_factors [29]
[30]     5.8    0.00    9.79    2000         fp_sqrmod [30]
                0.00    9.44    2000/5000        fp_mod [14]
                0.00    0.33    2000/2000        fp_sqr [70]
                0.01    0.00    2000/1869765     memset [22]
-----------------------------------------------
                0.04    0.00    1490/289490      rsa_crt [9]
                7.93    0.00  288000/289490      fp_div [15]
[31]     4.7    7.97    0.00  289490         s_fp_sub [31]
-----------------------------------------------
                7.00    0.00 12785938/12785938     task_yield [28]
[32]     4.1    7.00    0.00 12785938         next_task [32]
-----------------------------------------------
                0.05    0.41    1000/13001       hal_rsa_decrypt [8]
                0.11    0.83    2000/13001       modexp2 [21]
                0.54    4.15   10001/13001       hal_asn1_decode_integer [37]
[33]     3.6    0.70    5.39   13001         fp_read_unsigned_bin [33]
                5.31    0.00 1674001/1684001     fp_mul_2d [34]
                0.08    0.00   13001/1869765     memset [22]
-----------------------------------------------
                0.03    0.00   10000/1684001     fp_div [15]
                5.31    0.00 1674001/1684001     fp_read_unsigned_bin [33]
[34]     3.1    5.34    0.00 1684001         fp_mul_2d [34]
-----------------------------------------------
                5.20    0.00  749340/749340      fp_div [15]
[35]     3.1    5.20    0.00  749340         fp_mul_d [35]
-----------------------------------------------
                0.01    5.00    1000/1000        pkey_local_sign_rsa [7]
[36]     2.9    0.01    5.00    1000         hal_rsa_private_key_from_der [36]
                0.00    4.28    9000/10001       hal_asn1_decode_integer [37]
                0.00    0.48    1000/1001        hal_asn1_decode_pkcs8_privatekeyinfo [67]
                0.22    0.00    3996/55272       memcpy [40]
                0.01    0.00    2000/1869765     memset [22]
                0.00    0.00    4996/20002       hal_asn1_decode_header [104]
                0.00    0.00    1000/2004        memcmp [159]
-----------------------------------------------
                0.00    0.48    1001/10001       hal_asn1_decode_pkcs8_privatekeyinfo [67]
                0.00    4.28    9000/10001       hal_rsa_private_key_from_der [36]
[37]     2.8    0.00    4.76   10001         hal_asn1_decode_integer [37]
                0.54    4.15   10001/13001       fp_read_unsigned_bin [33]
                0.07    0.00   10001/1869765     memset [22]
                0.00    0.00   10001/20002       hal_asn1_decode_header [104]
-----------------------------------------------
                2.27    1.88  293000/293000      fp_div [15]
[38]     2.4    2.27    1.88  293000         fp_lshd [38]
                1.88    0.00  288000/1869765     memset [22]
-----------------------------------------------
                0.11    3.11    1000/1000        modexp2 [21]
[39]     1.9    0.11    3.11    1000         hal_modexp2 [39]
                0.13    2.23    1001/11025       hal_io_wait2 [11]
                0.48    0.10  522004/547052      hal_io_write [64]
                0.01    0.08    2000/2000        get_buffer [77]
                0.00    0.07    1000/1000        hal_core_alloc2 [78]
                0.00    0.00    2000/3003        hal_core_free [103]
                0.00    0.00    2256/10988920     hal_io_read [20]
-----------------------------------------------
                0.00    0.00       1/55272       hal_xdr_encode_fixed_opaque [140]
                0.00    0.00       1/55272       hal_asn1_encode_pkcs8_privatekeyinfo [107]
                0.00    0.00       2/55272       hal_ks_rewrite_der [91]
                0.00    0.00       2/55272       ks_volatile_write [130]
                0.00    0.00       2/55272       cli_parse_line [129]
                0.00    0.00       2/55272       cli_command_name [126]
                0.00    0.00       4/55272       hal_rsa_private_key_to_der_internal [94]
                0.00    0.00       4/55272       hal_pbkdf2 [46]
                0.05    0.00    1000/55272       hal_ks_fetch [12]
                0.11    0.00    2000/55272       create_blinding_factors [29]
                0.11    0.00    2000/55272       fp_sqr_comba64 [71]
                0.11    0.00    2006/55272       memmove [75]
                0.11    0.00    2048/55272       hal_hmac_initialize [69]
                0.22    0.00    3996/55272       hal_rsa_private_key_from_der [36]
                0.22    0.00    4000/55272       fp_mul_comba32 [72]
                0.22    0.00    4000/55272       fp_mul_comba64 [45]
                0.27    0.00    5000/55272       fp_mod [14]
                0.33    0.00    6010/55272       fp_to_unsigned_bin [24]
                0.45    0.00    8194/55272       hal_hash_update [58]
                0.82    0.00   15000/55272       fp_div [15]
[40]     1.8    3.00    0.00   55272         memcpy [40]
-----------------------------------------------
                0.00    2.46    1000/1000        hal_ks_fetch [12]
[41]     1.4    0.00    2.46    1000         hal_aes_keyunwrap [41]
                0.00    2.36    1000/1002        do_keywrap_core [42]
                0.00    0.05    1000/2007        memmove [75]
                0.00    0.03    1000/1003        hal_core_alloc [87]
                0.00    0.00    1000/1002        load_kek [106]
                0.00    0.00    1000/3003        hal_core_free [103]
-----------------------------------------------
                0.00    0.00       2/1002        hal_aes_keywrap [105]
                0.00    2.36    1000/1002        hal_aes_keyunwrap [41]
[42]     1.4    0.00    2.37    1002         do_keywrap_core [42]
                0.00    2.36    1002/10024       hal_io_wait [13]
                0.00    0.00    4006/547052      hal_io_write [64]
                0.00    0.00    2004/10988920     hal_io_read [20]
                0.00    0.00    1002/1004        hal_aes_keywrap_ciphertext_length [165]
-----------------------------------------------
                0.11    0.00 1120676/24231740     hal_io_write [64]
                2.17    0.00 23111064/24231740     hal_io_read [20]
[43]     1.3    2.27    0.00 24231740         HAL_GPIO_ReadPin [43]
-----------------------------------------------
                0.00    0.52    1000/4000        rsa_crt [9]
                0.00    1.56    3000/4000        fp_mulmod [19]
[44]     1.2    0.00    2.08    4000         fp_mul [44]
                1.61    0.22    2000/2000        fp_mul_comba64 [45]
                0.03    0.22    2000/2000        fp_mul_comba32 [72]
-----------------------------------------------
                1.61    0.22    2000/2000        fp_mul [44]
[45]     1.1    1.61    0.22    2000         fp_mul_comba64 [45]
                0.22    0.00    4000/55272       memcpy [40]
-----------------------------------------------
                0.02    1.58       1/1           login [48]
[46]     0.9    0.02    1.58       1         hal_pbkdf2 [46]
                0.00    1.57    2048/2048        do_hmac [50]
                0.00    0.00    2046/2046        hal_task_yield_maybe [110]
                0.00    0.00       4/55272       memcpy [40]
                0.00    0.00       2/1869765     memset [22]
-----------------------------------------------
                0.00    1.60       1/1           login [49]
[47]     0.9    0.00    1.60       1         hal_rpc_login [47]
                0.00    1.60       1/1           login [48]
-----------------------------------------------
                0.00    1.60       1/1           hal_rpc_login [47]
[48]     0.9    0.00    1.60       1         login [48]
                0.02    1.58       1/1           hal_pbkdf2 [46]
                0.00    0.00       1/1           hal_get_pin [196]
                0.00    0.00       1/11032       hal_critical_section_start [150]
                0.00    0.00       1/11032       hal_critical_section_end [149]
-----------------------------------------------
                0.00    1.60       1/1           hal_rpc_server_dispatch [2]
[49]     0.9    0.00    1.60       1         login [49]
                0.00    1.60       1/1           hal_rpc_login [47]
                0.00    0.00       2/6013        hal_xdr_decode_int [154]
                0.00    0.00       1/1002        hal_xdr_decode_variable_opaque_ptr [174]
-----------------------------------------------
                0.00    1.57    2048/2048        hal_pbkdf2 [46]
[50]     0.9    0.00    1.57    2048         do_hmac [50]
                0.00    0.95    2048/2048        hal_hmac_finalize [57]
                0.03    0.36    2048/2048        hal_hmac_initialize [69]
                0.00    0.22    2050/2050        hal_hmac_update [74]
-----------------------------------------------
                0.00    1.34    1004/1004        dispatch_task [1]
[51]     0.8    0.00    1.34    1004         hal_rpc_sendto [51]
                0.03    1.31    1004/1004        hal_slip_send [52]
-----------------------------------------------
                0.03    1.31    1004/1004        hal_rpc_sendto [51]
[52]     0.8    0.03    1.31    1004         hal_slip_send [52]
                0.09    1.21  272072/272072      hal_slip_send_char [53]
                0.00    0.01    2008/275080      hal_serial_send_char [54]
-----------------------------------------------
                0.09    1.21  272072/272072      hal_slip_send [52]
[53]     0.8    0.09    1.21  272072         hal_slip_send_char [53]
                0.10    1.12  273072/275080      hal_serial_send_char [54]
-----------------------------------------------
                0.00    0.01    2008/275080      hal_slip_send [52]
                0.10    1.12  273072/275080      hal_slip_send_char [53]
[54]     0.7    0.10    1.12  275080         hal_serial_send_char [54]
                0.04    1.08  275080/275080      uart_send_char2 [55]
-----------------------------------------------
                0.04    1.08  275080/275080      hal_serial_send_char [54]
[55]     0.7    0.04    1.08  275080         uart_send_char2 [55]
                0.19    0.89  275080/275097      uart_send_bytes2 [56]
-----------------------------------------------
                0.00    0.00      17/275097      uart_cli_write [135]
                0.19    0.89  275080/275097      uart_send_char2 [55]
[56]     0.6    0.20    0.89  275097         uart_send_bytes2 [56]
                0.30    0.56  275097/275097      HAL_UART_Transmit [59]
                0.03    0.00  275097/275097      HAL_UART_GetState [89]
-----------------------------------------------
                0.00    0.95    2048/2048        do_hmac [50]
[57]     0.6    0.00    0.95    2048         hal_hmac_finalize [57]
                0.01    0.48    4096/4096        hal_hash_finalize [66]
                0.01    0.44    4096/8194        hal_hash_update [58]
                0.00    0.01    2048/4096        hal_hash_initialize [88]
-----------------------------------------------
                0.00    0.22    2048/8194        hal_hmac_initialize [69]
                0.00    0.22    2050/8194        hal_hmac_update [74]
                0.01    0.44    4096/8194        hal_hmac_finalize [57]
[58]     0.5    0.02    0.87    8194         hal_hash_update [58]
                0.45    0.00    8194/55272       memcpy [40]
                0.00    0.42    4096/8192        hash_write_block [60]
-----------------------------------------------
                0.30    0.56  275097/275097      uart_send_bytes2 [56]
[59]     0.5    0.30    0.56  275097         HAL_UART_Transmit [59]
                0.34    0.22  550202/550202      UART_WaitOnFlagUntilTimeout [65]
-----------------------------------------------
                0.00    0.42    4096/8192        hal_hash_update [58]
                0.00    0.42    4096/8192        hal_hash_finalize [66]
[60]     0.5    0.01    0.85    8192         hash_write_block [60]
                0.85    0.00    8192/8192        sw_hash_core_sha256 [61]
-----------------------------------------------
                0.85    0.00    8192/8192        hash_write_block [60]
[61]     0.5    0.85    0.00    8192         sw_hash_core_sha256 [61]
-----------------------------------------------
                0.00    0.00     490/761830      fp_add [122]
                0.00    0.00    1000/761830      create_blinding_factors [29]
                0.29    0.00  289000/761830      fp_sub [68]
                0.47    0.00  471340/761830      fp_div [15]
[62]     0.4    0.76    0.00  761830         fp_cmp_mag [62]
-----------------------------------------------
                0.00    0.00    2046/8162542     task_yield_maybe [111]
                0.22    0.00 2502848/8162542     UART_WaitOnFlagUntilTimeout [65]
                0.50    0.00 5657648/8162542     task_yield [28]
[63]     0.4    0.73    0.00 8162542         HAL_GetTick [63]
-----------------------------------------------
                0.00    0.00    3006/547052      load_kek [106]
                0.00    0.00    4006/547052      do_keywrap_core [42]
                0.02    0.00   18036/547052      hal_mkmif_read [16]
                0.48    0.10  522004/547052      hal_modexp2 [39]
[64]     0.4    0.50    0.11  547052         hal_io_write [64]
                0.11    0.00 1120676/24231740     HAL_GPIO_ReadPin [43]
-----------------------------------------------
                0.34    0.22  550202/550202      HAL_UART_Transmit [59]
[65]     0.3    0.34    0.22  550202         UART_WaitOnFlagUntilTimeout [65]
                0.22    0.00 2502848/8162542     HAL_GetTick [63]
-----------------------------------------------
                0.01    0.48    4096/4096        hal_hmac_finalize [57]
[66]     0.3    0.01    0.48    4096         hal_hash_finalize [66]
                0.00    0.42    4096/8192        hash_write_block [60]
                0.03    0.00    4096/1869765     memset [22]
                0.03    0.00    4096/4096        swytebop [90]
-----------------------------------------------
                0.00    0.00       1/1001        hal_asn1_guess_key_type [123]
                0.00    0.48    1000/1001        hal_rsa_private_key_from_der [36]
[67]     0.3    0.00    0.48    1001         hal_asn1_decode_pkcs8_privatekeyinfo [67]
                0.00    0.48    1001/10001       hal_asn1_decode_integer [37]
                0.01    0.00    1001/1869765     memset [22]
                0.00    0.00    5005/20002       hal_asn1_decode_header [104]
-----------------------------------------------
                0.00    0.00    1000/289000      rsa_crt [9]
                0.20    0.29  288000/289000      fp_div [15]
[68]     0.3    0.20    0.29  289000         fp_sub [68]
                0.29    0.00  289000/761830      fp_cmp_mag [62]
-----------------------------------------------
                0.03    0.36    2048/2048        do_hmac [50]
[69]     0.2    0.03    0.36    2048         hal_hmac_initialize [69]
                0.00    0.22    2048/8194        hal_hash_update [58]
                0.11    0.00    2048/55272       memcpy [40]
                0.00    0.01    2048/4096        hal_hash_initialize [88]
                0.01    0.00    2048/1869765     memset [22]
-----------------------------------------------
                0.00    0.33    2000/2000        fp_sqrmod [30]
[70]     0.2    0.00    0.33    2000         fp_sqr [70]
                0.23    0.11    2000/2000        fp_sqr_comba64 [71]
-----------------------------------------------
                0.23    0.11    2000/2000        fp_sqr [70]
[71]     0.2    0.23    0.11    2000         fp_sqr_comba64 [71]
                0.11    0.00    2000/55272       memcpy [40]
-----------------------------------------------
                0.03    0.22    2000/2000        fp_mul [44]
[72]     0.1    0.03    0.22    2000         fp_mul_comba32 [72]
                0.22    0.00    4000/55272       memcpy [40]
-----------------------------------------------
                                                 <spontaneous>
[73]     0.1    0.24    0.00                 __udivmoddi4 [73]
-----------------------------------------------
                0.00    0.22    2050/2050        do_hmac [50]
[74]     0.1    0.00    0.22    2050         hal_hmac_update [74]
                0.00    0.22    2050/8194        hal_hash_update [58]
-----------------------------------------------
                0.00    0.00       1/2007        hal_ks_index_add [136]
                0.00    0.00       1/2007        hal_ks_index_delete [137]
                0.00    0.00       1/2007        hal_ks_index_replace [138]
                0.00    0.00       1/2007        hal_asn1_encode_pkcs8_privatekeyinfo [107]
                0.00    0.00       1/2007        cli_command_name [126]
                0.00    0.00       2/2007        hal_aes_keywrap [105]
                0.00    0.05    1000/2007        pkcs1_5_pad [80]
                0.00    0.05    1000/2007        hal_aes_keyunwrap [41]
[75]     0.1    0.00    0.11    2007         memmove [75]
                0.11    0.00    2006/55272       memcpy [40]
-----------------------------------------------
                0.03    0.00    1003/3003        hal_core_alloc [87]
                0.07    0.00    2000/3003        hal_core_alloc2 [78]
[76]     0.1    0.10    0.00    3003         hal_core_alloc_no_wait [76]
                0.00    0.00    8006/8006        hal_core_find [151]
                0.00    0.00    3003/11032       hal_critical_section_start [150]
                0.00    0.00    3003/11032       hal_critical_section_end [149]
-----------------------------------------------
                0.01    0.08    2000/2000        hal_modexp2 [39]
[77]     0.1    0.01    0.08    2000         get_buffer [77]
                0.07    0.01   64000/10988920     hal_io_read [20]
-----------------------------------------------
                0.00    0.07    1000/1000        hal_modexp2 [39]
[78]     0.0    0.00    0.07    1000         hal_core_alloc2 [78]
                0.07    0.00    2000/3003        hal_core_alloc_no_wait [76]
-----------------------------------------------
                0.06    0.00    6010/6010        fp_to_unsigned_bin [24]
[79]     0.0    0.06    0.00    6010         fp_reverse [79]
-----------------------------------------------
                0.00    0.06    1000/1000        pkey_local_sign_rsa [7]
[80]     0.0    0.00    0.06    1000         pkcs1_5_pad [80]
                0.00    0.05    1000/2007        memmove [75]
                0.01    0.00    1000/1869765     memset [22]
-----------------------------------------------
                                                 <spontaneous>
[81]     0.0    0.06    0.00                 __aeabi_uldivmod [81]
-----------------------------------------------
                0.02    0.03    5000/5000        fp_div [15]
[82]     0.0    0.02    0.03    5000         fp_rshd [82]
                0.03    0.00    5000/1869765     memset [22]
-----------------------------------------------
                0.00    0.02       1/2           hal_ks_store [92]
                0.00    0.02       1/2           hal_ks_rewrite_der [91]
[83]     0.0    0.00    0.05       2         construct_key_block [83]
                0.00    0.04       2/1002        hal_mkm_get_kek [17]
                0.00    0.00       2/2           hal_aes_keywrap [105]
                0.00    0.00       2/1869765     memset [22]
-----------------------------------------------
                0.00    0.03       1/1           hal_rpc_server_dispatch [2]
[84]     0.0    0.00    0.03       1         pkey_load [84]
                0.00    0.03       1/1           hal_rpc_pkey_load [85]
                0.00    0.00       1/1           hal_xdr_encode_variable_opaque [139]
                0.00    0.00       1/4014        hal_xdr_encode_int [113]
                0.00    0.00       3/6013        hal_xdr_decode_int [154]
                0.00    0.00       1/1002        hal_xdr_decode_variable_opaque_ptr [174]
-----------------------------------------------
                0.00    0.03       1/1           pkey_load [84]
[85]     0.0    0.00    0.03       1         hal_rpc_pkey_load [85]
                0.00    0.03       1/1           pkey_local_load [86]
-----------------------------------------------
                0.00    0.03       1/1           hal_rpc_pkey_load [85]
[86]     0.0    0.00    0.03       1         pkey_local_load [86]
                0.00    0.02       1/1           hal_ks_store [92]
                0.00    0.01       1/1           hal_uuid_gen [102]
                0.00    0.00       1/1           hal_asn1_guess_key_type [123]
                0.00    0.00       1/1869765     memset [22]
                0.00    0.00       1/2           hal_rpc_is_logged_in [192]
                0.00    0.00       1/11032       hal_critical_section_start [150]
                0.00    0.00       1/11032       hal_critical_section_end [149]
-----------------------------------------------
                0.00    0.00       1/1003        hal_get_random [100]
                0.00    0.00       2/1003        hal_aes_keywrap [105]
                0.00    0.03    1000/1003        hal_aes_keyunwrap [41]
[87]     0.0    0.00    0.03    1003         hal_core_alloc [87]
                0.03    0.00    1003/3003        hal_core_alloc_no_wait [76]
-----------------------------------------------
                0.00    0.01    2048/4096        hal_hmac_initialize [69]
                0.00    0.01    2048/4096        hal_hmac_finalize [57]
[88]     0.0    0.01    0.03    4096         hal_hash_initialize [88]
                0.03    0.00    4096/1869765     memset [22]
-----------------------------------------------
                0.03    0.00  275097/275097      uart_send_bytes2 [56]
[89]     0.0    0.03    0.00  275097         HAL_UART_GetState [89]
-----------------------------------------------
                0.03    0.00    4096/4096        hal_hash_finalize [66]
[90]     0.0    0.03    0.00    4096         swytebop [90]
-----------------------------------------------
                0.00    0.02       1/1           pkey_local_sign_rsa [7]
[91]     0.0    0.00    0.02       1         hal_ks_rewrite_der [91]
                0.00    0.02       1/2           construct_key_block [83]
                0.00    0.00       1/1           hal_ks_block_update [128]
                0.00    0.00       2/55272       memcpy [40]
                0.00    0.00       1/1006        hal_ks_lock [162]
                0.00    0.00       1/1001        hal_ks_index_find [177]
                0.00    0.00       1/1002        ks_volatile_test_owner [175]
                0.00    0.00       1/1006        hal_ks_unlock [163]
                0.00    0.00       1/1001        hal_ks_block_read_cached [176]
                0.00    0.00       1/1005        hal_ks_cache_mark_used [164]
                0.00    0.00       1/1           hal_ks_attribute_scan [197]
-----------------------------------------------
                0.00    0.02       1/1           pkey_local_load [86]
[92]     0.0    0.00    0.02       1         hal_ks_store [92]
                0.00    0.02       1/2           construct_key_block [83]
                0.00    0.00       1/1           hal_ks_index_add [136]
                0.00    0.00       1/2           ks_volatile_write [130]
                0.00    0.00       1/3           ks_volatile_erase [141]
                0.00    0.00       1/1006        hal_ks_lock [162]
                0.00    0.00       1/1           hal_ks_cache_pick_lru [198]
                0.00    0.00       1/1006        hal_ks_unlock [163]
                0.00    0.00       1/1005        hal_ks_cache_mark_used [164]
                0.00    0.00       1/1           ks_volatile_set_owner [205]
-----------------------------------------------
                0.00    0.02       2/2           pkey_local_sign_rsa [7]
[93]     0.0    0.00    0.02       2         hal_rsa_private_key_to_der_extra [93]
                0.00    0.02       2/2           hal_rsa_private_key_to_der_internal [94]
-----------------------------------------------
                0.00    0.02       2/2           hal_rsa_private_key_to_der_extra [93]
[94]     0.0    0.00    0.02       2         hal_rsa_private_key_to_der_internal [94]
                0.00    0.02      27/31          hal_asn1_encode_integer [95]
                0.00    0.00       3/3           hal_asn1_encode_pkcs8_privatekeyinfo [107]
                0.00    0.00       4/55272       memcpy [40]
                0.00    0.00       3/1869765     memset [22]
                0.00    0.00      15/66          hal_asn1_encode_header [187]
-----------------------------------------------
                0.00    0.00       4/31          hal_asn1_encode_pkcs8_privatekeyinfo [107]
                0.00    0.02      27/31          hal_rsa_private_key_to_der_internal [94]
[95]     0.0    0.00    0.02      31         hal_asn1_encode_integer [95]
                0.00    0.02      10/6010        fp_to_unsigned_bin [24]
                0.00    0.00      31/13031       fp_unsigned_bin_size [98]
                0.00    0.00      24/18055       fp_count_bits [96]
                0.00    0.00      31/3031        fp_cmp_d [155]
                0.00    0.00      31/66          hal_asn1_encode_header [187]
-----------------------------------------------
                0.00    0.00      24/18055       hal_asn1_encode_integer [95]
                0.00    0.00    5000/18055       fp_div [15]
                0.01    0.00   13031/18055       fp_unsigned_bin_size [98]
[96]     0.0    0.01    0.00   18055         fp_count_bits [96]
-----------------------------------------------
                0.01    0.00 7128290/7128290     task_yield [28]
[97]     0.0    0.01    0.00 7128290         default_idle_hook [97]
-----------------------------------------------
                0.00    0.00      31/13031       hal_asn1_encode_integer [95]
                0.00    0.00    1000/13031       extract_component [116]
                0.00    0.00    1000/13031       create_blinding_factors [29]
                0.00    0.00    5000/13031       modexp2 [21]
                0.00    0.00    6000/13031       unpack_fp [23]
[98]     0.0    0.00    0.01   13031         fp_unsigned_bin_size [98]
                0.01    0.00   13031/18055       fp_count_bits [96]
-----------------------------------------------
                0.00    0.01       1/1           hal_rpc_get_random [101]
[99]     0.0    0.00    0.01       1         get_random [99]
                0.00    0.01       1/1           hal_get_random [100]
-----------------------------------------------
                0.00    0.01       1/1           get_random [99]
[100]    0.0    0.00    0.01       1         hal_get_random [100]
                0.00    0.01       4/10024       hal_io_wait [13]
                0.00    0.00       1/1003        hal_core_alloc [87]
                0.00    0.00       4/10988920     hal_io_read [20]
                0.00    0.00       1/3003        hal_core_free [103]
-----------------------------------------------
                0.00    0.01       1/1           hal_uuid_gen [102]
[101]    0.0    0.00    0.01       1         hal_rpc_get_random [101]
                0.00    0.01       1/1           get_random [99]
-----------------------------------------------
                0.00    0.01       1/1           pkey_local_load [86]
[102]    0.0    0.00    0.01       1         hal_uuid_gen [102]
                0.00    0.01       1/1           hal_rpc_get_random [101]
-----------------------------------------------
                0.00    0.00       1/3003        hal_get_random [100]
                0.00    0.00       2/3003        hal_aes_keywrap [105]
                0.00    0.00    1000/3003        hal_aes_keyunwrap [41]
                0.00    0.00    2000/3003        hal_modexp2 [39]
[103]    0.0    0.00    0.01    3003         hal_core_free [103]
                0.00    0.01    3003/5656633     hal_task_yield [26]
                0.00    0.00    3003/11032       hal_critical_section_start [150]
                0.00    0.00    3003/11032       hal_critical_section_end [149]
-----------------------------------------------
                0.00    0.00    4996/20002       hal_rsa_private_key_from_der [36]
                0.00    0.00    5005/20002       hal_asn1_decode_pkcs8_privatekeyinfo [67]
                0.00    0.00   10001/20002       hal_asn1_decode_integer [37]
[104]    0.0    0.01    0.00   20002         hal_asn1_decode_header [104]
-----------------------------------------------
                0.00    0.00       2/2           construct_key_block [83]
[105]    0.0    0.00    0.00       2         hal_aes_keywrap [105]
                0.00    0.00       2/1002        do_keywrap_core [42]
                0.00    0.00       2/2007        memmove [75]
                0.00    0.00       2/1003        hal_core_alloc [87]
                0.00    0.00       2/1869765     memset [22]
                0.00    0.00       2/1002        load_kek [106]
                0.00    0.00       2/3003        hal_core_free [103]
                0.00    0.00       2/1004        hal_aes_keywrap_ciphertext_length [165]
-----------------------------------------------
                0.00    0.00       2/1002        hal_aes_keywrap [105]
                0.00    0.00    1000/1002        hal_aes_keyunwrap [41]
[106]    0.0    0.00    0.00    1002         load_kek [106]
                0.00    0.00    3006/547052      hal_io_write [64]
-----------------------------------------------
                0.00    0.00       3/3           hal_rsa_private_key_to_der_internal [94]
[107]    0.0    0.00    0.00       3         hal_asn1_encode_pkcs8_privatekeyinfo [107]
                0.00    0.00       4/31          hal_asn1_encode_integer [95]
                0.00    0.00       1/2007        memmove [75]
                0.00    0.00       1/55272       memcpy [40]
                0.00    0.00       4/1869765     memset [22]
                0.00    0.00      20/66          hal_asn1_encode_header [187]
-----------------------------------------------
                0.00    0.00    1000/1000        rsa_crt [9]
[108]    0.0    0.00    0.00    1000         s_fp_add [108]
-----------------------------------------------
                0.00    0.00       1/1005        uart_cli_read [146]
                0.00    0.00    1004/1005        dispatch_task [1]
[109]    0.0    0.00    0.00    1005         task_sleep [109]
                0.00    0.00    1005/5657648     task_yield [28]
-----------------------------------------------
                0.00    0.00    2046/2046        hal_pbkdf2 [46]
[110]    0.0    0.00    0.00    2046         hal_task_yield_maybe [110]
                0.00    0.00    2046/2046        task_yield_maybe [111]
-----------------------------------------------
                0.00    0.00    2046/2046        hal_task_yield_maybe [110]
[111]    0.0    0.00    0.00    2046         task_yield_maybe [111]
                0.00    0.00    2046/8162542     HAL_GetTick [63]
                0.00    0.00      10/5657648     task_yield [28]
-----------------------------------------------
                0.00    0.00    5000/5000        fp_div [15]
[112]    0.0    0.00    0.00    5000         fp_cmp [112]
-----------------------------------------------
                0.00    0.00       1/4014        hal_xdr_encode_variable_opaque [139]
                0.00    0.00       1/4014        pkey_load [84]
                0.00    0.00    1000/4014        pkey_sign [3]
                0.00    0.00    3012/4014        hal_rpc_server_dispatch [2]
[113]    0.0    0.00    0.00    4014         hal_xdr_encode_int [113]
-----------------------------------------------
                0.00    0.00    1004/2008        RxCallback [121]
                0.00    0.00    1004/2008        dispatch_task [1]
[114]    0.0    0.00    0.00    2008         ibuf_put [114]
                0.00    0.00    2008/11032       hal_critical_section_start [150]
                0.00    0.00    2008/11032       hal_critical_section_end [149]
-----------------------------------------------
                0.00    0.00    1000/1000        pkey_local_sign_rsa [7]
[115]    0.0    0.00    0.00    1000         hal_rsa_key_needs_saving [115]
-----------------------------------------------
                0.00    0.00    1000/1000        hal_rsa_key_get_modulus [117]
[116]    0.0    0.00    0.00    1000         extract_component [116]
                0.00    0.00    1000/13031       fp_unsigned_bin_size [98]
-----------------------------------------------
                0.00    0.00    1000/1000        pkey_local_sign_rsa [7]
[117]    0.0    0.00    0.00    1000         hal_rsa_key_get_modulus [117]
                0.00    0.00    1000/1000        extract_component [116]
-----------------------------------------------
                                                 <spontaneous>
[118]    0.0    0.00    0.00                 SysTick_Handler [118]
                0.00    0.00  170003/170003      HAL_SYSTICK_IRQHandler [119]
                0.00    0.00       2/19          uart_cli_write [135]
                0.00    0.00  170003/170003      HAL_IncTick [147]
-----------------------------------------------
                0.00    0.00  170003/170003      SysTick_Handler [118]
[119]    0.0    0.00    0.00  170003         HAL_SYSTICK_IRQHandler [119]
                0.00    0.00  170004/170004      HAL_SYSTICK_Callback [120]
                0.00    0.00      13/26          uart_cli_read [146]
-----------------------------------------------
                0.00    0.00  170004/170004      HAL_SYSTICK_IRQHandler [119]
[120]    0.0    0.00    0.00  170004         HAL_SYSTICK_Callback [120]
                0.00    0.00   80300/80300       RxCallback [121]
-----------------------------------------------
                0.00    0.00   80300/80300       HAL_SYSTICK_Callback [120]
[121]    0.0    0.00    0.00   80300         RxCallback [121]
                0.00    0.00    1004/2008        ibuf_put [114]
                0.00    0.00   80300/80300       hal_slip_process_char [148]
                0.00    0.00    1004/2008        ibuf_get [156]
                0.00    0.00    1004/1004        task_next_waiting [170]
                0.00    0.00    1004/1017        task_wake [160]
-----------------------------------------------
                0.00    0.00    1490/1490        rsa_crt [9]
[122]    0.0    0.00    0.00    1490         fp_add [122]
                0.00    0.00     490/761830      fp_cmp_mag [62]
-----------------------------------------------
                0.00    0.00       1/1           pkey_local_load [86]
[123]    0.0    0.00    0.00       1         hal_asn1_guess_key_type [123]
                0.00    0.00       1/1001        hal_asn1_decode_pkcs8_privatekeyinfo [67]
                0.00    0.00       1/2004        memcmp [159]
-----------------------------------------------
                                                 <spontaneous>
[124]    0.0    0.00    0.00                 cli_loop [124]
                0.00    0.00       1/1           cli_run_command [125]
                0.00    0.00      15/19          uart_cli_write [135]
                0.00    0.00       1/1           show_prompt [144]
                0.00    0.00       1/1869765     memset [22]
                0.00    0.00      13/26          uart_cli_read [146]
                0.00    0.00       1/1           cli_add_history [194]
-----------------------------------------------
                0.00    0.00       1/1           cli_loop [124]
[125]    0.0    0.00    0.00       1         cli_run_command [125]
                0.00    0.00       1/1           cli_find_command [127]
                0.00    0.00       1/1           cli_parse_line [129]
                0.00    0.00       1/1869765     memset [22]
-----------------------------------------------
                0.00    0.00       1/1           cli_find_command [127]
[126]    0.0    0.00    0.00       1         cli_command_name [126]
                0.00    0.00       2/55272       memcpy [40]
                0.00    0.00       1/2007        memmove [75]
                0.00    0.00       1/1869765     memset [22]
-----------------------------------------------
                                   1             cli_find_command [127]
                0.00    0.00       1/1           cli_run_command [125]
[127]    0.0    0.00    0.00       1+1       cli_find_command [127]
                0.00    0.00       1/1           cli_command_name [126]
                0.00    0.00       1/1           cmd_profile_stop [195]
                                   1             cli_find_command [127]
-----------------------------------------------
                0.00    0.00       1/1           hal_ks_rewrite_der [91]
[128]    0.0    0.00    0.00       1         hal_ks_block_update [128]
                0.00    0.00       1/1           hal_ks_index_replace [138]
                0.00    0.00       1/2           ks_volatile_write [130]
                0.00    0.00       1/2           ks_volatile_zero [143]
                0.00    0.00       1/3           ks_volatile_erase [141]
                0.00    0.00       1/2           hal_ks_cache_release [190]
                0.00    0.00       1/1           ks_volatile_deprecate [203]
                0.00    0.00       1/1           ks_volatile_copy_owner [202]
                0.00    0.00       1/1005        hal_ks_cache_mark_used [164]
-----------------------------------------------
                0.00    0.00       1/1           cli_run_command [125]
[129]    0.0    0.00    0.00       1         cli_parse_line [129]
                0.00    0.00       2/55272       memcpy [40]
                0.00    0.00       1/1869765     memset [22]
-----------------------------------------------
                0.00    0.00       1/2           hal_ks_block_update [128]
                0.00    0.00       1/2           hal_ks_store [92]
[130]    0.0    0.00    0.00       2         ks_volatile_write [130]
                0.00    0.00       2/55272       memcpy [40]
-----------------------------------------------
                0.00    0.00       1/1           pkey_delete [132]
[131]    0.0    0.00    0.00       1         hal_rpc_pkey_delete [131]
                0.00    0.00       1/1           pkey_local_delete [133]
-----------------------------------------------
                0.00    0.00       1/1           hal_rpc_server_dispatch [2]
[132]    0.0    0.00    0.00       1         pkey_delete [132]
                0.00    0.00       1/1           hal_rpc_pkey_delete [131]
                0.00    0.00       1/6013        hal_xdr_decode_int [154]
-----------------------------------------------
                0.00    0.00       1/1           hal_rpc_pkey_delete [131]
[133]    0.0    0.00    0.00       1         pkey_local_delete [133]
                0.00    0.00       1/1           hal_ks_delete [134]
                0.00    0.00       1/1869765     memset [22]
                0.00    0.00       2/11032       hal_critical_section_start [150]
                0.00    0.00       2/11032       hal_critical_section_end [149]
                0.00    0.00       1/2           hal_rpc_is_logged_in [192]
                0.00    0.00       1/1           pkey_local_get_key_type [208]
-----------------------------------------------
                0.00    0.00       1/1           pkey_local_delete [133]
[134]    0.0    0.00    0.00       1         hal_ks_delete [134]
                0.00    0.00       1/1           hal_ks_index_delete [137]
                0.00    0.00       1/2           ks_volatile_zero [143]
                0.00    0.00       1/3           ks_volatile_erase [141]
                0.00    0.00       1/1006        hal_ks_lock [162]
                0.00    0.00       1/1002        ks_volatile_test_owner [175]
                0.00    0.00       1/1006        hal_ks_unlock [163]
                0.00    0.00       1/1002        hal_ks_cache_find_block [171]
                0.00    0.00       1/2           hal_ks_cache_release [190]
-----------------------------------------------
                0.00    0.00       2/19          SysTick_Handler [118]
                0.00    0.00       2/19          show_prompt [144]
                0.00    0.00      15/19          cli_loop [124]
[135]    0.0    0.00    0.00      19         uart_cli_write [135]
                0.00    0.00      17/275097      uart_send_bytes2 [56]
-----------------------------------------------
                0.00    0.00       1/1           hal_ks_store [92]
[136]    0.0    0.00    0.00       1         hal_ks_index_add [136]
                0.00    0.00       1/2007        memmove [75]
                0.00    0.00       2/1007        hal_ks_index_fsck [161]
                0.00    0.00       1/1004        ks_find [166]
-----------------------------------------------
                0.00    0.00       1/1           hal_ks_delete [134]
[137]    0.0    0.00    0.00       1         hal_ks_index_delete [137]
                0.00    0.00       1/2007        memmove [75]
                0.00    0.00       2/1007        hal_ks_index_fsck [161]
                0.00    0.00       1/1004        ks_find [166]
-----------------------------------------------
                0.00    0.00       1/1           hal_ks_block_update [128]
[138]    0.0    0.00    0.00       1         hal_ks_index_replace [138]
                0.00    0.00       1/2007        memmove [75]
                0.00    0.00       2/1007        hal_ks_index_fsck [161]
                0.00    0.00       1/1004        ks_find [166]
-----------------------------------------------
                0.00    0.00       1/1           pkey_load [84]
[139]    0.0    0.00    0.00       1         hal_xdr_encode_variable_opaque [139]
                0.00    0.00       1/1           hal_xdr_encode_fixed_opaque [140]
                0.00    0.00       1/4014        hal_xdr_encode_int [113]
-----------------------------------------------
                0.00    0.00       1/1           hal_xdr_encode_variable_opaque [139]
[140]    0.0    0.00    0.00       1         hal_xdr_encode_fixed_opaque [140]
                0.00    0.00       1/55272       memcpy [40]
-----------------------------------------------
                0.00    0.00       1/3           hal_ks_block_update [128]
                0.00    0.00       1/3           hal_ks_store [92]
                0.00    0.00       1/3           hal_ks_delete [134]
[141]    0.0    0.00    0.00       3         ks_volatile_erase [141]
                0.00    0.00       3/1869765     memset [22]
-----------------------------------------------
                                                 <spontaneous>
[142]    0.0    0.00    0.00                 _cleanup_r [142]
                0.00    0.00       3/1869765     memset [22]
-----------------------------------------------
                0.00    0.00       1/2           hal_ks_block_update [128]
                0.00    0.00       1/2           hal_ks_delete [134]
[143]    0.0    0.00    0.00       2         ks_volatile_zero [143]
                0.00    0.00       2/1869765     memset [22]
-----------------------------------------------
                0.00    0.00       1/1           cli_loop [124]
[144]    0.0    0.00    0.00       1         show_prompt [144]
                0.00    0.00       2/19          uart_cli_write [135]
-----------------------------------------------
                                                 <spontaneous>
[145]    0.0    0.00    0.00                 _mcleanup [145]
                0.00    0.00       1/1869765     memset [22]
-----------------------------------------------
                0.00    0.00      13/26          HAL_SYSTICK_IRQHandler [119]
                0.00    0.00      13/26          cli_loop [124]
[146]    0.0    0.00    0.00      26         uart_cli_read [146]
                0.00    0.00       1/1005        task_sleep [109]
-----------------------------------------------
                0.00    0.00  170003/170003      SysTick_Handler [118]
[147]    0.0    0.00    0.00  170003         HAL_IncTick [147]
-----------------------------------------------
                0.00    0.00   80300/80300       RxCallback [121]
[148]    0.0    0.00    0.00   80300         hal_slip_process_char [148]
-----------------------------------------------
                0.00    0.00       1/11032       login [48]
                0.00    0.00       1/11032       pkey_local_get_key_type [208]
                0.00    0.00       1/11032       pkey_local_load [86]
                0.00    0.00       1/11032       hal_pkey_logout [199]
                0.00    0.00       2/11032       is_logged_in [193]
                0.00    0.00       2/11032       logout [206]
                0.00    0.00       2/11032       pkey_local_delete [133]
                0.00    0.00    1000/11032       pkey_local_sign [5]
                0.00    0.00    2008/11032       ibuf_put [114]
                0.00    0.00    2008/11032       ibuf_get [156]
                0.00    0.00    3003/11032       hal_core_alloc_no_wait [76]
                0.00    0.00    3003/11032       hal_core_free [103]
[149]    0.0    0.00    0.00   11032         hal_critical_section_end [149]
-----------------------------------------------
                0.00    0.00       1/11032       login [48]
                0.00    0.00       1/11032       pkey_local_get_key_type [208]
                0.00    0.00       1/11032       pkey_local_load [86]
                0.00    0.00       1/11032       hal_pkey_logout [199]
                0.00    0.00       2/11032       is_logged_in [193]
                0.00    0.00       2/11032       logout [206]
                0.00    0.00       2/11032       pkey_local_delete [133]
                0.00    0.00    1000/11032       pkey_local_sign [5]
                0.00    0.00    2008/11032       ibuf_put [114]
                0.00    0.00    2008/11032       ibuf_get [156]
                0.00    0.00    3003/11032       hal_core_alloc_no_wait [76]
                0.00    0.00    3003/11032       hal_core_free [103]
[150]    0.0    0.00    0.00   11032         hal_critical_section_start [150]
-----------------------------------------------
                0.00    0.00    8006/8006        hal_core_alloc_no_wait [76]
[151]    0.0    0.00    0.00    8006         hal_core_find [151]
                0.00    0.00    8006/8006        hal_core_iterate [152]
-----------------------------------------------
                0.00    0.00    8006/8006        hal_core_find [151]
[152]    0.0    0.00    0.00    8006         hal_core_iterate [152]
-----------------------------------------------
                0.00    0.00    1004/7017        hal_rpc_server_dispatch [2]
                0.00    0.00    6013/7017        hal_xdr_decode_int [154]
[153]    0.0    0.00    0.00    7017         hal_xdr_decode_int_peek [153]
-----------------------------------------------
                0.00    0.00       1/6013        pkey_delete [132]
                0.00    0.00       1/6013        logout [207]
                0.00    0.00       2/6013        login [49]
                0.00    0.00       3/6013        pkey_load [84]
                0.00    0.00    1002/6013        hal_xdr_decode_variable_opaque_ptr [174]
                0.00    0.00    1004/6013        hal_rpc_server_dispatch [2]
                0.00    0.00    4000/6013        pkey_sign [3]
[154]    0.0    0.00    0.00    6013         hal_xdr_decode_int [154]
                0.00    0.00    6013/7017        hal_xdr_decode_int_peek [153]
-----------------------------------------------
                0.00    0.00      31/3031        hal_asn1_encode_integer [95]
                0.00    0.00    3000/3031        rsa_crt [9]
[155]    0.0    0.00    0.00    3031         fp_cmp_d [155]
-----------------------------------------------
                0.00    0.00    1004/2008        RxCallback [121]
                0.00    0.00    1004/2008        dispatch_task [1]
[156]    0.0    0.00    0.00    2008         ibuf_get [156]
                0.00    0.00    2008/11032       hal_critical_section_start [150]
                0.00    0.00    2008/11032       hal_critical_section_end [149]
-----------------------------------------------
                0.00    0.00    1000/2006        hal_rsa_bf_lock [178]
                0.00    0.00    1006/2006        hal_ks_lock [162]
[157]    0.0    0.00    0.00    2006         task_mutex_lock [157]
-----------------------------------------------
                0.00    0.00    1000/2006        hal_rsa_bf_unlock [179]
                0.00    0.00    1006/2006        hal_ks_unlock [163]
[158]    0.0    0.00    0.00    2006         task_mutex_unlock [158]
-----------------------------------------------
                0.00    0.00       1/2004        hal_asn1_guess_key_type [123]
                0.00    0.00    1000/2004        hal_rsa_private_key_from_der [36]
                0.00    0.00    1003/2004        ks_find [166]
[159]    0.0    0.00    0.00    2004         memcmp [159]
-----------------------------------------------
                0.00    0.00      13/1017        HAL_UART1_RxCpltCallback [188]
                0.00    0.00    1004/1017        RxCallback [121]
[160]    0.0    0.00    0.00    1017         task_wake [160]
-----------------------------------------------
                0.00    0.00       2/1007        hal_ks_index_add [136]
                0.00    0.00       2/1007        hal_ks_index_delete [137]
                0.00    0.00       2/1007        hal_ks_index_replace [138]
                0.00    0.00    1001/1007        hal_ks_index_find [177]
[161]    0.0    0.00    0.00    1007         hal_ks_index_fsck [161]
-----------------------------------------------
                0.00    0.00       1/1006        hal_ks_store [92]
                0.00    0.00       1/1006        hal_ks_delete [134]
                0.00    0.00       1/1006        hal_ks_rewrite_der [91]
                0.00    0.00       1/1006        hal_get_pin [196]
                0.00    0.00       2/1006        hal_ks_logout [191]
                0.00    0.00    1000/1006        hal_ks_fetch [12]
[162]    0.0    0.00    0.00    1006         hal_ks_lock [162]
                0.00    0.00    1006/2006        task_mutex_lock [157]
-----------------------------------------------
                0.00    0.00       1/1006        hal_ks_store [92]
                0.00    0.00       1/1006        hal_ks_delete [134]
                0.00    0.00       1/1006        hal_ks_rewrite_der [91]
                0.00    0.00       1/1006        hal_get_pin [196]
                0.00    0.00       2/1006        hal_ks_logout [191]
                0.00    0.00    1000/1006        hal_ks_fetch [12]
[163]    0.0    0.00    0.00    1006         hal_ks_unlock [163]
                0.00    0.00    1006/2006        task_mutex_unlock [158]
-----------------------------------------------
                0.00    0.00       1/1005        hal_ks_block_update [128]
                0.00    0.00       1/1005        hal_ks_store [92]
                0.00    0.00       1/1005        hal_ks_rewrite_der [91]
                0.00    0.00       2/1005        hal_ks_cache_release [190]
                0.00    0.00    1000/1005        hal_ks_fetch [12]
[164]    0.0    0.00    0.00    1005         hal_ks_cache_mark_used [164]
-----------------------------------------------
                0.00    0.00       2/1004        hal_aes_keywrap [105]
                0.00    0.00    1002/1004        do_keywrap_core [42]
[165]    0.0    0.00    0.00    1004         hal_aes_keywrap_ciphertext_length [165]
-----------------------------------------------
                0.00    0.00       1/1004        hal_ks_index_add [136]
                0.00    0.00       1/1004        hal_ks_index_delete [137]
                0.00    0.00       1/1004        hal_ks_index_replace [138]
                0.00    0.00    1001/1004        hal_ks_index_find [177]
[166]    0.0    0.00    0.00    1004         ks_find [166]
                0.00    0.00    1003/2004        memcmp [159]
-----------------------------------------------
                0.00    0.00    1004/1004        task_next_waiting [170]
[167]    0.0    0.00    0.00    1004         task_get_func [167]
-----------------------------------------------
                0.00    0.00    1004/1004        task_next_waiting [170]
[168]    0.0    0.00    0.00    1004         task_get_state [168]
-----------------------------------------------
                0.00    0.00    1004/1004        task_next_waiting [170]
[169]    0.0    0.00    0.00    1004         task_iterate [169]
-----------------------------------------------
                0.00    0.00    1004/1004        RxCallback [121]
[170]    0.0    0.00    0.00    1004         task_next_waiting [170]
                0.00    0.00    1004/1004        task_iterate [169]
                0.00    0.00    1004/1004        task_get_func [167]
                0.00    0.00    1004/1004        task_get_state [168]
-----------------------------------------------
                0.00    0.00       1/1002        hal_ks_delete [134]
                0.00    0.00    1001/1002        hal_ks_block_read_cached [176]
[171]    0.0    0.00    0.00    1002         hal_ks_cache_find_block [171]
-----------------------------------------------
                0.00    0.00    1002/1002        hal_mkm_volatile_read [18]
[172]    0.0    0.00    0.00    1002         hal_mkm_volatile_init [172]
-----------------------------------------------
                0.00    0.00    1002/1002        hal_xdr_decode_variable_opaque_ptr [174]
[173]    0.0    0.00    0.00    1002         hal_xdr_decode_fixed_opaque_ptr [173]
-----------------------------------------------
                0.00    0.00       1/1002        pkey_load [84]
                0.00    0.00       1/1002        login [49]
                0.00    0.00    1000/1002        pkey_sign [3]
[174]    0.0    0.00    0.00    1002         hal_xdr_decode_variable_opaque_ptr [174]
                0.00    0.00    1002/6013        hal_xdr_decode_int [154]
                0.00    0.00    1002/1002        hal_xdr_decode_fixed_opaque_ptr [173]
-----------------------------------------------
                0.00    0.00       1/1002        hal_ks_delete [134]
                0.00    0.00       1/1002        hal_ks_rewrite_der [91]
                0.00    0.00    1000/1002        hal_ks_fetch [12]
[175]    0.0    0.00    0.00    1002         ks_volatile_test_owner [175]
-----------------------------------------------
                0.00    0.00       1/1001        hal_ks_rewrite_der [91]
                0.00    0.00    1000/1001        hal_ks_fetch [12]
[176]    0.0    0.00    0.00    1001         hal_ks_block_read_cached [176]
                0.00    0.00    1001/1002        hal_ks_cache_find_block [171]
-----------------------------------------------
                0.00    0.00       1/1001        hal_ks_rewrite_der [91]
                0.00    0.00    1000/1001        hal_ks_fetch [12]
[177]    0.0    0.00    0.00    1001         hal_ks_index_find [177]
                0.00    0.00    1001/1007        hal_ks_index_fsck [161]
                0.00    0.00    1001/1004        ks_find [166]
-----------------------------------------------
                0.00    0.00    1000/1000        create_blinding_factors [29]
[178]    0.0    0.00    0.00    1000         hal_rsa_bf_lock [178]
                0.00    0.00    1000/2006        task_mutex_lock [157]
-----------------------------------------------
                0.00    0.00    1000/1000        create_blinding_factors [29]
[179]    0.0    0.00    0.00    1000         hal_rsa_bf_unlock [179]
                0.00    0.00    1000/2006        task_mutex_unlock [158]
-----------------------------------------------
                0.00    0.00      13/170         DMA2_Stream2_IRQHandler [214]
                0.00    0.00     157/170         DMA1_Stream5_IRQHandler [213]
[180]    0.0    0.00    0.00     170         HAL_DMA_IRQHandler [180]
                0.00    0.00      92/92          UART_DMAReceiveCplt [182]
                0.00    0.00      78/78          UART_DMARxHalfCplt [186]
-----------------------------------------------
                0.00    0.00      92/92          UART_DMAReceiveCplt [182]
[181]    0.0    0.00    0.00      92         HAL_UART_RxCpltCallback [181]
                0.00    0.00      79/79          HAL_UART2_RxCpltCallback [183]
                0.00    0.00      13/13          HAL_UART1_RxCpltCallback [188]
-----------------------------------------------
                0.00    0.00      92/92          HAL_DMA_IRQHandler [180]
[182]    0.0    0.00    0.00      92         UART_DMAReceiveCplt [182]
                0.00    0.00      92/92          HAL_UART_RxCpltCallback [181]
-----------------------------------------------
                0.00    0.00      79/79          HAL_UART_RxCpltCallback [181]
[183]    0.0    0.00    0.00      79         HAL_UART2_RxCpltCallback [183]
-----------------------------------------------
                0.00    0.00      78/78          HAL_UART_RxHalfCpltCallback [185]
[184]    0.0    0.00    0.00      78         HAL_UART2_RxHalfCpltCallback [184]
-----------------------------------------------
                0.00    0.00      78/78          UART_DMARxHalfCplt [186]
[185]    0.0    0.00    0.00      78         HAL_UART_RxHalfCpltCallback [185]
                0.00    0.00      78/78          HAL_UART2_RxHalfCpltCallback [184]
-----------------------------------------------
                0.00    0.00      78/78          HAL_DMA_IRQHandler [180]
[186]    0.0    0.00    0.00      78         UART_DMARxHalfCplt [186]
                0.00    0.00      78/78          HAL_UART_RxHalfCpltCallback [185]
-----------------------------------------------
                0.00    0.00      15/66          hal_rsa_private_key_to_der_internal [94]
                0.00    0.00      20/66          hal_asn1_encode_pkcs8_privatekeyinfo [107]
                0.00    0.00      31/66          hal_asn1_encode_integer [95]
[187]    0.0    0.00    0.00      66         hal_asn1_encode_header [187]
-----------------------------------------------
                0.00    0.00      13/13          HAL_UART_RxCpltCallback [181]
[188]    0.0    0.00    0.00      13         HAL_UART1_RxCpltCallback [188]
                0.00    0.00      13/1017        task_wake [160]
-----------------------------------------------
                0.00    0.00       2/2           task_yield [28]
[189]    0.0    0.00    0.00       2         check_stack [189]
-----------------------------------------------
                0.00    0.00       1/2           hal_ks_block_update [128]
                0.00    0.00       1/2           hal_ks_delete [134]
[190]    0.0    0.00    0.00       2         hal_ks_cache_release [190]
                0.00    0.00       2/1005        hal_ks_cache_mark_used [164]
-----------------------------------------------
                0.00    0.00       2/2           hal_pkey_logout [199]
[191]    0.0    0.00    0.00       2         hal_ks_logout [191]
                0.00    0.00       2/1006        hal_ks_lock [162]
                0.00    0.00       2/1006        hal_ks_unlock [163]
                0.00    0.00       1/1           ks_token_logout [201]
                0.00    0.00       1/1           ks_volatile_logout [204]
-----------------------------------------------
                0.00    0.00       1/2           pkey_local_delete [133]
                0.00    0.00       1/2           pkey_local_load [86]
[192]    0.0    0.00    0.00       2         hal_rpc_is_logged_in [192]
                0.00    0.00       2/2           is_logged_in [193]
-----------------------------------------------
                0.00    0.00       2/2           hal_rpc_is_logged_in [192]
[193]    0.0    0.00    0.00       2         is_logged_in [193]
                0.00    0.00       2/11032       hal_critical_section_start [150]
                0.00    0.00       2/11032       hal_critical_section_end [149]
-----------------------------------------------
                0.00    0.00       1/1           cli_loop [124]
[194]    0.0    0.00    0.00       1         cli_add_history [194]
-----------------------------------------------
                0.00    0.00       1/1           cli_find_command [127]
[195]    0.0    0.00    0.00       1         cmd_profile_stop [195]
-----------------------------------------------
                0.00    0.00       1/1           login [48]
[196]    0.0    0.00    0.00       1         hal_get_pin [196]
                0.00    0.00       1/1006        hal_ks_lock [162]
                0.00    0.00       1/1006        hal_ks_unlock [163]
-----------------------------------------------
                0.00    0.00       1/1           hal_ks_rewrite_der [91]
[197]    0.0    0.00    0.00       1         hal_ks_attribute_scan [197]
-----------------------------------------------
                0.00    0.00       1/1           hal_ks_store [92]
[198]    0.0    0.00    0.00       1         hal_ks_cache_pick_lru [198]
-----------------------------------------------
                0.00    0.00       1/1           logout [206]
[199]    0.0    0.00    0.00       1         hal_pkey_logout [199]
                0.00    0.00       2/2           hal_ks_logout [191]
                0.00    0.00       1/11032       hal_critical_section_start [150]
                0.00    0.00       1/11032       hal_critical_section_end [149]
-----------------------------------------------
                0.00    0.00       1/1           logout [207]
[200]    0.0    0.00    0.00       1         hal_rpc_logout [200]
                0.00    0.00       1/1           logout [206]
-----------------------------------------------
                0.00    0.00       1/1           hal_ks_logout [191]
[201]    0.0    0.00    0.00       1         ks_token_logout [201]
-----------------------------------------------
                0.00    0.00       1/1           hal_ks_block_update [128]
[202]    0.0    0.00    0.00       1         ks_volatile_copy_owner [202]
-----------------------------------------------
                0.00    0.00       1/1           hal_ks_block_update [128]
[203]    0.0    0.00    0.00       1         ks_volatile_deprecate [203]
-----------------------------------------------
                0.00    0.00       1/1           hal_ks_logout [191]
[204]    0.0    0.00    0.00       1         ks_volatile_logout [204]
-----------------------------------------------
                0.00    0.00       1/1           hal_ks_store [92]
[205]    0.0    0.00    0.00       1         ks_volatile_set_owner [205]
-----------------------------------------------
                0.00    0.00       1/1           hal_rpc_logout [200]
[206]    0.0    0.00    0.00       1         logout [206]
                0.00    0.00       2/11032       hal_critical_section_start [150]
                0.00    0.00       2/11032       hal_critical_section_end [149]
                0.00    0.00       1/1           hal_pkey_logout [199]
-----------------------------------------------
                0.00    0.00       1/1           hal_rpc_server_dispatch [2]
[207]    0.0    0.00    0.00       1         logout [207]
                0.00    0.00       1/6013        hal_xdr_decode_int [154]
                0.00    0.00       1/1           hal_rpc_logout [200]
-----------------------------------------------
                0.00    0.00       1/1           pkey_local_delete [133]
[208]    0.0    0.00    0.00       1         pkey_local_get_key_type [208]
                0.00    0.00       1/11032       hal_critical_section_start [150]
                0.00    0.00       1/11032       hal_critical_section_end [149]
-----------------------------------------------

 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

 [180] HAL_DMA_IRQHandler    [107] hal_asn1_encode_pkcs8_privatekeyinfo [52] hal_slip_send
  [43] HAL_GPIO_ReadPin      [123] hal_asn1_guess_key_type [53] hal_slip_send_char
  [63] HAL_GetTick            [87] hal_core_alloc         [26] hal_task_yield
 [147] HAL_IncTick            [78] hal_core_alloc2       [110] hal_task_yield_maybe
 [120] HAL_SYSTICK_Callback   [76] hal_core_alloc_no_wait (core.c) [102] hal_uuid_gen
 [119] HAL_SYSTICK_IRQHandler [151] hal_core_find        [173] hal_xdr_decode_fixed_opaque_ptr
 [188] HAL_UART1_RxCpltCallback [103] hal_core_free      [154] hal_xdr_decode_int
 [183] HAL_UART2_RxCpltCallback [152] hal_core_iterate   [153] hal_xdr_decode_int_peek
 [184] HAL_UART2_RxHalfCpltCallback [149] hal_critical_section_end [174] hal_xdr_decode_variable_opaque_ptr
  [89] HAL_UART_GetState     [150] hal_critical_section_start [140] hal_xdr_encode_fixed_opaque
 [181] HAL_UART_RxCpltCallback [196] hal_get_pin         [113] hal_xdr_encode_int
 [185] HAL_UART_RxHalfCpltCallback [100] hal_get_random  [139] hal_xdr_encode_variable_opaque
  [59] HAL_UART_Transmit      [66] hal_hash_finalize      [60] hash_write_block (hash.c)
 [121] RxCallback (hsm.c)     [88] hal_hash_initialize   [156] ibuf_get (hsm.c)
 [182] UART_DMAReceiveCplt (stm32f4xx_hal_uart.c) [58] hal_hash_update [114] ibuf_put (hsm.c)
 [186] UART_DMARxHalfCplt (stm32f4xx_hal_uart.c) [57] hal_hmac_finalize [193] is_logged_in (rpc_misc.c)
  [65] UART_WaitOnFlagUntilTimeout (stm32f4xx_hal_uart.c) [69] hal_hmac_initialize [166] ks_find (ks_index.c)
  [81] __aeabi_uldivmod       [74] hal_hmac_update       [201] ks_token_logout (ks_token.c)
  [10] __gnu_mcount_nc        [20] hal_io_read           [202] ks_volatile_copy_owner (ks_volatile.c)
  [73] __udivmoddi4           [13] hal_io_wait           [203] ks_volatile_deprecate (ks_volatile.c)
   [6] _mcount_internal       [11] hal_io_wait2          [141] ks_volatile_erase (ks_volatile.c)
 [189] check_stack (task.c)   [64] hal_io_write          [204] ks_volatile_logout (ks_volatile.c)
 [194] cli_add_history (libcli.c) [197] hal_ks_attribute_scan [205] ks_volatile_set_owner (ks_volatile.c)
 [126] cli_command_name      [176] hal_ks_block_read_cached [175] ks_volatile_test_owner (ks_volatile.c)
 [127] cli_find_command (libcli.c) [128] hal_ks_block_update [130] ks_volatile_write (ks_volatile.c)
 [129] cli_parse_line (libcli.c) [171] hal_ks_cache_find_block [143] ks_volatile_zero (ks_volatile.c)
 [125] cli_run_command       [164] hal_ks_cache_mark_used [106] load_kek (aes_keywrap.c)
 [195] cmd_profile_stop (mgmt-misc.c) [198] hal_ks_cache_pick_lru [48] login (rpc_misc.c)
  [83] construct_key_block (ks.c) [190] hal_ks_cache_release [49] login (rpc_server.c)
  [29] create_blinding_factors (rsa.c) [134] hal_ks_delete [206] logout (rpc_misc.c)
  [97] default_idle_hook (task.c) [12] hal_ks_fetch      [207] logout (rpc_server.c)
  [50] do_hmac (pbkdf2.c)    [136] hal_ks_index_add      [159] memcmp
  [42] do_keywrap_core (aes_keywrap.c) [137] hal_ks_index_delete [40] memcpy
 [116] extract_component (rsa.c) [177] hal_ks_index_find  [75] memmove
 [122] fp_add                [161] hal_ks_index_fsck      [22] memset
 [112] fp_cmp                [138] hal_ks_index_replace   [21] modexp2 (rsa.c)
 [155] fp_cmp_d              [162] hal_ks_lock            [32] next_task (task.c)
  [62] fp_cmp_mag            [191] hal_ks_logout          [80] pkcs1_5_pad (rpc_pkey.c)
  [96] fp_count_bits          [91] hal_ks_rewrite_der    [132] pkey_delete (rpc_server.c)
  [15] fp_div                 [92] hal_ks_store           [84] pkey_load (rpc_server.c)
  [27] fp_div_2d             [163] hal_ks_unlock         [133] pkey_local_delete (rpc_pkey.c)
  [38] fp_lshd                [17] hal_mkm_get_kek       [208] pkey_local_get_key_type (rpc_pkey.c)
  [14] fp_mod                [172] hal_mkm_volatile_init (mkm.c) [86] pkey_local_load (rpc_pkey.c)
  [44] fp_mul                 [18] hal_mkm_volatile_read   [5] pkey_local_sign (rpc_pkey.c)
  [34] fp_mul_2d              [16] hal_mkmif_read          [7] pkey_local_sign_rsa (rpc_pkey.c)
  [72] fp_mul_comba32         [25] hal_mkmif_read_word     [3] pkey_sign (rpc_server.c)
  [45] fp_mul_comba64         [39] hal_modexp2             [9] rsa_crt (rsa.c)
  [35] fp_mul_d               [46] hal_pbkdf2            [108] s_fp_add
  [19] fp_mulmod             [199] hal_pkey_logout        [31] s_fp_sub
  [33] fp_read_unsigned_bin  [101] hal_rpc_get_random    [144] show_prompt (libcli.c)
  [79] fp_reverse            [192] hal_rpc_is_logged_in   [61] sw_hash_core_sha256 (hash.c)
  [82] fp_rshd                [47] hal_rpc_login          [90] swytebop (hash.c)
  [70] fp_sqr                [200] hal_rpc_logout        [167] task_get_func
  [71] fp_sqr_comba64        [131] hal_rpc_pkey_delete   [168] task_get_state
  [30] fp_sqrmod              [85] hal_rpc_pkey_load     [169] task_iterate
  [68] fp_sub                  [4] hal_rpc_pkey_sign     [157] task_mutex_lock
  [24] fp_to_unsigned_bin     [51] hal_rpc_sendto        [158] task_mutex_unlock
  [98] fp_unsigned_bin_size    [2] hal_rpc_server_dispatch [170] task_next_waiting (hsm.c)
  [77] get_buffer (modexp.c) [178] hal_rsa_bf_lock       [109] task_sleep
  [99] get_random (rpc_misc.c) [179] hal_rsa_bf_unlock   [160] task_wake
  [41] hal_aes_keyunwrap       [8] hal_rsa_decrypt        [28] task_yield
 [105] hal_aes_keywrap       [117] hal_rsa_key_get_modulus [111] task_yield_maybe
 [165] hal_aes_keywrap_ciphertext_length [115] hal_rsa_key_needs_saving [146] uart_cli_read (mgmt-cli.c)
 [104] hal_asn1_decode_header [36] hal_rsa_private_key_from_der [135] uart_cli_write (mgmt-cli.c)
  [37] hal_asn1_decode_integer [93] hal_rsa_private_key_to_der_extra [56] uart_send_bytes2
  [67] hal_asn1_decode_pkcs8_privatekeyinfo [94] hal_rsa_private_key_to_der_internal [55] uart_send_char2
 [187] hal_asn1_encode_header [54] hal_serial_send_char   [23] unpack_fp (rsa.c)
  [95] hal_asn1_encode_integer [148] hal_slip_process_char
-------------- next part --------------
Flat profile:

Each sample counts as 0.001 seconds.
  %   cumulative   self              self     total           
 time   seconds   seconds    calls   s/call   s/call  name    
 35.93     60.72    60.72                             _mcount_internal
 20.97     96.16    35.44                             __gnu_mcount_nc
  7.35    108.59    12.43  1868797     0.00     0.00  memset
  5.61    118.07     9.48 10907733     0.00     0.00  hal_io_read
  4.72    126.04     7.97   289472     0.00     0.00  s_fp_sub
  3.54    132.02     5.98 12686739     0.00     0.00  next_task
  3.05    137.17     5.15   748370     0.00     0.00  fp_mul_d
  2.93    142.12     4.95  1684001     0.00     0.00  fp_mul_2d
  2.34    146.08     3.96  1030151     0.00     0.00  fp_div_2d
  2.18    149.76     3.68     2007     0.00     0.01  hal_io_wait2
  2.15    153.40     3.64 24043314     0.00     0.00  HAL_GPIO_ReadPin
  1.41    155.78     2.38    55272     0.00     0.00  memcpy
  1.34    158.04     2.26   292998     0.00     0.00  fp_lshd
  1.04    159.79     1.75     2000     0.00     0.00  fp_mul_comba64
  0.94    161.39     1.60  5585312     0.00     0.00  task_yield
  0.64    162.46     1.07     5000     0.00     0.00  fp_div
  0.55    163.38     0.93    13001     0.00     0.00  fp_read_unsigned_bin
  0.53    164.28     0.90     8192     0.00     0.00  sw_hash_core_sha256
  0.46    165.06     0.77   760845     0.00     0.00  fp_cmp_mag
  0.28    165.53     0.47     2000     0.00     0.00  fp_sqr_comba64
  0.26    165.97     0.43   528014     0.00     0.00  hal_io_write
  0.24    166.37     0.41   550202     0.00     0.00  UART_WaitOnFlagUntilTimeout
  0.20    166.71     0.34     6010     0.00     0.00  fp_to_unsigned_bin
  0.18    167.02     0.31  5584297     0.00     0.00  hal_task_yield
  0.18    167.33     0.31                             __udivmoddi4
  0.15    167.58     0.25   275097     0.00     0.00  HAL_UART_Transmit
  0.12    167.79     0.21   288999     0.00     0.00  fp_sub
  0.12    167.98     0.20   275097     0.00     0.00  uart_send_bytes2
  0.09    168.14     0.16  8085077     0.00     0.00  HAL_GetTick
  0.08    168.27     0.13     3003     0.00     0.00  hal_core_alloc_no_wait
  0.05    168.36     0.09     1000     0.00     0.01  hal_modexp2
  0.05    168.44     0.08   272072     0.00     0.00  hal_slip_send_char
  0.04    168.51     0.07   275080     0.00     0.00  uart_send_char2
  0.04    168.58     0.07   275080     0.00     0.00  hal_serial_send_char
  0.04    168.64     0.06   275097     0.00     0.00  HAL_UART_GetState
  0.03    168.70     0.06     6010     0.00     0.00  fp_reverse
  0.03    168.75     0.05     1004     0.00     0.00  hal_slip_send
  0.03    168.80     0.05                             __aeabi_uldivmod
  0.02    168.83     0.03     2048     0.00     0.00  hal_hmac_initialize
  0.02    168.86     0.03     2000     0.00     0.00  fp_mul_comba32
  0.01    168.88     0.02     5000     0.00     0.00  fp_rshd
  0.01    168.89     0.01    20002     0.00     0.00  hal_asn1_decode_header
  0.01    168.90     0.01     4096     0.00     0.00  swytebop
  0.01    168.91     0.01     2000     0.00     0.00  get_buffer
  0.01    168.93     0.01     8194     0.00     0.00  hal_hash_update
  0.01    168.94     0.01    18055     0.00     0.00  fp_count_bits
  0.01    168.95     0.01     4096     0.00     0.00  hal_hash_finalize
  0.00    168.95     0.01     1000     0.00     0.00  hal_rsa_private_key_from_der
  0.00    168.96     0.01        1     0.01     1.50  hal_pbkdf2
  0.00    168.97     0.01  7101427     0.00     0.00  default_idle_hook
  0.00    168.97     0.01     8192     0.00     0.00  hash_write_block
  0.00    168.98     0.01     4096     0.00     0.00  hal_hash_initialize
  0.00    168.98     0.00     1000     0.00     0.06  pkey_local_sign_rsa
  0.00    168.98     0.00     6000     0.00     0.00  unpack_fp
  0.00    168.99     0.00     5000     0.00     0.00  fp_mod
  0.00    168.99     0.00     2048     0.00     0.00  do_hmac
  0.00    168.99     0.00     1000     0.00     0.00  s_fp_add
  0.00    168.99     0.00    11032     0.00     0.00  hal_critical_section_start
  0.00    169.00     0.00     5001     0.00     0.00  fp_cmp
  0.00    169.00     0.00     3000     0.00     0.01  fp_mulmod
  0.00    169.00     0.00    13031     0.00     0.00  fp_unsigned_bin_size
  0.00    169.00     0.00    10001     0.00     0.00  hal_asn1_decode_integer
  0.00    169.00     0.00     4000     0.00     0.00  fp_mul
  0.00    169.00     0.00     2048     0.00     0.00  hal_hmac_finalize
  0.00    169.00     0.00     2000     0.00     0.00  fp_sqr
  0.00    169.00     0.00     1000     0.00     0.00  extract_component
  0.00    169.00     0.00     1000     0.00     0.00  hal_core_alloc2
  0.00    169.01     0.00     1000     0.00     0.02  modexp2
  0.00    169.01     0.00     1000     0.00     0.00  pkcs1_5_pad
  0.00    169.01     0.00                             dispatch_task
  0.00    169.01     0.00   169010     0.00     0.00  HAL_SYSTICK_Callback
  0.00    169.01     0.00   169009     0.00     0.00  HAL_IncTick
  0.00    169.01     0.00   169009     0.00     0.00  HAL_SYSTICK_IRQHandler
  0.00    169.01     0.00    80300     0.00     0.00  RxCallback
  0.00    169.01     0.00    80300     0.00     0.00  hal_slip_process_char
  0.00    169.01     0.00    11032     0.00     0.00  hal_critical_section_end
  0.00    169.01     0.00     8006     0.00     0.00  hal_core_find
  0.00    169.01     0.00     8006     0.00     0.00  hal_core_iterate
  0.00    169.01     0.00     7017     0.00     0.00  hal_xdr_decode_int_peek
  0.00    169.01     0.00     6013     0.00     0.00  hal_xdr_decode_int
  0.00    169.01     0.00     4014     0.00     0.00  hal_xdr_encode_int
  0.00    169.01     0.00     3031     0.00     0.00  fp_cmp_d
  0.00    169.01     0.00     3003     0.00     0.00  hal_core_free
  0.00    169.01     0.00     2050     0.00     0.00  hal_hmac_update
  0.00    169.01     0.00     2046     0.00     0.00  hal_task_yield_maybe
  0.00    169.01     0.00     2046     0.00     0.00  task_yield_maybe
  0.00    169.01     0.00     2008     0.00     0.00  ibuf_get
  0.00    169.01     0.00     2008     0.00     0.00  ibuf_put
  0.00    169.01     0.00     2007     0.00     0.00  memmove
  0.00    169.01     0.00     2006     0.00     0.00  task_mutex_lock
  0.00    169.01     0.00     2006     0.00     0.00  task_mutex_unlock
  0.00    169.01     0.00     2004     0.00     0.00  memcmp
  0.00    169.01     0.00     2000     0.00     0.00  fp_sqrmod
  0.00    169.01     0.00     1473     0.00     0.00  fp_add
  0.00    169.01     0.00     1017     0.00     0.00  task_wake
  0.00    169.01     0.00     1007     0.00     0.00  hal_ks_index_fsck
  0.00    169.01     0.00     1006     0.00     0.01  hal_io_wait
  0.00    169.01     0.00     1006     0.00     0.00  hal_ks_lock
  0.00    169.01     0.00     1006     0.00     0.00  hal_ks_unlock
  0.00    169.01     0.00     1005     0.00     0.00  hal_ks_cache_mark_used
  0.00    169.01     0.00     1005     0.00     0.00  task_sleep
  0.00    169.01     0.00     1004     0.00     0.00  hal_aes_keywrap_ciphertext_length
  0.00    169.01     0.00     1004     0.00     0.00  hal_rpc_sendto
  0.00    169.01     0.00     1004     0.00     0.07  hal_rpc_server_dispatch
  0.00    169.01     0.00     1004     0.00     0.00  ks_find
  0.00    169.01     0.00     1004     0.00     0.00  task_get_func
  0.00    169.01     0.00     1004     0.00     0.00  task_get_state
  0.00    169.01     0.00     1004     0.00     0.00  task_iterate
  0.00    169.01     0.00     1004     0.00     0.00  task_next_waiting
  0.00    169.01     0.00     1003     0.00     0.00  hal_core_alloc
  0.00    169.01     0.00     1002     0.00     0.01  do_keywrap_core
  0.00    169.01     0.00     1002     0.00     0.00  hal_ks_cache_find_block
  0.00    169.01     0.00     1002     0.00     0.00  hal_xdr_decode_fixed_opaque_ptr
  0.00    169.01     0.00     1002     0.00     0.00  hal_xdr_decode_variable_opaque_ptr
  0.00    169.01     0.00     1002     0.00     0.00  ks_volatile_test_owner
  0.00    169.01     0.00     1002     0.00     0.00  load_kek
  0.00    169.01     0.00     1001     0.00     0.00  hal_asn1_decode_pkcs8_privatekeyinfo
  0.00    169.01     0.00     1001     0.00     0.00  hal_ks_block_read_cached
  0.00    169.01     0.00     1001     0.00     0.00  hal_ks_index_find
  0.00    169.01     0.00     1000     0.00     0.01  create_blinding_factors
  0.00    169.01     0.00     1000     0.00     0.01  hal_aes_keyunwrap
  0.00    169.01     0.00     1000     0.00     0.01  hal_ks_fetch
  0.00    169.01     0.00     1000     0.00     0.07  hal_rpc_pkey_sign
  0.00    169.01     0.00     1000     0.00     0.00  hal_rsa_bf_lock
  0.00    169.01     0.00     1000     0.00     0.00  hal_rsa_bf_unlock
  0.00    169.01     0.00     1000     0.00     0.05  hal_rsa_decrypt
  0.00    169.01     0.00     1000     0.00     0.00  hal_rsa_key_get_modulus
  0.00    169.01     0.00     1000     0.00     0.00  hal_rsa_key_needs_saving
  0.00    169.01     0.00     1000     0.00     0.07  pkey_local_sign
  0.00    169.01     0.00     1000     0.00     0.07  pkey_sign
  0.00    169.01     0.00     1000     0.00     0.05  rsa_crt
  0.00    169.01     0.00      170     0.00     0.00  HAL_DMA_IRQHandler
  0.00    169.01     0.00       91     0.00     0.00  HAL_UART_RxCpltCallback
  0.00    169.01     0.00       91     0.00     0.00  UART_DMAReceiveCplt
  0.00    169.01     0.00       79     0.00     0.00  HAL_UART2_RxHalfCpltCallback
  0.00    169.01     0.00       79     0.00     0.00  HAL_UART_RxHalfCpltCallback
  0.00    169.01     0.00       79     0.00     0.00  UART_DMARxHalfCplt
  0.00    169.01     0.00       78     0.00     0.00  HAL_UART2_RxCpltCallback
  0.00    169.01     0.00       66     0.00     0.00  hal_asn1_encode_header
  0.00    169.01     0.00       31     0.00     0.00  hal_asn1_encode_integer
  0.00    169.01     0.00       17     0.00     0.00  uart_cli_write
  0.00    169.01     0.00       13     0.00     0.00  HAL_UART1_RxCpltCallback
  0.00    169.01     0.00       13     0.00     0.00  uart_cli_read
  0.00    169.01     0.00        3     0.00     0.00  hal_asn1_encode_pkcs8_privatekeyinfo
  0.00    169.01     0.00        3     0.00     0.00  ks_volatile_erase
  0.00    169.01     0.00        2     0.00     0.00  check_stack
  0.00    169.01     0.00        2     0.00     0.01  construct_key_block
  0.00    169.01     0.00        2     0.00     0.01  hal_aes_keywrap
  0.00    169.01     0.00        2     0.00     0.00  hal_ks_cache_release
  0.00    169.01     0.00        2     0.00     0.00  hal_ks_logout
  0.00    169.01     0.00        2     0.00     0.00  hal_rpc_is_logged_in
  0.00    169.01     0.00        2     0.00     0.01  hal_rsa_private_key_to_der_extra
  0.00    169.01     0.00        2     0.00     0.01  hal_rsa_private_key_to_der_internal
  0.00    169.01     0.00        2     0.00     0.00  is_logged_in
  0.00    169.01     0.00        2     0.00     0.00  ks_volatile_write
  0.00    169.01     0.00        2     0.00     0.00  ks_volatile_zero
  0.00    169.01     0.00        1     0.00     0.00  cli_add_history
  0.00    169.01     0.00        1     0.00     0.00  cli_command_name
  0.00    169.01     0.00        1     0.00     0.00  cli_find_command
  0.00    169.01     0.00        1     0.00     0.00  cli_parse_line
  0.00    169.01     0.00        1     0.00     0.00  cli_run_command
  0.00    169.01     0.00        1     0.00     0.00  cmd_profile_stop
  0.00    169.01     0.00        1     0.00     0.05  get_random
  0.00    169.01     0.00        1     0.00     0.00  hal_asn1_guess_key_type
  0.00    169.01     0.00        1     0.00     0.00  hal_get_pin
  0.00    169.01     0.00        1     0.00     0.05  hal_get_random
  0.00    169.01     0.00        1     0.00     0.00  hal_ks_attribute_scan
  0.00    169.01     0.00        1     0.00     0.00  hal_ks_block_update
  0.00    169.01     0.00        1     0.00     0.00  hal_ks_cache_pick_lru
  0.00    169.01     0.00        1     0.00     0.00  hal_ks_delete
  0.00    169.01     0.00        1     0.00     0.00  hal_ks_index_add
  0.00    169.01     0.00        1     0.00     0.00  hal_ks_index_delete
  0.00    169.01     0.00        1     0.00     0.00  hal_ks_index_replace
  0.00    169.01     0.00        1     0.00     0.01  hal_ks_rewrite_der
  0.00    169.01     0.00        1     0.00     0.01  hal_ks_store
  0.00    169.01     0.00        1     0.00     0.00  hal_pkey_logout
  0.00    169.01     0.00        1     0.00     0.05  hal_rpc_get_random
  0.00    169.01     0.00        1     0.00     1.50  hal_rpc_login
  0.00    169.01     0.00        1     0.00     0.00  hal_rpc_logout
  0.00    169.01     0.00        1     0.00     0.00  hal_rpc_pkey_delete
  0.00    169.01     0.00        1     0.00     0.06  hal_rpc_pkey_load
  0.00    169.01     0.00        1     0.00     0.05  hal_uuid_gen
  0.00    169.01     0.00        1     0.00     0.00  hal_xdr_encode_fixed_opaque
  0.00    169.01     0.00        1     0.00     0.00  hal_xdr_encode_variable_opaque
  0.00    169.01     0.00        1     0.00     0.00  ks_token_logout
  0.00    169.01     0.00        1     0.00     0.00  ks_volatile_copy_owner
  0.00    169.01     0.00        1     0.00     0.00  ks_volatile_deprecate
  0.00    169.01     0.00        1     0.00     0.00  ks_volatile_logout
  0.00    169.01     0.00        1     0.00     0.00  ks_volatile_set_owner
  0.00    169.01     0.00        1     0.00     1.50  login
  0.00    169.01     0.00        1     0.00     1.50  login
  0.00    169.01     0.00        1     0.00     0.00  logout
  0.00    169.01     0.00        1     0.00     0.00  logout
  0.00    169.01     0.00        1     0.00     0.00  pkey_delete
  0.00    169.01     0.00        1     0.00     0.06  pkey_load
  0.00    169.01     0.00        1     0.00     0.00  pkey_local_delete
  0.00    169.01     0.00        1     0.00     0.00  pkey_local_get_key_type
  0.00    169.01     0.00        1     0.00     0.06  pkey_local_load
  0.00    169.01     0.00        1     0.00     0.00  show_prompt

 %         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 2 byte(s) for 0.00% of 169.01 seconds

index % time    self  children    called     name
                                                 <spontaneous>
[1]     42.9    0.00   72.49                 dispatch_task [1]
                0.00   71.24    1004/1004        hal_rpc_server_dispatch [2]
                0.00    1.24    1004/1004        hal_rpc_sendto [47]
                0.01    0.00    1004/1868797     memset [18]
                0.00    0.00    1004/1005        task_sleep [109]
                0.00    0.00    1004/2008        ibuf_get [115]
                0.00    0.00    1004/2008        ibuf_put [116]
-----------------------------------------------
                0.00   71.24    1004/1004        dispatch_task [1]
[2]     42.1    0.00   71.24    1004         hal_rpc_server_dispatch [2]
                0.00   69.68    1000/1000        pkey_sign [5]
                0.00    1.50       1/1           login [44]
                0.00    0.06       1/1           pkey_load [76]
                0.00    0.00       1/1           pkey_delete [126]
                0.00    0.00       1/1           logout [145]
                0.00    0.00    3012/4014        hal_xdr_encode_int [157]
                0.00    0.00    1004/6013        hal_xdr_decode_int [156]
                0.00    0.00    1004/7017        hal_xdr_decode_int_peek [155]
-----------------------------------------------
                0.00   69.68    1000/1000        pkey_sign [5]
[3]     41.2    0.00   69.68    1000         hal_rpc_pkey_sign [3]
                0.00   69.68    1000/1000        pkey_local_sign [4]
-----------------------------------------------
                0.00   69.68    1000/1000        hal_rpc_pkey_sign [3]
[4]     41.2    0.00   69.68    1000         pkey_local_sign [4]
                0.00   57.30    1000/1000        pkey_local_sign_rsa [7]
                0.00   12.37    1000/1000        hal_ks_fetch [19]
                0.01    0.00    1000/1868797     memset [18]
                0.00    0.00    1000/11032       hal_critical_section_start [105]
                0.00    0.00    1000/11032       hal_critical_section_end [152]
-----------------------------------------------
                0.00   69.68    1000/1000        hal_rpc_server_dispatch [2]
[5]     41.2    0.00   69.68    1000         pkey_sign [5]
                0.00   69.68    1000/1000        hal_rpc_pkey_sign [3]
                0.00    0.00    4000/6013        hal_xdr_decode_int [156]
                0.00    0.00    1000/1002        hal_xdr_decode_variable_opaque_ptr [175]
                0.00    0.00    1000/4014        hal_xdr_encode_int [157]
-----------------------------------------------
                                                 <spontaneous>
[6]     35.9   60.72    0.00                 _mcount_internal [6]
-----------------------------------------------
                0.00   57.30    1000/1000        pkey_local_sign [4]
[7]     33.9    0.00   57.30    1000         pkey_local_sign_rsa [7]
                0.00   52.37    1000/1000        hal_rsa_decrypt [8]
                0.01    4.83    1000/1000        hal_rsa_private_key_from_der [35]
                0.00    0.05    1000/1000        pkcs1_5_pad [81]
                0.00    0.02       2/2           hal_rsa_private_key_to_der_extra [91]
                0.00    0.01       1/1           hal_ks_rewrite_der [96]
                0.00    0.00    1000/1000        hal_rsa_key_get_modulus [108]
                0.00    0.00       1/1868797     memset [18]
                0.00    0.00    1000/1000        hal_rsa_key_needs_saving [181]
-----------------------------------------------
                0.00   52.37    1000/1000        pkey_local_sign_rsa [7]
[8]     31.0    0.00   52.37    1000         hal_rsa_decrypt [8]
                0.00   50.00    1000/1000        rsa_crt [9]
                0.00    1.91    1000/6000        unpack_fp [23]
                0.07    0.39    1000/13001       fp_read_unsigned_bin [32]
                0.01    0.00    2000/1868797     memset [18]
-----------------------------------------------
                0.00   50.00    1000/1000        hal_rsa_decrypt [8]
[9]     29.6    0.00   50.00    1000         rsa_crt [9]
                0.00   23.60    1000/1000        modexp2 [12]
                0.00   15.72    3000/3000        fp_mulmod [15]
                0.00   10.07    1000/1000        create_blinding_factors [26]
                0.00    0.53    1000/4000        fp_mul [40]
                0.04    0.00    1473/289472      s_fp_sub [29]
                0.03    0.00    5000/1868797     memset [18]
                0.00    0.00    1000/1000        s_fp_add [102]
                0.00    0.00    1000/288999      fp_sub [63]
                0.00    0.00    1473/1473        fp_add [110]
                0.00    0.00    3000/3031        fp_cmp_d [158]
-----------------------------------------------
                                                 <spontaneous>
[10]    21.0   35.44    0.00                 __gnu_mcount_nc [10]
-----------------------------------------------
                1.83   10.41    1001/2007        hal_modexp2 [16]
                1.84   10.46    1006/2007        hal_io_wait [21]
[11]    14.5    3.68   20.86    2007         hal_io_wait2 [11]
                9.42    3.45 10839469/10907733     hal_io_read [17]
                0.31    7.69 5581294/5584297     hal_task_yield [28]
-----------------------------------------------
                0.00   23.60    1000/1000        rsa_crt [9]
[12]    14.0    0.00   23.60    1000         modexp2 [12]
                0.09   13.01    1000/1000        hal_modexp2 [16]
                0.00    9.53    5000/6000        unpack_fp [23]
                0.14    0.77    2000/13001       fp_read_unsigned_bin [32]
                0.05    0.00    7000/1868797     memset [18]
                0.00    0.00    5000/13031       fp_unsigned_bin_size [99]
-----------------------------------------------
                0.00    9.40    2000/5000        fp_sqrmod [27]
                0.00   14.10    3000/5000        fp_mulmod [15]
[13]    13.9    0.00   23.50    5000         fp_mod [13]
                1.07   22.18    5000/5000        fp_div [14]
                0.22    0.00    5000/55272       memcpy [39]
                0.03    0.00    5000/1868797     memset [18]
-----------------------------------------------
                1.07   22.18    5000/5000        fp_mod [13]
[14]    13.8    1.07   22.18    5000         fp_div [14]
                7.93    0.00  287999/289472      s_fp_sub [29]
                5.15    0.00  748370/748370      fp_mul_d [33]
                2.26    1.92  292998/292998      fp_lshd [37]
                3.16    0.00  475372/1868797     memset [18]
                0.65    0.00   15000/55272       memcpy [39]
                0.21    0.29  287999/288999      fp_sub [63]
                0.48    0.00  470373/760845      fp_cmp_mag [57]
                0.02    0.03    5000/1030151     fp_div_2d [25]
                0.02    0.03    5000/5000        fp_rshd [82]
                0.03    0.00   10000/1684001     fp_mul_2d [34]
                0.00    0.00    5000/18055       fp_count_bits [98]
                0.00    0.00    5001/5001        fp_cmp [106]
-----------------------------------------------
                0.00   15.72    3000/3000        rsa_crt [9]
[15]     9.3    0.00   15.72    3000         fp_mulmod [15]
                0.00   14.10    3000/5000        fp_mod [13]
                0.00    1.59    3000/4000        fp_mul [40]
                0.02    0.00    3000/1868797     memset [18]
-----------------------------------------------
                0.09   13.01    1000/1000        modexp2 [12]
[16]     7.8    0.09   13.01    1000         hal_modexp2 [16]
                1.83   10.41    1001/2007        hal_io_wait2 [11]
                0.43    0.16  522004/528014      hal_io_write [59]
                0.01    0.08    2000/2000        get_buffer [72]
                0.00    0.08    1000/1000        hal_core_alloc2 [74]
                0.00    0.00    2000/3003        hal_core_free [101]
                0.00    0.00    2256/10907733     hal_io_read [17]
-----------------------------------------------
                0.00    0.00       4/10907733     hal_get_random [84]
                0.00    0.00    2004/10907733     do_keywrap_core [22]
                0.00    0.00    2256/10907733     hal_modexp2 [16]
                0.06    0.02   64000/10907733     get_buffer [72]
                9.42    3.45 10839469/10907733     hal_io_wait2 [11]
[17]     7.7    9.48    3.47 10907733         hal_io_read [17]
                3.47    0.00 22948690/24043314     HAL_GPIO_ReadPin [38]
-----------------------------------------------
                0.00    0.00       1/1868797     _mcleanup [141]
                0.00    0.00       1/1868797     pkey_local_sign_rsa [7]
                0.00    0.00       1/1868797     pkey_local_delete [127]
                0.00    0.00       1/1868797     pkey_local_load [78]
                0.00    0.00       1/1868797     cli_parse_line [123]
                0.00    0.00       1/1868797     cli_command_name [120]
                0.00    0.00       1/1868797     cli_run_command [119]
                0.00    0.00       1/1868797     cli_loop [118]
                0.00    0.00       2/1868797     construct_key_block [89]
                0.00    0.00       2/1868797     ks_volatile_zero [139]
                0.00    0.00       2/1868797     hal_pbkdf2 [45]
                0.00    0.00       2/1868797     hal_aes_keywrap [90]
                0.00    0.00       3/1868797     ks_volatile_erase [137]
                0.00    0.00       3/1868797     hal_rsa_private_key_to_der_internal [92]
                0.00    0.00       3/1868797     _cleanup_r [138]
                0.00    0.00       4/1868797     hal_asn1_encode_pkcs8_privatekeyinfo [103]
                0.01    0.00    1000/1868797     pkcs1_5_pad [81]
                0.01    0.00    1000/1868797     pkey_local_sign [4]
                0.01    0.00    1000/1868797     create_blinding_factors [26]
                0.01    0.00    1001/1868797     hal_asn1_decode_pkcs8_privatekeyinfo [64]
                0.01    0.00    1004/1868797     dispatch_task [1]
                0.01    0.00    2000/1868797     hal_rsa_decrypt [8]
                0.01    0.00    2000/1868797     hal_rsa_private_key_from_der [35]
                0.01    0.00    2000/1868797     fp_sqrmod [27]
                0.01    0.00    2048/1868797     hal_hmac_initialize [66]
                0.02    0.00    3000/1868797     fp_mulmod [15]
                0.03    0.00    4096/1868797     hal_hash_initialize [88]
                0.03    0.00    4096/1868797     hal_hash_finalize [62]
                0.03    0.00    5000/1868797     rsa_crt [9]
                0.03    0.00    5000/1868797     fp_rshd [82]
                0.03    0.00    5000/1868797     fp_mod [13]
                0.04    0.00    6000/1868797     unpack_fp [23]
                0.05    0.00    7000/1868797     modexp2 [12]
                0.07    0.00   10001/1868797     hal_asn1_decode_integer [36]
                0.09    0.00   13001/1868797     fp_read_unsigned_bin [32]
                1.92    0.00  287998/1868797     fp_lshd [37]
                3.16    0.00  475372/1868797     fp_div [14]
                6.85    0.00 1030151/1868797     fp_div_2d [25]
[18]     7.4   12.43    0.00 1868797         memset [18]
-----------------------------------------------
                0.00   12.37    1000/1000        pkey_local_sign [4]
[19]     7.3    0.00   12.37    1000         hal_ks_fetch [19]
                0.00   12.32    1000/1000        hal_aes_keyunwrap [20]
                0.04    0.00    1000/55272       memcpy [39]
                0.00    0.00    1000/1006        hal_ks_lock [164]
                0.00    0.00    1000/1001        hal_ks_index_find [178]
                0.00    0.00    1000/1002        ks_volatile_test_owner [176]
                0.00    0.00    1000/1001        hal_ks_block_read_cached [177]
                0.00    0.00    1000/1005        hal_ks_cache_mark_used [166]
                0.00    0.00    1000/1006        hal_ks_unlock [165]
-----------------------------------------------
                0.00   12.32    1000/1000        hal_ks_fetch [19]
[20]     7.3    0.00   12.32    1000         hal_aes_keyunwrap [20]
                0.00   12.23    1000/1002        do_keywrap_core [22]
                0.00    0.04    1000/2007        memmove [73]
                0.00    0.04    1000/1003        hal_core_alloc [87]
                0.00    0.00    1000/1002        load_kek [104]
                0.00    0.00    1000/3003        hal_core_free [101]
-----------------------------------------------
                0.00    0.05       4/1006        hal_get_random [84]
                0.00   12.25    1002/1006        do_keywrap_core [22]
[21]     7.3    0.00   12.30    1006         hal_io_wait [21]
                1.84   10.46    1006/2007        hal_io_wait2 [11]
-----------------------------------------------
                0.00    0.02       2/1002        hal_aes_keywrap [90]
                0.00   12.23    1000/1002        hal_aes_keyunwrap [20]
[22]     7.3    0.00   12.26    1002         do_keywrap_core [22]
                0.00   12.25    1002/1006        hal_io_wait [21]
                0.00    0.00    4006/528014      hal_io_write [59]
                0.00    0.00    2004/10907733     hal_io_read [17]
                0.00    0.00    1002/1004        hal_aes_keywrap_ciphertext_length [167]
-----------------------------------------------
                0.00    1.91    1000/6000        hal_rsa_decrypt [8]
                0.00    9.53    5000/6000        modexp2 [12]
[23]     6.8    0.00   11.44    6000         unpack_fp [23]
                0.34   11.06    6000/6010        fp_to_unsigned_bin [24]
                0.04    0.00    6000/1868797     memset [18]
                0.00    0.00    6000/13031       fp_unsigned_bin_size [99]
-----------------------------------------------
                0.00    0.02      10/6010        hal_asn1_encode_integer [93]
                0.34   11.06    6000/6010        unpack_fp [23]
[24]     6.8    0.34   11.07    6010         fp_to_unsigned_bin [24]
                3.94    6.82 1025151/1030151     fp_div_2d [25]
                0.26    0.00    6010/55272       memcpy [39]
                0.06    0.00    6010/6010        fp_reverse [79]
-----------------------------------------------
                0.02    0.03    5000/1030151     fp_div [14]
                3.94    6.82 1025151/1030151     fp_to_unsigned_bin [24]
[25]     6.4    3.96    6.85 1030151         fp_div_2d [25]
                6.85    0.00 1030151/1868797     memset [18]
-----------------------------------------------
                0.00   10.07    1000/1000        rsa_crt [9]
[26]     6.0    0.00   10.07    1000         create_blinding_factors [26]
                0.00    9.98    2000/2000        fp_sqrmod [27]
                0.09    0.00    2000/55272       memcpy [39]
                0.01    0.00    1000/1868797     memset [18]
                0.00    0.00    1000/760845      fp_cmp_mag [57]
                0.00    0.00    1000/13031       fp_unsigned_bin_size [99]
                0.00    0.00    1000/1000        hal_rsa_bf_lock [179]
                0.00    0.00    1000/1000        hal_rsa_bf_unlock [180]
-----------------------------------------------
                0.00    9.98    2000/2000        create_blinding_factors [26]
[27]     5.9    0.00    9.98    2000         fp_sqrmod [27]
                0.00    9.40    2000/5000        fp_mod [13]
                0.00    0.56    2000/2000        fp_sqr [60]
                0.01    0.00    2000/1868797     memset [18]
-----------------------------------------------
                0.00    0.00    3003/5584297     hal_core_free [101]
                0.31    7.69 5581294/5584297     hal_io_wait2 [11]
[28]     4.7    0.31    7.69 5584297         hal_task_yield [28]
                1.60    6.10 5584297/5585312     task_yield [30]
-----------------------------------------------
                0.04    0.00    1473/289472      rsa_crt [9]
                7.93    0.00  287999/289472      fp_div [14]
[29]     4.7    7.97    0.00  289472         s_fp_sub [29]
-----------------------------------------------
                0.00    0.00      10/5585312     task_yield_maybe [131]
                0.00    0.00    1005/5585312     task_sleep [109]
                1.60    6.10 5584297/5585312     hal_task_yield [28]
[30]     4.6    1.60    6.10 5585312         task_yield [30]
                5.98    0.00 12686739/12686739     next_task [31]
                0.11    0.00 5585312/8085077     HAL_GetTick [70]
                0.01    0.00 7101427/7101427     default_idle_hook [100]
                0.00    0.00       2/2           check_stack [191]
-----------------------------------------------
                5.98    0.00 12686739/12686739     task_yield [30]
[31]     3.5    5.98    0.00 12686739         next_task [31]
-----------------------------------------------
                0.07    0.39    1000/13001       hal_rsa_decrypt [8]
                0.14    0.77    2000/13001       modexp2 [12]
                0.71    3.85   10001/13001       hal_asn1_decode_integer [36]
[32]     3.5    0.93    5.01   13001         fp_read_unsigned_bin [32]
                4.92    0.00 1674001/1684001     fp_mul_2d [34]
                0.09    0.00   13001/1868797     memset [18]
-----------------------------------------------
                5.15    0.00  748370/748370      fp_div [14]
[33]     3.0    5.15    0.00  748370         fp_mul_d [33]
-----------------------------------------------
                0.03    0.00   10000/1684001     fp_div [14]
                4.92    0.00 1674001/1684001     fp_read_unsigned_bin [32]
[34]     2.9    4.95    0.00 1684001         fp_mul_2d [34]
-----------------------------------------------
                0.01    4.83    1000/1000        pkey_local_sign_rsa [7]
[35]     2.9    0.01    4.83    1000         hal_rsa_private_key_from_der [35]
                0.00    4.17    9000/10001       hal_asn1_decode_integer [36]
                0.00    0.47    1000/1001        hal_asn1_decode_pkcs8_privatekeyinfo [64]
                0.17    0.00    3996/55272       memcpy [39]
                0.01    0.00    2000/1868797     memset [18]
                0.00    0.00    4996/20002       hal_asn1_decode_header [94]
                0.00    0.00    1000/2004        memcmp [161]
-----------------------------------------------
                0.00    0.46    1001/10001       hal_asn1_decode_pkcs8_privatekeyinfo [64]
                0.00    4.17    9000/10001       hal_rsa_private_key_from_der [35]
[36]     2.7    0.00    4.64   10001         hal_asn1_decode_integer [36]
                0.71    3.85   10001/13001       fp_read_unsigned_bin [32]
                0.07    0.00   10001/1868797     memset [18]
                0.01    0.00   10001/20002       hal_asn1_decode_header [94]
-----------------------------------------------
                2.26    1.92  292998/292998      fp_div [14]
[37]     2.5    2.26    1.92  292998         fp_lshd [37]
                1.92    0.00  287998/1868797     memset [18]
-----------------------------------------------
                0.17    0.00 1094624/24043314     hal_io_write [59]
                3.47    0.00 22948690/24043314     hal_io_read [17]
[38]     2.2    3.64    0.00 24043314         HAL_GPIO_ReadPin [38]
-----------------------------------------------
                0.00    0.00       1/55272       hal_xdr_encode_fixed_opaque [132]
                0.00    0.00       1/55272       hal_asn1_encode_pkcs8_privatekeyinfo [103]
                0.00    0.00       2/55272       hal_ks_rewrite_der [96]
                0.00    0.00       2/55272       ks_volatile_write [124]
                0.00    0.00       2/55272       cli_parse_line [123]
                0.00    0.00       2/55272       cli_command_name [120]
                0.00    0.00       4/55272       hal_rsa_private_key_to_der_internal [92]
                0.00    0.00       4/55272       hal_pbkdf2 [45]
                0.04    0.00    1000/55272       hal_ks_fetch [19]
                0.09    0.00    2000/55272       create_blinding_factors [26]
                0.09    0.00    2000/55272       fp_sqr_comba64 [61]
                0.09    0.00    2006/55272       memmove [73]
                0.09    0.00    2048/55272       hal_hmac_initialize [66]
                0.17    0.00    3996/55272       hal_rsa_private_key_from_der [35]
                0.17    0.00    4000/55272       fp_mul_comba32 [69]
                0.17    0.00    4000/55272       fp_mul_comba64 [41]
                0.22    0.00    5000/55272       fp_mod [13]
                0.26    0.00    6010/55272       fp_to_unsigned_bin [24]
                0.35    0.00    8194/55272       hal_hash_update [56]
                0.65    0.00   15000/55272       fp_div [14]
[39]     1.4    2.38    0.00   55272         memcpy [39]
-----------------------------------------------
                0.00    0.53    1000/4000        rsa_crt [9]
                0.00    1.59    3000/4000        fp_mulmod [15]
[40]     1.3    0.00    2.12    4000         fp_mul [40]
                1.75    0.17    2000/2000        fp_mul_comba64 [41]
                0.03    0.17    2000/2000        fp_mul_comba32 [69]
-----------------------------------------------
                1.75    0.17    2000/2000        fp_mul [40]
[41]     1.1    1.75    0.17    2000         fp_mul_comba64 [41]
                0.17    0.00    4000/55272       memcpy [39]
-----------------------------------------------
                0.00    1.50       1/1           login [44]
[42]     0.9    0.00    1.50       1         hal_rpc_login [42]
                0.00    1.50       1/1           login [43]
-----------------------------------------------
                0.00    1.50       1/1           hal_rpc_login [42]
[43]     0.9    0.00    1.50       1         login [43]
                0.01    1.49       1/1           hal_pbkdf2 [45]
                0.00    0.00       1/11032       hal_critical_section_start [105]
                0.00    0.00       1/1           hal_get_pin [196]
                0.00    0.00       1/11032       hal_critical_section_end [152]
-----------------------------------------------
                0.00    1.50       1/1           hal_rpc_server_dispatch [2]
[44]     0.9    0.00    1.50       1         login [44]
                0.00    1.50       1/1           hal_rpc_login [42]
                0.00    0.00       2/6013        hal_xdr_decode_int [156]
                0.00    0.00       1/1002        hal_xdr_decode_variable_opaque_ptr [175]
-----------------------------------------------
                0.01    1.49       1/1           login [43]
[45]     0.9    0.01    1.49       1         hal_pbkdf2 [45]
                0.00    1.49    2048/2048        do_hmac [46]
                0.00    0.00       4/55272       memcpy [39]
                0.00    0.00    2046/2046        hal_task_yield_maybe [130]
                0.00    0.00       2/1868797     memset [18]
-----------------------------------------------
                0.00    1.49    2048/2048        hal_pbkdf2 [45]
[46]     0.9    0.00    1.49    2048         do_hmac [46]
                0.00    0.93    2048/2048        hal_hmac_finalize [53]
                0.03    0.32    2048/2048        hal_hmac_initialize [66]
                0.00    0.20    2050/2050        hal_hmac_update [68]
-----------------------------------------------
                0.00    1.24    1004/1004        dispatch_task [1]
[47]     0.7    0.00    1.24    1004         hal_rpc_sendto [47]
                0.05    1.19    1004/1004        hal_slip_send [48]
-----------------------------------------------
                0.05    1.19    1004/1004        hal_rpc_sendto [47]
[48]     0.7    0.05    1.19    1004         hal_slip_send [48]
                0.08    1.10  272072/272072      hal_slip_send_char [49]
                0.00    0.01    2008/275080      hal_serial_send_char [50]
-----------------------------------------------
                0.08    1.10  272072/272072      hal_slip_send [48]
[49]     0.7    0.08    1.10  272072         hal_slip_send_char [49]
                0.07    1.03  273072/275080      hal_serial_send_char [50]
-----------------------------------------------
                0.00    0.01    2008/275080      hal_slip_send [48]
                0.07    1.03  273072/275080      hal_slip_send_char [49]
[50]     0.7    0.07    1.04  275080         hal_serial_send_char [50]
                0.07    0.97  275080/275080      uart_send_char2 [51]
-----------------------------------------------
                0.07    0.97  275080/275080      hal_serial_send_char [50]
[51]     0.6    0.07    0.97  275080         uart_send_char2 [51]
                0.19    0.77  275080/275097      uart_send_bytes2 [52]
-----------------------------------------------
                0.00    0.00      17/275097      uart_cli_write [128]
                0.19    0.77  275080/275097      uart_send_char2 [51]
[52]     0.6    0.20    0.77  275097         uart_send_bytes2 [52]
                0.25    0.46  275097/275097      HAL_UART_Transmit [58]
                0.06    0.00  275097/275097      HAL_UART_GetState [75]
-----------------------------------------------
                0.00    0.93    2048/2048        do_hmac [46]
[53]     0.5    0.00    0.93    2048         hal_hmac_finalize [53]
                0.01    0.49    4096/4096        hal_hash_finalize [62]
                0.01    0.40    4096/8194        hal_hash_update [56]
                0.00    0.01    2048/4096        hal_hash_initialize [88]
-----------------------------------------------
                0.00    0.45    4096/8192        hal_hash_update [56]
                0.00    0.45    4096/8192        hal_hash_finalize [62]
[54]     0.5    0.01    0.90    8192         hash_write_block [54]
                0.90    0.00    8192/8192        sw_hash_core_sha256 [55]
-----------------------------------------------
                0.90    0.00    8192/8192        hash_write_block [54]
[55]     0.5    0.90    0.00    8192         sw_hash_core_sha256 [55]
-----------------------------------------------
                0.00    0.20    2048/8194        hal_hmac_initialize [66]
                0.00    0.20    2050/8194        hal_hmac_update [68]
                0.01    0.40    4096/8194        hal_hmac_finalize [53]
[56]     0.5    0.01    0.80    8194         hal_hash_update [56]
                0.00    0.45    4096/8192        hash_write_block [54]
                0.35    0.00    8194/55272       memcpy [39]
-----------------------------------------------
                0.00    0.00     473/760845      fp_add [110]
                0.00    0.00    1000/760845      create_blinding_factors [26]
                0.29    0.00  288999/760845      fp_sub [63]
                0.48    0.00  470373/760845      fp_div [14]
[57]     0.5    0.77    0.00  760845         fp_cmp_mag [57]
-----------------------------------------------
                0.25    0.46  275097/275097      uart_send_bytes2 [52]
[58]     0.4    0.25    0.46  275097         HAL_UART_Transmit [58]
                0.41    0.05  550202/550202      UART_WaitOnFlagUntilTimeout [65]
-----------------------------------------------
                0.00    0.00    2004/528014      load_kek [104]
                0.00    0.00    4006/528014      do_keywrap_core [22]
                0.43    0.16  522004/528014      hal_modexp2 [16]
[59]     0.4    0.43    0.17  528014         hal_io_write [59]
                0.17    0.00 1094624/24043314     HAL_GPIO_ReadPin [38]
-----------------------------------------------
                0.00    0.56    2000/2000        fp_sqrmod [27]
[60]     0.3    0.00    0.56    2000         fp_sqr [60]
                0.47    0.09    2000/2000        fp_sqr_comba64 [61]
-----------------------------------------------
                0.47    0.09    2000/2000        fp_sqr [60]
[61]     0.3    0.47    0.09    2000         fp_sqr_comba64 [61]
                0.09    0.00    2000/55272       memcpy [39]
-----------------------------------------------
                0.01    0.49    4096/4096        hal_hmac_finalize [53]
[62]     0.3    0.01    0.49    4096         hal_hash_finalize [62]
                0.00    0.45    4096/8192        hash_write_block [54]
                0.03    0.00    4096/1868797     memset [18]
                0.01    0.00    4096/4096        swytebop [95]
-----------------------------------------------
                0.00    0.00    1000/288999      rsa_crt [9]
                0.21    0.29  287999/288999      fp_div [14]
[63]     0.3    0.21    0.29  288999         fp_sub [63]
                0.29    0.00  288999/760845      fp_cmp_mag [57]
-----------------------------------------------
                0.00    0.00       1/1001        hal_asn1_guess_key_type [111]
                0.00    0.47    1000/1001        hal_rsa_private_key_from_der [35]
[64]     0.3    0.00    0.47    1001         hal_asn1_decode_pkcs8_privatekeyinfo [64]
                0.00    0.46    1001/10001       hal_asn1_decode_integer [36]
                0.01    0.00    1001/1868797     memset [18]
                0.00    0.00    5005/20002       hal_asn1_decode_header [94]
-----------------------------------------------
                0.41    0.05  550202/550202      HAL_UART_Transmit [58]
[65]     0.3    0.41    0.05  550202         UART_WaitOnFlagUntilTimeout [65]
                0.05    0.00 2497719/8085077     HAL_GetTick [70]
-----------------------------------------------
                0.03    0.32    2048/2048        do_hmac [46]
[66]     0.2    0.03    0.32    2048         hal_hmac_initialize [66]
                0.00    0.20    2048/8194        hal_hash_update [56]
                0.09    0.00    2048/55272       memcpy [39]
                0.00    0.01    2048/4096        hal_hash_initialize [88]
                0.01    0.00    2048/1868797     memset [18]
-----------------------------------------------
                                                 <spontaneous>
[67]     0.2    0.31    0.00                 __udivmoddi4 [67]
-----------------------------------------------
                0.00    0.20    2050/2050        do_hmac [46]
[68]     0.1    0.00    0.20    2050         hal_hmac_update [68]
                0.00    0.20    2050/8194        hal_hash_update [56]
-----------------------------------------------
                0.03    0.17    2000/2000        fp_mul [40]
[69]     0.1    0.03    0.17    2000         fp_mul_comba32 [69]
                0.17    0.00    4000/55272       memcpy [39]
-----------------------------------------------
                0.00    0.00    2046/8085077     task_yield_maybe [131]
                0.05    0.00 2497719/8085077     UART_WaitOnFlagUntilTimeout [65]
                0.11    0.00 5585312/8085077     task_yield [30]
[70]     0.1    0.16    0.00 8085077         HAL_GetTick [70]
-----------------------------------------------
                0.04    0.00    1003/3003        hal_core_alloc [87]
                0.08    0.00    2000/3003        hal_core_alloc2 [74]
[71]     0.1    0.13    0.00    3003         hal_core_alloc_no_wait [71]
                0.00    0.00    3003/11032       hal_critical_section_start [105]
                0.00    0.00    8006/8006        hal_core_find [153]
                0.00    0.00    3003/11032       hal_critical_section_end [152]
-----------------------------------------------
                0.01    0.08    2000/2000        hal_modexp2 [16]
[72]     0.1    0.01    0.08    2000         get_buffer [72]
                0.06    0.02   64000/10907733     hal_io_read [17]
-----------------------------------------------
                0.00    0.00       1/2007        hal_ks_index_add [134]
                0.00    0.00       1/2007        hal_ks_index_delete [135]
                0.00    0.00       1/2007        hal_ks_index_replace [136]
                0.00    0.00       1/2007        hal_asn1_encode_pkcs8_privatekeyinfo [103]
                0.00    0.00       1/2007        cli_command_name [120]
                0.00    0.00       2/2007        hal_aes_keywrap [90]
                0.00    0.04    1000/2007        pkcs1_5_pad [81]
                0.00    0.04    1000/2007        hal_aes_keyunwrap [20]
[73]     0.1    0.00    0.09    2007         memmove [73]
                0.09    0.00    2006/55272       memcpy [39]
-----------------------------------------------
                0.00    0.08    1000/1000        hal_modexp2 [16]
[74]     0.1    0.00    0.08    1000         hal_core_alloc2 [74]
                0.08    0.00    2000/3003        hal_core_alloc_no_wait [71]
-----------------------------------------------
                0.06    0.00  275097/275097      uart_send_bytes2 [52]
[75]     0.0    0.06    0.00  275097         HAL_UART_GetState [75]
-----------------------------------------------
                0.00    0.06       1/1           hal_rpc_server_dispatch [2]
[76]     0.0    0.00    0.06       1         pkey_load [76]
                0.00    0.06       1/1           hal_rpc_pkey_load [77]
                0.00    0.00       1/1           hal_xdr_encode_variable_opaque [133]
                0.00    0.00       3/6013        hal_xdr_decode_int [156]
                0.00    0.00       1/1002        hal_xdr_decode_variable_opaque_ptr [175]
                0.00    0.00       1/4014        hal_xdr_encode_int [157]
-----------------------------------------------
                0.00    0.06       1/1           pkey_load [76]
[77]     0.0    0.00    0.06       1         hal_rpc_pkey_load [77]
                0.00    0.06       1/1           pkey_local_load [78]
-----------------------------------------------
                0.00    0.06       1/1           hal_rpc_pkey_load [77]
[78]     0.0    0.00    0.06       1         pkey_local_load [78]
                0.00    0.05       1/1           hal_uuid_gen [86]
                0.00    0.01       1/1           hal_ks_store [97]
                0.00    0.00       1/1           hal_asn1_guess_key_type [111]
                0.00    0.00       1/1868797     memset [18]
                0.00    0.00       1/2           hal_rpc_is_logged_in [146]
                0.00    0.00       1/11032       hal_critical_section_start [105]
                0.00    0.00       1/11032       hal_critical_section_end [152]
-----------------------------------------------
                0.06    0.00    6010/6010        fp_to_unsigned_bin [24]
[79]     0.0    0.06    0.00    6010         fp_reverse [79]
-----------------------------------------------
                                                 <spontaneous>
[80]     0.0    0.05    0.00                 __aeabi_uldivmod [80]
-----------------------------------------------
                0.00    0.05    1000/1000        pkey_local_sign_rsa [7]
[81]     0.0    0.00    0.05    1000         pkcs1_5_pad [81]
                0.00    0.04    1000/2007        memmove [73]
                0.01    0.00    1000/1868797     memset [18]
-----------------------------------------------
                0.02    0.03    5000/5000        fp_div [14]
[82]     0.0    0.02    0.03    5000         fp_rshd [82]
                0.03    0.00    5000/1868797     memset [18]
-----------------------------------------------
                0.00    0.05       1/1           hal_rpc_get_random [85]
[83]     0.0    0.00    0.05       1         get_random [83]
                0.00    0.05       1/1           hal_get_random [84]
-----------------------------------------------
                0.00    0.05       1/1           get_random [83]
[84]     0.0    0.00    0.05       1         hal_get_random [84]
                0.00    0.05       4/1006        hal_io_wait [21]
                0.00    0.00       1/1003        hal_core_alloc [87]
                0.00    0.00       4/10907733     hal_io_read [17]
                0.00    0.00       1/3003        hal_core_free [101]
-----------------------------------------------
                0.00    0.05       1/1           hal_uuid_gen [86]
[85]     0.0    0.00    0.05       1         hal_rpc_get_random [85]
                0.00    0.05       1/1           get_random [83]
-----------------------------------------------
                0.00    0.05       1/1           pkey_local_load [78]
[86]     0.0    0.00    0.05       1         hal_uuid_gen [86]
                0.00    0.05       1/1           hal_rpc_get_random [85]
-----------------------------------------------
                0.00    0.00       1/1003        hal_get_random [84]
                0.00    0.00       2/1003        hal_aes_keywrap [90]
                0.00    0.04    1000/1003        hal_aes_keyunwrap [20]
[87]     0.0    0.00    0.04    1003         hal_core_alloc [87]
                0.04    0.00    1003/3003        hal_core_alloc_no_wait [71]
-----------------------------------------------
                0.00    0.01    2048/4096        hal_hmac_initialize [66]
                0.00    0.01    2048/4096        hal_hmac_finalize [53]
[88]     0.0    0.01    0.03    4096         hal_hash_initialize [88]
                0.03    0.00    4096/1868797     memset [18]
-----------------------------------------------
                0.00    0.01       1/2           hal_ks_store [97]
                0.00    0.01       1/2           hal_ks_rewrite_der [96]
[89]     0.0    0.00    0.02       2         construct_key_block [89]
                0.00    0.02       2/2           hal_aes_keywrap [90]
                0.00    0.00       2/1868797     memset [18]
-----------------------------------------------
                0.00    0.02       2/2           construct_key_block [89]
[90]     0.0    0.00    0.02       2         hal_aes_keywrap [90]
                0.00    0.02       2/1002        do_keywrap_core [22]
                0.00    0.00       2/2007        memmove [73]
                0.00    0.00       2/1003        hal_core_alloc [87]
                0.00    0.00       2/1868797     memset [18]
                0.00    0.00       2/1002        load_kek [104]
                0.00    0.00       2/3003        hal_core_free [101]
                0.00    0.00       2/1004        hal_aes_keywrap_ciphertext_length [167]
-----------------------------------------------
                0.00    0.02       2/2           pkey_local_sign_rsa [7]
[91]     0.0    0.00    0.02       2         hal_rsa_private_key_to_der_extra [91]
                0.00    0.02       2/2           hal_rsa_private_key_to_der_internal [92]
-----------------------------------------------
                0.00    0.02       2/2           hal_rsa_private_key_to_der_extra [91]
[92]     0.0    0.00    0.02       2         hal_rsa_private_key_to_der_internal [92]
                0.00    0.02      27/31          hal_asn1_encode_integer [93]
                0.00    0.00       3/3           hal_asn1_encode_pkcs8_privatekeyinfo [103]
                0.00    0.00       4/55272       memcpy [39]
                0.00    0.00       3/1868797     memset [18]
                0.00    0.00      15/66          hal_asn1_encode_header [189]
-----------------------------------------------
                0.00    0.00       4/31          hal_asn1_encode_pkcs8_privatekeyinfo [103]
                0.00    0.02      27/31          hal_rsa_private_key_to_der_internal [92]
[93]     0.0    0.00    0.02      31         hal_asn1_encode_integer [93]
                0.00    0.02      10/6010        fp_to_unsigned_bin [24]
                0.00    0.00      31/13031       fp_unsigned_bin_size [99]
                0.00    0.00      24/18055       fp_count_bits [98]
                0.00    0.00      31/3031        fp_cmp_d [158]
                0.00    0.00      31/66          hal_asn1_encode_header [189]
-----------------------------------------------
                0.00    0.00    4996/20002       hal_rsa_private_key_from_der [35]
                0.00    0.00    5005/20002       hal_asn1_decode_pkcs8_privatekeyinfo [64]
                0.01    0.00   10001/20002       hal_asn1_decode_integer [36]
[94]     0.0    0.01    0.00   20002         hal_asn1_decode_header [94]
-----------------------------------------------
                0.01    0.00    4096/4096        hal_hash_finalize [62]
[95]     0.0    0.01    0.00    4096         swytebop [95]
-----------------------------------------------
                0.00    0.01       1/1           pkey_local_sign_rsa [7]
[96]     0.0    0.00    0.01       1         hal_ks_rewrite_der [96]
                0.00    0.01       1/2           construct_key_block [89]
                0.00    0.00       1/1           hal_ks_block_update [122]
                0.00    0.00       2/55272       memcpy [39]
                0.00    0.00       1/1006        hal_ks_lock [164]
                0.00    0.00       1/1001        hal_ks_index_find [178]
                0.00    0.00       1/1002        ks_volatile_test_owner [176]
                0.00    0.00       1/1006        hal_ks_unlock [165]
                0.00    0.00       1/1001        hal_ks_block_read_cached [177]
                0.00    0.00       1/1005        hal_ks_cache_mark_used [166]
                0.00    0.00       1/1           hal_ks_attribute_scan [197]
-----------------------------------------------
                0.00    0.01       1/1           pkey_local_load [78]
[97]     0.0    0.00    0.01       1         hal_ks_store [97]
                0.00    0.01       1/2           construct_key_block [89]
                0.00    0.00       1/2           ks_volatile_write [124]
                0.00    0.00       1/1           hal_ks_index_add [134]
                0.00    0.00       1/3           ks_volatile_erase [137]
                0.00    0.00       1/1006        hal_ks_lock [164]
                0.00    0.00       1/1           hal_ks_cache_pick_lru [198]
                0.00    0.00       1/1006        hal_ks_unlock [165]
                0.00    0.00       1/1005        hal_ks_cache_mark_used [166]
                0.00    0.00       1/1           ks_volatile_set_owner [203]
-----------------------------------------------
                0.00    0.00      24/18055       hal_asn1_encode_integer [93]
                0.00    0.00    5000/18055       fp_div [14]
                0.01    0.00   13031/18055       fp_unsigned_bin_size [99]
[98]     0.0    0.01    0.00   18055         fp_count_bits [98]
-----------------------------------------------
                0.00    0.00      31/13031       hal_asn1_encode_integer [93]
                0.00    0.00    1000/13031       extract_component [107]
                0.00    0.00    1000/13031       create_blinding_factors [26]
                0.00    0.00    5000/13031       modexp2 [12]
                0.00    0.00    6000/13031       unpack_fp [23]
[99]     0.0    0.00    0.01   13031         fp_unsigned_bin_size [99]
                0.01    0.00   13031/18055       fp_count_bits [98]
-----------------------------------------------
                0.01    0.00 7101427/7101427     task_yield [30]
[100]    0.0    0.01    0.00 7101427         default_idle_hook [100]
-----------------------------------------------
                0.00    0.00       1/3003        hal_get_random [84]
                0.00    0.00       2/3003        hal_aes_keywrap [90]
                0.00    0.00    1000/3003        hal_aes_keyunwrap [20]
                0.00    0.00    2000/3003        hal_modexp2 [16]
[101]    0.0    0.00    0.00    3003         hal_core_free [101]
                0.00    0.00    3003/5584297     hal_task_yield [28]
                0.00    0.00    3003/11032       hal_critical_section_start [105]
                0.00    0.00    3003/11032       hal_critical_section_end [152]
-----------------------------------------------
                0.00    0.00    1000/1000        rsa_crt [9]
[102]    0.0    0.00    0.00    1000         s_fp_add [102]
-----------------------------------------------
                0.00    0.00       3/3           hal_rsa_private_key_to_der_internal [92]
[103]    0.0    0.00    0.00       3         hal_asn1_encode_pkcs8_privatekeyinfo [103]
                0.00    0.00       4/31          hal_asn1_encode_integer [93]
                0.00    0.00       1/55272       memcpy [39]
                0.00    0.00       1/2007        memmove [73]
                0.00    0.00       4/1868797     memset [18]
                0.00    0.00      20/66          hal_asn1_encode_header [189]
-----------------------------------------------
                0.00    0.00       2/1002        hal_aes_keywrap [90]
                0.00    0.00    1000/1002        hal_aes_keyunwrap [20]
[104]    0.0    0.00    0.00    1002         load_kek [104]
                0.00    0.00    2004/528014      hal_io_write [59]
-----------------------------------------------
                0.00    0.00       1/11032       login [43]
                0.00    0.00       1/11032       pkey_local_get_key_type [149]
                0.00    0.00       1/11032       pkey_local_load [78]
                0.00    0.00       1/11032       hal_pkey_logout [148]
                0.00    0.00       2/11032       is_logged_in [147]
                0.00    0.00       2/11032       logout [144]
                0.00    0.00       2/11032       pkey_local_delete [127]
                0.00    0.00    1000/11032       pkey_local_sign [4]
                0.00    0.00    2008/11032       ibuf_put [116]
                0.00    0.00    2008/11032       ibuf_get [115]
                0.00    0.00    3003/11032       hal_core_free [101]
                0.00    0.00    3003/11032       hal_core_alloc_no_wait [71]
[105]    0.0    0.00    0.00   11032         hal_critical_section_start [105]
-----------------------------------------------
                0.00    0.00    5001/5001        fp_div [14]
[106]    0.0    0.00    0.00    5001         fp_cmp [106]
-----------------------------------------------
                0.00    0.00    1000/1000        hal_rsa_key_get_modulus [108]
[107]    0.0    0.00    0.00    1000         extract_component [107]
                0.00    0.00    1000/13031       fp_unsigned_bin_size [99]
-----------------------------------------------
                0.00    0.00    1000/1000        pkey_local_sign_rsa [7]
[108]    0.0    0.00    0.00    1000         hal_rsa_key_get_modulus [108]
                0.00    0.00    1000/1000        extract_component [107]
-----------------------------------------------
                0.00    0.00       1/1005        uart_cli_read [142]
                0.00    0.00    1004/1005        dispatch_task [1]
[109]    0.0    0.00    0.00    1005         task_sleep [109]
                0.00    0.00    1005/5585312     task_yield [30]
-----------------------------------------------
                0.00    0.00    1473/1473        rsa_crt [9]
[110]    0.0    0.00    0.00    1473         fp_add [110]
                0.00    0.00     473/760845      fp_cmp_mag [57]
-----------------------------------------------
                0.00    0.00       1/1           pkey_local_load [78]
[111]    0.0    0.00    0.00       1         hal_asn1_guess_key_type [111]
                0.00    0.00       1/1001        hal_asn1_decode_pkcs8_privatekeyinfo [64]
                0.00    0.00       1/2004        memcmp [161]
-----------------------------------------------
                0.00    0.00  169010/169010      HAL_SYSTICK_IRQHandler [113]
[112]    0.0    0.00    0.00  169010         HAL_SYSTICK_Callback [112]
                0.00    0.00   80300/80300       RxCallback [114]
-----------------------------------------------
                0.00    0.00  169009/169009      SysTick_Handler [117]
[113]    0.0    0.00    0.00  169009         HAL_SYSTICK_IRQHandler [113]
                0.00    0.00  169010/169010      HAL_SYSTICK_Callback [112]
-----------------------------------------------
                0.00    0.00   80300/80300       HAL_SYSTICK_Callback [112]
[114]    0.0    0.00    0.00   80300         RxCallback [114]
                0.00    0.00    1004/2008        ibuf_put [116]
                0.00    0.00    1004/2008        ibuf_get [115]
                0.00    0.00   80300/80300       hal_slip_process_char [151]
                0.00    0.00    1004/1004        task_next_waiting [172]
                0.00    0.00    1004/1017        task_wake [162]
-----------------------------------------------
                0.00    0.00    1004/2008        RxCallback [114]
                0.00    0.00    1004/2008        dispatch_task [1]
[115]    0.0    0.00    0.00    2008         ibuf_get [115]
                0.00    0.00    2008/11032       hal_critical_section_start [105]
                0.00    0.00    2008/11032       hal_critical_section_end [152]
-----------------------------------------------
                0.00    0.00    1004/2008        RxCallback [114]
                0.00    0.00    1004/2008        dispatch_task [1]
[116]    0.0    0.00    0.00    2008         ibuf_put [116]
                0.00    0.00    2008/11032       hal_critical_section_start [105]
                0.00    0.00    2008/11032       hal_critical_section_end [152]
-----------------------------------------------
                                                 <spontaneous>
[117]    0.0    0.00    0.00                 SysTick_Handler [117]
                0.00    0.00  169009/169009      HAL_SYSTICK_IRQHandler [113]
                0.00    0.00  169009/169009      HAL_IncTick [150]
-----------------------------------------------
                                                 <spontaneous>
[118]    0.0    0.00    0.00                 cli_loop [118]
                0.00    0.00       1/1           cli_run_command [119]
                0.00    0.00      15/17          uart_cli_write [128]
                0.00    0.00       1/1           show_prompt [140]
                0.00    0.00       1/1868797     memset [18]
                0.00    0.00      13/13          uart_cli_read [142]
                0.00    0.00       1/1           cli_add_history [194]
-----------------------------------------------
                0.00    0.00       1/1           cli_loop [118]
[119]    0.0    0.00    0.00       1         cli_run_command [119]
                0.00    0.00       1/1           cli_find_command [121]
                0.00    0.00       1/1           cli_parse_line [123]
                0.00    0.00       1/1868797     memset [18]
-----------------------------------------------
                0.00    0.00       1/1           cli_find_command [121]
[120]    0.0    0.00    0.00       1         cli_command_name [120]
                0.00    0.00       2/55272       memcpy [39]
                0.00    0.00       1/2007        memmove [73]
                0.00    0.00       1/1868797     memset [18]
-----------------------------------------------
                                   1             cli_find_command [121]
                0.00    0.00       1/1           cli_run_command [119]
[121]    0.0    0.00    0.00       1+1       cli_find_command [121]
                0.00    0.00       1/1           cli_command_name [120]
                0.00    0.00       1/1           cmd_profile_stop [195]
                                   1             cli_find_command [121]
-----------------------------------------------
                0.00    0.00       1/1           hal_ks_rewrite_der [96]
[122]    0.0    0.00    0.00       1         hal_ks_block_update [122]
                0.00    0.00       1/2           ks_volatile_write [124]
                0.00    0.00       1/1           hal_ks_index_replace [136]
                0.00    0.00       1/2           ks_volatile_zero [139]
                0.00    0.00       1/3           ks_volatile_erase [137]
                0.00    0.00       1/2           hal_ks_cache_release [192]
                0.00    0.00       1/1           ks_volatile_deprecate [201]
                0.00    0.00       1/1           ks_volatile_copy_owner [200]
                0.00    0.00       1/1005        hal_ks_cache_mark_used [166]
-----------------------------------------------
                0.00    0.00       1/1           cli_run_command [119]
[123]    0.0    0.00    0.00       1         cli_parse_line [123]
                0.00    0.00       2/55272       memcpy [39]
                0.00    0.00       1/1868797     memset [18]
-----------------------------------------------
                0.00    0.00       1/2           hal_ks_block_update [122]
                0.00    0.00       1/2           hal_ks_store [97]
[124]    0.0    0.00    0.00       2         ks_volatile_write [124]
                0.00    0.00       2/55272       memcpy [39]
-----------------------------------------------
                0.00    0.00       1/1           pkey_delete [126]
[125]    0.0    0.00    0.00       1         hal_rpc_pkey_delete [125]
                0.00    0.00       1/1           pkey_local_delete [127]
-----------------------------------------------
                0.00    0.00       1/1           hal_rpc_server_dispatch [2]
[126]    0.0    0.00    0.00       1         pkey_delete [126]
                0.00    0.00       1/1           hal_rpc_pkey_delete [125]
                0.00    0.00       1/6013        hal_xdr_decode_int [156]
-----------------------------------------------
                0.00    0.00       1/1           hal_rpc_pkey_delete [125]
[127]    0.0    0.00    0.00       1         pkey_local_delete [127]
                0.00    0.00       1/1           hal_ks_delete [129]
                0.00    0.00       1/1868797     memset [18]
                0.00    0.00       2/11032       hal_critical_section_start [105]
                0.00    0.00       1/2           hal_rpc_is_logged_in [146]
                0.00    0.00       1/1           pkey_local_get_key_type [149]
                0.00    0.00       2/11032       hal_critical_section_end [152]
-----------------------------------------------
                0.00    0.00       2/17          show_prompt [140]
                0.00    0.00      15/17          cli_loop [118]
[128]    0.0    0.00    0.00      17         uart_cli_write [128]
                0.00    0.00      17/275097      uart_send_bytes2 [52]
-----------------------------------------------
                0.00    0.00       1/1           pkey_local_delete [127]
[129]    0.0    0.00    0.00       1         hal_ks_delete [129]
                0.00    0.00       1/1           hal_ks_index_delete [135]
                0.00    0.00       1/2           ks_volatile_zero [139]
                0.00    0.00       1/3           ks_volatile_erase [137]
                0.00    0.00       1/1006        hal_ks_lock [164]
                0.00    0.00       1/1002        ks_volatile_test_owner [176]
                0.00    0.00       1/1006        hal_ks_unlock [165]
                0.00    0.00       1/1002        hal_ks_cache_find_block [173]
                0.00    0.00       1/2           hal_ks_cache_release [192]
-----------------------------------------------
                0.00    0.00    2046/2046        hal_pbkdf2 [45]
[130]    0.0    0.00    0.00    2046         hal_task_yield_maybe [130]
                0.00    0.00    2046/2046        task_yield_maybe [131]
-----------------------------------------------
                0.00    0.00    2046/2046        hal_task_yield_maybe [130]
[131]    0.0    0.00    0.00    2046         task_yield_maybe [131]
                0.00    0.00    2046/8085077     HAL_GetTick [70]
                0.00    0.00      10/5585312     task_yield [30]
-----------------------------------------------
                0.00    0.00       1/1           hal_xdr_encode_variable_opaque [133]
[132]    0.0    0.00    0.00       1         hal_xdr_encode_fixed_opaque [132]
                0.00    0.00       1/55272       memcpy [39]
-----------------------------------------------
                0.00    0.00       1/1           pkey_load [76]
[133]    0.0    0.00    0.00       1         hal_xdr_encode_variable_opaque [133]
                0.00    0.00       1/1           hal_xdr_encode_fixed_opaque [132]
                0.00    0.00       1/4014        hal_xdr_encode_int [157]
-----------------------------------------------
                0.00    0.00       1/1           hal_ks_store [97]
[134]    0.0    0.00    0.00       1         hal_ks_index_add [134]
                0.00    0.00       1/2007        memmove [73]
                0.00    0.00       2/1007        hal_ks_index_fsck [163]
                0.00    0.00       1/1004        ks_find [168]
-----------------------------------------------
                0.00    0.00       1/1           hal_ks_delete [129]
[135]    0.0    0.00    0.00       1         hal_ks_index_delete [135]
                0.00    0.00       1/2007        memmove [73]
                0.00    0.00       2/1007        hal_ks_index_fsck [163]
                0.00    0.00       1/1004        ks_find [168]
-----------------------------------------------
                0.00    0.00       1/1           hal_ks_block_update [122]
[136]    0.0    0.00    0.00       1         hal_ks_index_replace [136]
                0.00    0.00       1/2007        memmove [73]
                0.00    0.00       2/1007        hal_ks_index_fsck [163]
                0.00    0.00       1/1004        ks_find [168]
-----------------------------------------------
                0.00    0.00       1/3           hal_ks_block_update [122]
                0.00    0.00       1/3           hal_ks_store [97]
                0.00    0.00       1/3           hal_ks_delete [129]
[137]    0.0    0.00    0.00       3         ks_volatile_erase [137]
                0.00    0.00       3/1868797     memset [18]
-----------------------------------------------
                                                 <spontaneous>
[138]    0.0    0.00    0.00                 _cleanup_r [138]
                0.00    0.00       3/1868797     memset [18]
-----------------------------------------------
                0.00    0.00       1/2           hal_ks_block_update [122]
                0.00    0.00       1/2           hal_ks_delete [129]
[139]    0.0    0.00    0.00       2         ks_volatile_zero [139]
                0.00    0.00       2/1868797     memset [18]
-----------------------------------------------
                0.00    0.00       1/1           cli_loop [118]
[140]    0.0    0.00    0.00       1         show_prompt [140]
                0.00    0.00       2/17          uart_cli_write [128]
-----------------------------------------------
                                                 <spontaneous>
[141]    0.0    0.00    0.00                 _mcleanup [141]
                0.00    0.00       1/1868797     memset [18]
-----------------------------------------------
                0.00    0.00      13/13          cli_loop [118]
[142]    0.0    0.00    0.00      13         uart_cli_read [142]
                0.00    0.00       1/1005        task_sleep [109]
-----------------------------------------------
                0.00    0.00       1/1           logout [145]
[143]    0.0    0.00    0.00       1         hal_rpc_logout [143]
                0.00    0.00       1/1           logout [144]
-----------------------------------------------
                0.00    0.00       1/1           hal_rpc_logout [143]
[144]    0.0    0.00    0.00       1         logout [144]
                0.00    0.00       2/11032       hal_critical_section_start [105]
                0.00    0.00       1/1           hal_pkey_logout [148]
                0.00    0.00       2/11032       hal_critical_section_end [152]
-----------------------------------------------
                0.00    0.00       1/1           hal_rpc_server_dispatch [2]
[145]    0.0    0.00    0.00       1         logout [145]
                0.00    0.00       1/1           hal_rpc_logout [143]
                0.00    0.00       1/6013        hal_xdr_decode_int [156]
-----------------------------------------------
                0.00    0.00       1/2           pkey_local_delete [127]
                0.00    0.00       1/2           pkey_local_load [78]
[146]    0.0    0.00    0.00       2         hal_rpc_is_logged_in [146]
                0.00    0.00       2/2           is_logged_in [147]
-----------------------------------------------
                0.00    0.00       2/2           hal_rpc_is_logged_in [146]
[147]    0.0    0.00    0.00       2         is_logged_in [147]
                0.00    0.00       2/11032       hal_critical_section_start [105]
                0.00    0.00       2/11032       hal_critical_section_end [152]
-----------------------------------------------
                0.00    0.00       1/1           logout [144]
[148]    0.0    0.00    0.00       1         hal_pkey_logout [148]
                0.00    0.00       1/11032       hal_critical_section_start [105]
                0.00    0.00       2/2           hal_ks_logout [193]
                0.00    0.00       1/11032       hal_critical_section_end [152]
-----------------------------------------------
                0.00    0.00       1/1           pkey_local_delete [127]
[149]    0.0    0.00    0.00       1         pkey_local_get_key_type [149]
                0.00    0.00       1/11032       hal_critical_section_start [105]
                0.00    0.00       1/11032       hal_critical_section_end [152]
-----------------------------------------------
                0.00    0.00  169009/169009      SysTick_Handler [117]
[150]    0.0    0.00    0.00  169009         HAL_IncTick [150]
-----------------------------------------------
                0.00    0.00   80300/80300       RxCallback [114]
[151]    0.0    0.00    0.00   80300         hal_slip_process_char [151]
-----------------------------------------------
                0.00    0.00       1/11032       login [43]
                0.00    0.00       1/11032       pkey_local_get_key_type [149]
                0.00    0.00       1/11032       pkey_local_load [78]
                0.00    0.00       1/11032       hal_pkey_logout [148]
                0.00    0.00       2/11032       is_logged_in [147]
                0.00    0.00       2/11032       logout [144]
                0.00    0.00       2/11032       pkey_local_delete [127]
                0.00    0.00    1000/11032       pkey_local_sign [4]
                0.00    0.00    2008/11032       ibuf_put [116]
                0.00    0.00    2008/11032       ibuf_get [115]
                0.00    0.00    3003/11032       hal_core_alloc_no_wait [71]
                0.00    0.00    3003/11032       hal_core_free [101]
[152]    0.0    0.00    0.00   11032         hal_critical_section_end [152]
-----------------------------------------------
                0.00    0.00    8006/8006        hal_core_alloc_no_wait [71]
[153]    0.0    0.00    0.00    8006         hal_core_find [153]
                0.00    0.00    8006/8006        hal_core_iterate [154]
-----------------------------------------------
                0.00    0.00    8006/8006        hal_core_find [153]
[154]    0.0    0.00    0.00    8006         hal_core_iterate [154]
-----------------------------------------------
                0.00    0.00    1004/7017        hal_rpc_server_dispatch [2]
                0.00    0.00    6013/7017        hal_xdr_decode_int [156]
[155]    0.0    0.00    0.00    7017         hal_xdr_decode_int_peek [155]
-----------------------------------------------
                0.00    0.00       1/6013        pkey_delete [126]
                0.00    0.00       1/6013        logout [145]
                0.00    0.00       2/6013        login [44]
                0.00    0.00       3/6013        pkey_load [76]
                0.00    0.00    1002/6013        hal_xdr_decode_variable_opaque_ptr [175]
                0.00    0.00    1004/6013        hal_rpc_server_dispatch [2]
                0.00    0.00    4000/6013        pkey_sign [5]
[156]    0.0    0.00    0.00    6013         hal_xdr_decode_int [156]
                0.00    0.00    6013/7017        hal_xdr_decode_int_peek [155]
-----------------------------------------------
                0.00    0.00       1/4014        hal_xdr_encode_variable_opaque [133]
                0.00    0.00       1/4014        pkey_load [76]
                0.00    0.00    1000/4014        pkey_sign [5]
                0.00    0.00    3012/4014        hal_rpc_server_dispatch [2]
[157]    0.0    0.00    0.00    4014         hal_xdr_encode_int [157]
-----------------------------------------------
                0.00    0.00      31/3031        hal_asn1_encode_integer [93]
                0.00    0.00    3000/3031        rsa_crt [9]
[158]    0.0    0.00    0.00    3031         fp_cmp_d [158]
-----------------------------------------------
                0.00    0.00    1000/2006        hal_rsa_bf_lock [179]
                0.00    0.00    1006/2006        hal_ks_lock [164]
[159]    0.0    0.00    0.00    2006         task_mutex_lock [159]
-----------------------------------------------
                0.00    0.00    1000/2006        hal_rsa_bf_unlock [180]
                0.00    0.00    1006/2006        hal_ks_unlock [165]
[160]    0.0    0.00    0.00    2006         task_mutex_unlock [160]
-----------------------------------------------
                0.00    0.00       1/2004        hal_asn1_guess_key_type [111]
                0.00    0.00    1000/2004        hal_rsa_private_key_from_der [35]
                0.00    0.00    1003/2004        ks_find [168]
[161]    0.0    0.00    0.00    2004         memcmp [161]
-----------------------------------------------
                0.00    0.00      13/1017        HAL_UART1_RxCpltCallback [190]
                0.00    0.00    1004/1017        RxCallback [114]
[162]    0.0    0.00    0.00    1017         task_wake [162]
-----------------------------------------------
                0.00    0.00       2/1007        hal_ks_index_add [134]
                0.00    0.00       2/1007        hal_ks_index_delete [135]
                0.00    0.00       2/1007        hal_ks_index_replace [136]
                0.00    0.00    1001/1007        hal_ks_index_find [178]
[163]    0.0    0.00    0.00    1007         hal_ks_index_fsck [163]
-----------------------------------------------
                0.00    0.00       1/1006        hal_ks_store [97]
                0.00    0.00       1/1006        hal_ks_delete [129]
                0.00    0.00       1/1006        hal_ks_rewrite_der [96]
                0.00    0.00       1/1006        hal_get_pin [196]
                0.00    0.00       2/1006        hal_ks_logout [193]
                0.00    0.00    1000/1006        hal_ks_fetch [19]
[164]    0.0    0.00    0.00    1006         hal_ks_lock [164]
                0.00    0.00    1006/2006        task_mutex_lock [159]
-----------------------------------------------
                0.00    0.00       1/1006        hal_ks_store [97]
                0.00    0.00       1/1006        hal_ks_delete [129]
                0.00    0.00       1/1006        hal_ks_rewrite_der [96]
                0.00    0.00       1/1006        hal_get_pin [196]
                0.00    0.00       2/1006        hal_ks_logout [193]
                0.00    0.00    1000/1006        hal_ks_fetch [19]
[165]    0.0    0.00    0.00    1006         hal_ks_unlock [165]
                0.00    0.00    1006/2006        task_mutex_unlock [160]
-----------------------------------------------
                0.00    0.00       1/1005        hal_ks_block_update [122]
                0.00    0.00       1/1005        hal_ks_store [97]
                0.00    0.00       1/1005        hal_ks_rewrite_der [96]
                0.00    0.00       2/1005        hal_ks_cache_release [192]
                0.00    0.00    1000/1005        hal_ks_fetch [19]
[166]    0.0    0.00    0.00    1005         hal_ks_cache_mark_used [166]
-----------------------------------------------
                0.00    0.00       2/1004        hal_aes_keywrap [90]
                0.00    0.00    1002/1004        do_keywrap_core [22]
[167]    0.0    0.00    0.00    1004         hal_aes_keywrap_ciphertext_length [167]
-----------------------------------------------
                0.00    0.00       1/1004        hal_ks_index_add [134]
                0.00    0.00       1/1004        hal_ks_index_delete [135]
                0.00    0.00       1/1004        hal_ks_index_replace [136]
                0.00    0.00    1001/1004        hal_ks_index_find [178]
[168]    0.0    0.00    0.00    1004         ks_find [168]
                0.00    0.00    1003/2004        memcmp [161]
-----------------------------------------------
                0.00    0.00    1004/1004        task_next_waiting [172]
[169]    0.0    0.00    0.00    1004         task_get_func [169]
-----------------------------------------------
                0.00    0.00    1004/1004        task_next_waiting [172]
[170]    0.0    0.00    0.00    1004         task_get_state [170]
-----------------------------------------------
                0.00    0.00    1004/1004        task_next_waiting [172]
[171]    0.0    0.00    0.00    1004         task_iterate [171]
-----------------------------------------------
                0.00    0.00    1004/1004        RxCallback [114]
[172]    0.0    0.00    0.00    1004         task_next_waiting [172]
                0.00    0.00    1004/1004        task_iterate [171]
                0.00    0.00    1004/1004        task_get_func [169]
                0.00    0.00    1004/1004        task_get_state [170]
-----------------------------------------------
                0.00    0.00       1/1002        hal_ks_delete [129]
                0.00    0.00    1001/1002        hal_ks_block_read_cached [177]
[173]    0.0    0.00    0.00    1002         hal_ks_cache_find_block [173]
-----------------------------------------------
                0.00    0.00    1002/1002        hal_xdr_decode_variable_opaque_ptr [175]
[174]    0.0    0.00    0.00    1002         hal_xdr_decode_fixed_opaque_ptr [174]
-----------------------------------------------
                0.00    0.00       1/1002        pkey_load [76]
                0.00    0.00       1/1002        login [44]
                0.00    0.00    1000/1002        pkey_sign [5]
[175]    0.0    0.00    0.00    1002         hal_xdr_decode_variable_opaque_ptr [175]
                0.00    0.00    1002/6013        hal_xdr_decode_int [156]
                0.00    0.00    1002/1002        hal_xdr_decode_fixed_opaque_ptr [174]
-----------------------------------------------
                0.00    0.00       1/1002        hal_ks_delete [129]
                0.00    0.00       1/1002        hal_ks_rewrite_der [96]
                0.00    0.00    1000/1002        hal_ks_fetch [19]
[176]    0.0    0.00    0.00    1002         ks_volatile_test_owner [176]
-----------------------------------------------
                0.00    0.00       1/1001        hal_ks_rewrite_der [96]
                0.00    0.00    1000/1001        hal_ks_fetch [19]
[177]    0.0    0.00    0.00    1001         hal_ks_block_read_cached [177]
                0.00    0.00    1001/1002        hal_ks_cache_find_block [173]
-----------------------------------------------
                0.00    0.00       1/1001        hal_ks_rewrite_der [96]
                0.00    0.00    1000/1001        hal_ks_fetch [19]
[178]    0.0    0.00    0.00    1001         hal_ks_index_find [178]
                0.00    0.00    1001/1007        hal_ks_index_fsck [163]
                0.00    0.00    1001/1004        ks_find [168]
-----------------------------------------------
                0.00    0.00    1000/1000        create_blinding_factors [26]
[179]    0.0    0.00    0.00    1000         hal_rsa_bf_lock [179]
                0.00    0.00    1000/2006        task_mutex_lock [159]
-----------------------------------------------
                0.00    0.00    1000/1000        create_blinding_factors [26]
[180]    0.0    0.00    0.00    1000         hal_rsa_bf_unlock [180]
                0.00    0.00    1000/2006        task_mutex_unlock [160]
-----------------------------------------------
                0.00    0.00    1000/1000        pkey_local_sign_rsa [7]
[181]    0.0    0.00    0.00    1000         hal_rsa_key_needs_saving [181]
-----------------------------------------------
                0.00    0.00      13/170         DMA2_Stream2_IRQHandler [209]
                0.00    0.00     157/170         DMA1_Stream5_IRQHandler [208]
[182]    0.0    0.00    0.00     170         HAL_DMA_IRQHandler [182]
                0.00    0.00      91/91          UART_DMAReceiveCplt [184]
                0.00    0.00      79/79          UART_DMARxHalfCplt [187]
-----------------------------------------------
                0.00    0.00      91/91          UART_DMAReceiveCplt [184]
[183]    0.0    0.00    0.00      91         HAL_UART_RxCpltCallback [183]
                0.00    0.00      78/78          HAL_UART2_RxCpltCallback [188]
                0.00    0.00      13/13          HAL_UART1_RxCpltCallback [190]
-----------------------------------------------
                0.00    0.00      91/91          HAL_DMA_IRQHandler [182]
[184]    0.0    0.00    0.00      91         UART_DMAReceiveCplt [184]
                0.00    0.00      91/91          HAL_UART_RxCpltCallback [183]
-----------------------------------------------
                0.00    0.00      79/79          HAL_UART_RxHalfCpltCallback [186]
[185]    0.0    0.00    0.00      79         HAL_UART2_RxHalfCpltCallback [185]
-----------------------------------------------
                0.00    0.00      79/79          UART_DMARxHalfCplt [187]
[186]    0.0    0.00    0.00      79         HAL_UART_RxHalfCpltCallback [186]
                0.00    0.00      79/79          HAL_UART2_RxHalfCpltCallback [185]
-----------------------------------------------
                0.00    0.00      79/79          HAL_DMA_IRQHandler [182]
[187]    0.0    0.00    0.00      79         UART_DMARxHalfCplt [187]
                0.00    0.00      79/79          HAL_UART_RxHalfCpltCallback [186]
-----------------------------------------------
                0.00    0.00      78/78          HAL_UART_RxCpltCallback [183]
[188]    0.0    0.00    0.00      78         HAL_UART2_RxCpltCallback [188]
-----------------------------------------------
                0.00    0.00      15/66          hal_rsa_private_key_to_der_internal [92]
                0.00    0.00      20/66          hal_asn1_encode_pkcs8_privatekeyinfo [103]
                0.00    0.00      31/66          hal_asn1_encode_integer [93]
[189]    0.0    0.00    0.00      66         hal_asn1_encode_header [189]
-----------------------------------------------
                0.00    0.00      13/13          HAL_UART_RxCpltCallback [183]
[190]    0.0    0.00    0.00      13         HAL_UART1_RxCpltCallback [190]
                0.00    0.00      13/1017        task_wake [162]
-----------------------------------------------
                0.00    0.00       2/2           task_yield [30]
[191]    0.0    0.00    0.00       2         check_stack [191]
-----------------------------------------------
                0.00    0.00       1/2           hal_ks_block_update [122]
                0.00    0.00       1/2           hal_ks_delete [129]
[192]    0.0    0.00    0.00       2         hal_ks_cache_release [192]
                0.00    0.00       2/1005        hal_ks_cache_mark_used [166]
-----------------------------------------------
                0.00    0.00       2/2           hal_pkey_logout [148]
[193]    0.0    0.00    0.00       2         hal_ks_logout [193]
                0.00    0.00       2/1006        hal_ks_lock [164]
                0.00    0.00       2/1006        hal_ks_unlock [165]
                0.00    0.00       1/1           ks_token_logout [199]
                0.00    0.00       1/1           ks_volatile_logout [202]
-----------------------------------------------
                0.00    0.00       1/1           cli_loop [118]
[194]    0.0    0.00    0.00       1         cli_add_history [194]
-----------------------------------------------
                0.00    0.00       1/1           cli_find_command [121]
[195]    0.0    0.00    0.00       1         cmd_profile_stop [195]
-----------------------------------------------
                0.00    0.00       1/1           login [43]
[196]    0.0    0.00    0.00       1         hal_get_pin [196]
                0.00    0.00       1/1006        hal_ks_lock [164]
                0.00    0.00       1/1006        hal_ks_unlock [165]
-----------------------------------------------
                0.00    0.00       1/1           hal_ks_rewrite_der [96]
[197]    0.0    0.00    0.00       1         hal_ks_attribute_scan [197]
-----------------------------------------------
                0.00    0.00       1/1           hal_ks_store [97]
[198]    0.0    0.00    0.00       1         hal_ks_cache_pick_lru [198]
-----------------------------------------------
                0.00    0.00       1/1           hal_ks_logout [193]
[199]    0.0    0.00    0.00       1         ks_token_logout [199]
-----------------------------------------------
                0.00    0.00       1/1           hal_ks_block_update [122]
[200]    0.0    0.00    0.00       1         ks_volatile_copy_owner [200]
-----------------------------------------------
                0.00    0.00       1/1           hal_ks_block_update [122]
[201]    0.0    0.00    0.00       1         ks_volatile_deprecate [201]
-----------------------------------------------
                0.00    0.00       1/1           hal_ks_logout [193]
[202]    0.0    0.00    0.00       1         ks_volatile_logout [202]
-----------------------------------------------
                0.00    0.00       1/1           hal_ks_store [97]
[203]    0.0    0.00    0.00       1         ks_volatile_set_owner [203]
-----------------------------------------------

 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

 [182] HAL_DMA_IRQHandler    [189] hal_asn1_encode_header [28] hal_task_yield
  [38] HAL_GPIO_ReadPin       [93] hal_asn1_encode_integer [130] hal_task_yield_maybe
  [70] HAL_GetTick           [103] hal_asn1_encode_pkcs8_privatekeyinfo [86] hal_uuid_gen
 [150] HAL_IncTick           [111] hal_asn1_guess_key_type [174] hal_xdr_decode_fixed_opaque_ptr
 [112] HAL_SYSTICK_Callback   [87] hal_core_alloc        [156] hal_xdr_decode_int
 [113] HAL_SYSTICK_IRQHandler [74] hal_core_alloc2       [155] hal_xdr_decode_int_peek
 [190] HAL_UART1_RxCpltCallback [71] hal_core_alloc_no_wait (core.c) [175] hal_xdr_decode_variable_opaque_ptr
 [188] HAL_UART2_RxCpltCallback [153] hal_core_find      [132] hal_xdr_encode_fixed_opaque
 [185] HAL_UART2_RxHalfCpltCallback [101] hal_core_free  [157] hal_xdr_encode_int
  [75] HAL_UART_GetState     [154] hal_core_iterate      [133] hal_xdr_encode_variable_opaque
 [183] HAL_UART_RxCpltCallback [152] hal_critical_section_end [54] hash_write_block (hash.c)
 [186] HAL_UART_RxHalfCpltCallback [105] hal_critical_section_start [115] ibuf_get (hsm.c)
  [58] HAL_UART_Transmit     [196] hal_get_pin           [116] ibuf_put (hsm.c)
 [114] RxCallback (hsm.c)     [84] hal_get_random        [147] is_logged_in (rpc_misc.c)
 [184] UART_DMAReceiveCplt (stm32f4xx_hal_uart.c) [62] hal_hash_finalize [168] ks_find (ks_index.c)
 [187] UART_DMARxHalfCplt (stm32f4xx_hal_uart.c) [88] hal_hash_initialize [199] ks_token_logout (ks_token.c)
  [65] UART_WaitOnFlagUntilTimeout (stm32f4xx_hal_uart.c) [56] hal_hash_update [200] ks_volatile_copy_owner (ks_volatile.c)
  [80] __aeabi_uldivmod       [53] hal_hmac_finalize     [201] ks_volatile_deprecate (ks_volatile.c)
  [10] __gnu_mcount_nc        [66] hal_hmac_initialize   [137] ks_volatile_erase (ks_volatile.c)
  [67] __udivmoddi4           [68] hal_hmac_update       [202] ks_volatile_logout (ks_volatile.c)
   [6] _mcount_internal       [17] hal_io_read           [203] ks_volatile_set_owner (ks_volatile.c)
 [191] check_stack (task.c)   [21] hal_io_wait           [176] ks_volatile_test_owner (ks_volatile.c)
 [194] cli_add_history (libcli.c) [11] hal_io_wait2      [124] ks_volatile_write (ks_volatile.c)
 [120] cli_command_name       [59] hal_io_write          [139] ks_volatile_zero (ks_volatile.c)
 [121] cli_find_command (libcli.c) [197] hal_ks_attribute_scan [104] load_kek (aes_keywrap.c)
 [123] cli_parse_line (libcli.c) [177] hal_ks_block_read_cached [43] login (rpc_misc.c)
 [119] cli_run_command       [122] hal_ks_block_update    [44] login (rpc_server.c)
 [195] cmd_profile_stop (mgmt-misc.c) [173] hal_ks_cache_find_block [144] logout (rpc_misc.c)
  [89] construct_key_block (ks.c) [166] hal_ks_cache_mark_used [145] logout (rpc_server.c)
  [26] create_blinding_factors (rsa.c) [198] hal_ks_cache_pick_lru [161] memcmp
 [100] default_idle_hook (task.c) [192] hal_ks_cache_release [39] memcpy
   [1] dispatch_task (hsm.c) [129] hal_ks_delete          [73] memmove
  [46] do_hmac (pbkdf2.c)     [19] hal_ks_fetch           [18] memset
  [22] do_keywrap_core (aes_keywrap.c) [134] hal_ks_index_add [12] modexp2 (rsa.c)
 [107] extract_component (rsa.c) [135] hal_ks_index_delete [31] next_task (task.c)
 [110] fp_add                [178] hal_ks_index_find      [81] pkcs1_5_pad (rpc_pkey.c)
 [106] fp_cmp                [163] hal_ks_index_fsck     [126] pkey_delete (rpc_server.c)
 [158] fp_cmp_d              [136] hal_ks_index_replace   [76] pkey_load (rpc_server.c)
  [57] fp_cmp_mag            [164] hal_ks_lock           [127] pkey_local_delete (rpc_pkey.c)
  [98] fp_count_bits         [193] hal_ks_logout         [149] pkey_local_get_key_type (rpc_pkey.c)
  [14] fp_div                 [96] hal_ks_rewrite_der     [78] pkey_local_load (rpc_pkey.c)
  [25] fp_div_2d              [97] hal_ks_store            [4] pkey_local_sign (rpc_pkey.c)
  [37] fp_lshd               [165] hal_ks_unlock           [7] pkey_local_sign_rsa (rpc_pkey.c)
  [13] fp_mod                 [16] hal_modexp2             [5] pkey_sign (rpc_server.c)
  [40] fp_mul                 [45] hal_pbkdf2              [9] rsa_crt (rsa.c)
  [34] fp_mul_2d             [148] hal_pkey_logout       [102] s_fp_add
  [69] fp_mul_comba32         [85] hal_rpc_get_random     [29] s_fp_sub
  [41] fp_mul_comba64        [146] hal_rpc_is_logged_in  [140] show_prompt (libcli.c)
  [33] fp_mul_d               [42] hal_rpc_login          [55] sw_hash_core_sha256 (hash.c)
  [15] fp_mulmod             [143] hal_rpc_logout         [95] swytebop (hash.c)
  [32] fp_read_unsigned_bin  [125] hal_rpc_pkey_delete   [169] task_get_func
  [79] fp_reverse             [77] hal_rpc_pkey_load     [170] task_get_state
  [82] fp_rshd                 [3] hal_rpc_pkey_sign     [171] task_iterate
  [60] fp_sqr                 [47] hal_rpc_sendto        [159] task_mutex_lock
  [61] fp_sqr_comba64          [2] hal_rpc_server_dispatch [160] task_mutex_unlock
  [27] fp_sqrmod             [179] hal_rsa_bf_lock       [172] task_next_waiting (hsm.c)
  [63] fp_sub                [180] hal_rsa_bf_unlock     [109] task_sleep
  [24] fp_to_unsigned_bin      [8] hal_rsa_decrypt       [162] task_wake
  [99] fp_unsigned_bin_size  [108] hal_rsa_key_get_modulus [30] task_yield
  [72] get_buffer (modexp.c) [181] hal_rsa_key_needs_saving [131] task_yield_maybe
  [83] get_random (rpc_misc.c) [35] hal_rsa_private_key_from_der [142] uart_cli_read (mgmt-cli.c)
  [20] hal_aes_keyunwrap      [91] hal_rsa_private_key_to_der_extra [128] uart_cli_write (mgmt-cli.c)
  [90] hal_aes_keywrap        [92] hal_rsa_private_key_to_der_internal [52] uart_send_bytes2
 [167] hal_aes_keywrap_ciphertext_length [50] hal_serial_send_char [51] uart_send_char2
  [94] hal_asn1_decode_header [151] hal_slip_process_char [23] unpack_fp (rsa.c)
  [36] hal_asn1_decode_integer [48] hal_slip_send
  [64] hal_asn1_decode_pkcs8_privatekeyinfo [49] hal_slip_send_char


More information about the Core mailing list