All of lore.kernel.org
 help / color / mirror / Atom feed
* [Adeos-main] [PATCH] reset trace when setting new trigger
@ 2007-11-11 17:33 Jan Kiszka
  0 siblings, 0 replies; only message in thread
From: Jan Kiszka @ 2007-11-11 17:33 UTC (permalink / raw)
  To: adeos-main; +Cc: Philippe Gerum


[-- Attachment #1.1: Type: text/plain, Size: 176 bytes --]

For convenience: When the user sets a new triggering point via
/proc/ipipe/trace/trigger, also reset the currently frozen path so that
the new trigger can fire ASAP.

Jan

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: reset-trace-on-new-trigger.patch --]
[-- Type: text/x-patch; name="reset-trace-on-new-trigger.patch", Size: 552 bytes --]

---
 kernel/ipipe/tracer.c |    2 ++
 1 file changed, 2 insertions(+)

Index: linux-2.6.23.1-xeno_64/kernel/ipipe/tracer.c
===================================================================
--- linux-2.6.23.1-xeno_64.orig/kernel/ipipe/tracer.c
+++ linux-2.6.23.1-xeno_64/kernel/ipipe/tracer.c
@@ -1244,6 +1244,8 @@ static int __ipipe_wr_trigger(struct fil
 	/* invalidate the current range before setting a new one */
 	trigger_end = 0;
 	wmb();
+	ipipe_trace_frozen_reset();
+
 	/* set new range */
 	trigger_begin = begin;
 	wmb();

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 249 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-11-11 17:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-11 17:33 [Adeos-main] [PATCH] reset trace when setting new trigger Jan Kiszka

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.