From: Oleg Nesterov Date: Fri, 29 Mar 2013 17:26:51 +0000 (+0100) Subject: uprobes/tracing: Generalize struct uprobe_trace_entry_head X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~119^2~9^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=457d1772f1c1bcf37b2ae7fc8f1d6f303d1d5cf9;p=pandora-kernel.git uprobes/tracing: Generalize struct uprobe_trace_entry_head struct uprobe_trace_entry_head has a single member for reporting, "unsigned long ip". If we want to support uretprobes we need to create another struct which has "func" and "ret_ip" and duplicate a lot of functions, like trace_kprobe.c does. To avoid this copy-and-paste horror we turn ->ip into ->vaddr[] and add couple of trivial helpers to calculate sizeof/data. This uglifies the code a bit, but this allows us to avoid a lot more complications later, when we add the support for ret-probes. Signed-off-by: Oleg Nesterov Acked-by: Srikar Dronamraju Tested-by: Anton Arapov --- Reading git-diff-tree failed