the top histogram is one from a camera in high bit depth mode (12, 14, 16 bits). That always shows a finer graph than a camera in 8 bit mode (which is the style of the bottom histogram).
Also, your camera running in high bit depth mode is producing data that has missing values - that is some brightness values are being used and others are not (over and above the fact that a camera with a 12 bit sensor will only give values of 0, 16, 32, 48, 64, etc when using 16 bit output). This causes the white painted nature of the histogram and also all the individual spikes in the red/green/blue data that you can see behind the white.
The usual caus of this sort of problem is using some of the image processing controls of the camera - typically one or more of contrast, gamma, white balance red/green/blue. If you set these controls back to their default values then your histogram should return to normal.
in that case the white fill in the foreground is either being caused by gaps in the histogram of the image you are loading *or* from the gamma/gain control settings in the camera controls. You also have set the test camera to use 16 bit data (RAW16), so you could set that back to RAW8 or RGB32 if you wanted.