Re: [Intel-gfx] [PATCH igt 1/2] lib: Add hooks for enabling ftrace

2017-08-08 Thread Chris Wilson
Quoting Petri Latvala (2017-08-08 13:54:46) > On Tue, Aug 08, 2017 at 12:27:11PM +0100, Chris Wilson wrote: > > *snip* > > > +#define BIT(x) (1ul << (x)) > > + > > +/* Only a single tracer in the kernel, so we can use a singleton */ > > +struct igt_ftrace { > > + int dir; > > + > > +

Re: [Intel-gfx] [PATCH igt 1/2] lib: Add hooks for enabling ftrace

2017-08-08 Thread Petri Latvala
On Tue, Aug 08, 2017 at 12:27:11PM +0100, Chris Wilson wrote: *snip* > +#define BIT(x) (1ul << (x)) > + > +/* Only a single tracer in the kernel, so we can use a singleton */ > +struct igt_ftrace { > + int dir; > + > + unsigned long flags; > +#define PID_SET BIT(0) > +#define INCLUDE_SET

[Intel-gfx] [PATCH igt 1/2] lib: Add hooks for enabling ftrace

2017-08-08 Thread Chris Wilson
If the kernel has tracing support builtin, we can enable around troublesome tests to obtain greater detail from the kernel that may prove invaluable in debugging the problem. Signed-off-by: Chris Wilson --- lib/Makefile.sources | 2 + lib/igt_core.c | 5 ++