Let $(M, g)$ be a $2$ dimensional Riemannian manifold.
Then we consider the Riemannian metric on TM described here.
Assume that $X:M\to TM$ is a vector field. For every $p\in M, \quad DX_p(T_pM)$ is a 2 dimensional subspace of the tangent space of $TM$ at point $(p,X(p))$. We define the function $q:M \to \mathbb{R}$ with $$q(p)=\kappa(DX_p(T_pM))$$ where $\kappa $ is the sectional curvature.
To what extend does the function $q$ and its integral $\int_M q\; d\Omega_g$ have some information about the dynamics of $X$? Under what kind of perturbations of $X$, this integral is stable(unchanged)?