X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=tools%2Fperf%2Futil%2Fprobe-event.c;h=d8b048c20cdee51ac894b5394b15c70a1897c106;hb=632b06aa2842b12c6d6a510ec080fb6ebdb38ea5;hp=a8a9b6cd93a8f080a968f1cd05e7f80bb0df0ca6;hpb=878a876b2e10888afe53766dcca33f723ae20edc;p=~andy%2Flinux diff --git a/tools/perf/util/probe-event.c b/tools/perf/util/probe-event.c index a8a9b6cd93a..d8b048c20cd 100644 --- a/tools/perf/util/probe-event.c +++ b/tools/perf/util/probe-event.c @@ -336,8 +336,8 @@ static int add_exec_to_probe_trace_events(struct probe_trace_event *tevs, return ret; for (i = 0; i < ntevs && ret >= 0; i++) { + /* point.address is the addres of point.symbol + point.offset */ offset = tevs[i].point.address - stext; - offset += tevs[i].point.offset; tevs[i].point.offset = 0; zfree(&tevs[i].point.symbol); ret = e_snprintf(buf, 32, "0x%lx", offset);