Prime Minister Narendra Modi and his Canadian counterpart Justin Trudeau today held extensive talks on key issues of counter-terrorism and extremism as well as ways to boost trade ties, after which the two sides inked six pacts, including on energy cooperation.