From: Dmitry V. Levin Date: Thu, 22 Dec 2016 02:50:05 +0000 (+0000) Subject: perf: change address argument type from unsigned long to kernel_ureg_t X-Git-Tag: v4.16~269 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c15071b535669ec0a712ba848ae56b24e763cd68;p=strace perf: change address argument type from unsigned long to kernel_ureg_t * perf.c (fetch_perf_event_attr, print_perf_event_attr): Change address argument type from unsigned long to kernel_ureg_t. --- diff --git a/perf.c b/perf.c index 99b0489c..f6e6a32d 100644 --- a/perf.c +++ b/perf.c @@ -61,7 +61,7 @@ free_pea_desc(void *pea_desc_ptr) } static int -fetch_perf_event_attr(struct tcb *tcp, unsigned long addr) +fetch_perf_event_attr(struct tcb *const tcp, const kernel_ureg_t addr) { struct pea_desc *desc; struct perf_event_attr *attr; @@ -118,7 +118,7 @@ fetch_perf_event_attr(struct tcb *tcp, unsigned long addr) } while (0) static void -print_perf_event_attr(struct tcb *tcp, unsigned long addr) +print_perf_event_attr(struct tcb *const tcp, const kernel_ureg_t addr) { static const char *precise_ip_desc[] = { "arbitrary skid",