Messages in this thread | | | Date | Wed, 16 Sep 2020 19:38:45 +0200 | From | Greg Kroah-Hartman <> | Subject | Re: [PATCH v9 3/3] binder: add transaction latency tracer |
| |
On Tue, Sep 08, 2020 at 10:06:48PM +0800, Frankie Chang wrote: > +#if IS_ENABLED(CONFIG_BINDER_TRANSACTION_LATENCY_TRACKING) > +#include <linux/rtc.h> > +#include <linux/time.h> > +#endif > + > struct binder_context { > struct binder_node *binder_context_mgr_node; > struct mutex context_mgr_node_lock; > @@ -524,6 +529,14 @@ struct binder_transaction { > * during thread teardown > */ > spinlock_t lock; > + /** > + * @ts and @real_ts are used to record the time > + * that the binder transaction startup > + */ > +#if IS_ENABLED(CONFIG_BINDER_TRANSACTION_LATENCY_TRACKING) > + struct timespec64 ts; > + struct timespec64 real_ts;
Why isn't this ktime_t? Is timespec64 really something to be using still?
thanks,
greg k-h
| |