Messages in this thread | | | Date | Fri, 20 Aug 2021 10:08:56 -0400 | From | Steven Rostedt <> | Subject | Re: [PATCH v8 4/5] selftests/ftrace: Add selftest for testing eprobe events |
| |
On Fri, 20 Aug 2021 09:46:39 +0900 Masami Hiramatsu <mhiramat@kernel.org> wrote:
> > + > > +echo "$SYNTH u64 filename; s64 ret;" > synthetic_events > > +echo "hist:keys=common_pid:__arg__1=$FIELD" > events/$SYSTEM/$START/trigger > > +echo "hist:keys=common_pid:filename=\$__arg__1,ret=ret:onmatch($SYSTEM.$START).trace($SYNTH,\$filename,\$ret)" > events/$SYSTEM/$END/trigger > > Hmm, can you make this more simple one without synthetic events? > Since synthetic event depends on CONFIG_SYNTH_EVENTS, you need to add > "synth_events" to 'requires' tag. > However, this means that this testcase doesn't run when CONFIG_SYNTH_EVENTS=n > but CONFIG_*PROBE_EVENTS=y.
Sure. I just used this because it was one of the main purposes I was using it for. I may keep this as a test, but will rename it as something else, and make a more simple one for just testing the event probe add and removal.
-- Steve
| |