numam-spdk/lib/trace
Jim Harris 8f8a56af64 trace: fix calculation of histories_size
The last lcore_offsets value already marks the total
size of the histories file - we don't need to also
add sizeof(struct spdk_trace_flags).

Note that this only affected the amount of memory that
was mmap'ed.  It did not result in any observable
failure.

Fixes issue #997.

Reported-by: tinnfu (GitHub submitter)
Signed-off-by: Jim Harris <james.r.harris@intel.com>
Change-Id: I70fef16241cf00228bc515678cca1721f440c925

Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/473049
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: tinnfu <tinnfu@gmail.com>
2019-11-06 15:19:48 +00:00
..
Makefile lib: move trace_rpc into lib/trace 2019-08-19 06:10:30 +00:00
trace_flags.c log: remove old-style errlog entries. 2019-09-26 16:15:11 +00:00
trace_rpc.c rpc: Rename get_tpoint_group_mask trace_get_tpoint_group_mask 2019-10-01 13:59:37 +00:00
trace.c trace: fix calculation of histories_size 2019-11-06 15:19:48 +00:00