Likewise, given Yt = ZtF(Kt,Lt,Et,Mt), TFP is Yt/F(Kt,Lt,Et,Mt)
The Solow residual is a measure of TFP. TFP presumably changes over time. There is disagreement in the literature over the question of whether the Solow residual measures technology shocks. Efforts to change the inputs, like Kt, to adjust for utilization rate and so forth, have the effect of changing the Solow residual and thus the measure of TFP. But the idea of TFP is well defined for each model of this kind.
TFP is not necessarily a measure of technology since the TFP could be a function of other things like military spending, or monetary shocks, or the political party in power.
"Growth in total-factor productivty (TFP) represents output growth not accounted for by the growth in inputs." -- Hornstein and Krusell (1996).
Disease, crime, and computer viruses have small negative effects on TFP using almost any measure of K and L, although with absolutely perfects measures of K and L they might disappear.
Reason: crime, disease, and computer viruses make people AT WORK less productive.