An inquest will examine how and why six people were stabbed to death during a brutal knife rampage at a shopping centre involving a mentally ill man.