Original: In Spain, these ornaments were called "diferenzias", and can be traced back to the early 16th century, when the first books with music for the guitar were produced.
Simplified: In Spain, these ornaments were called "diferenzias". They were used as  early as the 16th century, when the first books with music for the guitar were produced.