Direct discrimination on the grounds of race or ethnicity is unlawful. This is a principle of international law and is contained in the Charter of Fundamental Rights of the EU.
Where police powers are exercised in relation to individuals and the only or main reason for this is their race or ethnicity, profiling is discriminatory.