# Re: \[PATCH v3 2/2\] rust: add tracepoint support

- From: Alice Ryhl \<aliceryhl@google.com\>
- Date: 2024-06-28 15:00:57 
- List: linux-trace-kernel
- Page: https://ratatoskr.run/linux-trace-kernel/2024/06/2657252
- Thread: https://ratatoskr.run/linux-trace-kernel/2024/06/2648134/t.md

```text
On Wed, Jun 26, 2024 at 8:43 PM Steven Rostedt [ref] wrote:
>
> On Wed, 26 Jun 2024 10:48:23 +0200
> Alice Ryhl [ref] wrote:
>
> > >
> > > Because your hooks/rust_binder.h and events/rust_binder.h use the same
> > > TRACE_SYSTEM name? Could you try something like:
> > >
> > >         #define TRACE_SYSTEM rust_binder_hook
> > >
> > > in your hooks/rust_binder.h?
> >
> > I was able to get it to work by moving the includes into two different
> > .c files. I don't think changing TRACE_SYSTEM works because it must
> > match the filename.
>
> Try to use:
>
>  #define TRACE_SYSTEM_VAR rust_binder_hook_other_name
>
> in one. Then that is used as the variable for that file.

Thanks. I also made a change to restore the value of
DEFINE_RUST_DO_TRACE after define_trace.h

Alice
```
