Masochism
Sexual masochism sexual activity using suffering as a path to enjoyment.
The term was coined from the name of Count Sacher Masoch and his novel, Venus in Fur.
Masochism is linked to sadism, sadomasochism in, and more generally to all activities that could cause suffering: torture (self) mutilation, sexual perversions, etc.