lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Fri, 18 Jan 2008 23:23:52 -0500
From:	"Frank Ch. Eigler" <>
To:	Steven Rostedt <>
Cc:	"Frank Ch. Eigler" <>,
	Mathieu Desnoyers <>,
	LKML <>, Ingo Molnar <>,
	Linus Torvalds <>,
	Andrew Morton <>,
	Peter Zijlstra <>,
	Christoph Hellwig <>,
	Gregory Haskins <>,
	Arnaldo Carvalho de Melo <>,
	Thomas Gleixner <>,
	Tim Bird <>,
	Sam Ravnborg <>,
	Steven Rostedt <>,
	Paul Mackerras <>,
	Daniel Walker <>
Subject: Re: [RFC PATCH 16/22 -v2] add get_monotonic_cycles

Hi -

On Fri, Jan 18, 2008 at 10:55:27PM -0500, Steven Rostedt wrote:
> [...]
> > All this complexity is to be justified by keeping the raw prev/next
> > pointers from being sent to a naive tracer?  It seems to me way out of
> > proportion.
> Damn, and I just blew away all my marker code for something like this ;-)

Sorry! :-)

> [...]
> We have in sched.c the following marker:
>  trace_mark(kernel_sched_scheduler, "prev %p next %p", prev, next);

Fine so far!

> Then Mathieu can add in some code somewhere (or a module, or something)
> 	ret = marker_probe_register("kernel_sched_scheduler",
> 				"prev %p next %p",
> 				pretty_print_sched_switch, NULL);

> static void pretty_print_sched_switch(const struct marker *mdata,
> 				void *private_data,
> 				const char *format, ...)
> {
> 	[...]
> 	trace_mark(kernel_pretty_print_sched_switch,
> 		"prev_pid %d next_pid %d prev_state %ld",
> 		prev->pid, next->pid, prev->state);
> }

That marker_probe_register call would need to be done only when the
embedded (k_p_p_s_s) marker is actually being used.  Otherwise we'd
lose all the savings of a dormant sched.c marker by always calling
into pretty_print_sched_switch(), whether or not the k_p_p_s_s marker
was active.

In any case, if the naive tracer agrees to become educated about some
of these markers in the form of intermediary functions like that, they
need not insist on a second hop through marker territory anyway:

 static void pretty_print_sched_switch(const struct marker *mdata,
 				void *private_data,
 				const char *format, ...)
 		            "prev_pid %d next_pid %d prev_state %ld",
               		    prev->pid, next->pid, prev->state);

- FChE
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

Powered by blists - more mailing lists