Skip to contentSkip to conversation

Co-existing of traceevent of trace-cmd and perf

DISCUSSION Zamir SUN 3 participants 6 messages Sep 29, 2020 – Oct 4, 2020

lore
Share & tools
lore

Zamir SUN

author
#0 lore raw

Hi,

I'm packaging trace-cmd 2.9 into Fedora.

Back in trace-cmd 2.8, all the plugins are under $(libdir)/trace-cmd/plugins. While as of trace-cmd 2.9, I find the traceevent plugins are installed in $(libdir) by default. This brings up an interesting situation - the perf tool also contains a copy of the traceevent in the same directory. So this means trace-cmd and perf have file conflicts. In terms of packaging, this means users can only install one of them, not in parallel (at least for Fedora). So I'd like to see if there are existing proposals or suggestions for which one is expected to be used by other utilities? Or is there any official plan to move one of them to the other directory?

I'm copying Tzvetomir and Jiri as I think you're the first people for getting the plugins in this directory for trace-cmd and perf respectively.

Thanks in advance.

Signature · 3 lines
Zamir SUN
Fedora user
GPG : 1D86 6D4A 49CE 4BBD 72CF FCF5 D856 6E11 F2A0 525E
author
#1 lore raw
Quoted 8 lines · Zamir SUN

Hi,

I'm packaging trace-cmd 2.9 into Fedora.

Back in trace-cmd 2.8, all the plugins are under $(libdir)/trace-cmd/plugins. While as of trace-cmd 2.9, I find the traceevent plugins are installed in $(libdir) by default. This brings up an interesting situation - the perf tool also contains a copy of the traceevent in the same directory. So this means trace-cmd and perf have file conflicts. In terms of packaging, this means users can only install one of them, not in parallel (at least for Fedora). So I'd like to see if there are existing proposals or suggestions for which one is expected to be used by other utilities? Or is there any official plan to move one of them to the other directory?

I'm copying Tzvetomir and Jiri as I think you're the first people for getting the plugins in this directory for trace-cmd and perf respectively.

Sorry, I just saw an email from Steven mentioning there will be a stand alone libtraceevent. However I did not find it in git.kernel.org. So I probably should ask if the stand alone version of libtraceevent is ready now?

Thanks.

Quoted 2 lines

Thanks in advance.

Signature · 3 lines
Zamir SUN
Fedora user
GPG : 1D86 6D4A 49CE 4BBD 72CF FCF5 D856 6E11 F2A0 525E
#2 lore raw
Quoted 16 lines · On Tue, 29 Sep 2020 22:16:33 +0800 Zamir SUN <[email protected]> wrote:
Quoted 15 lines · Zamir SUN

Hi,

I'm packaging trace-cmd 2.9 into Fedora.

Back in trace-cmd 2.8, all the plugins are under $(libdir)/trace-cmd/plugins. While as of trace-cmd 2.9, I find the traceevent plugins are installed in $(libdir) by default. This brings up an interesting situation - the perf tool also contains a copy of the traceevent in the same directory. So this means trace-cmd and perf have file conflicts. In terms of packaging, this means users can only install one of them, not in parallel (at least for Fedora). So I'd like to see if there are existing proposals or suggestions for which one is expected to be used by other utilities? Or is there any official plan to move one of them to the other directory?

Quoted 8 lines
Quoted 3 lines

I'm copying Tzvetomir and Jiri as I think you're the first people for getting the plugins in this directory for trace-cmd and perf respectively.

Sorry, I just saw an email from Steven mentioning there will be a stand alone libtraceevent. However I did not find it in git.kernel.org. So I probably should ask if the stand alone version of libtraceevent is ready now?

No but this gives me incentive to make it so very soon!

-- Steve

author
#3 lore raw
Quoted 23 lines · Steven Rostedt
Quoted 20 lines · On Tue, 29 Sep 2020 22:16:33 +0800 Zamir SUN <[email protected]> wrote:
Quoted 18 lines · Zamir SUN

Hi,

I'm packaging trace-cmd 2.9 into Fedora.

Back in trace-cmd 2.8, all the plugins are under $(libdir)/trace-cmd/plugins. While as of trace-cmd 2.9, I find the traceevent plugins are installed in $(libdir) by default. This brings up an interesting situation - the perf tool also contains a copy of the traceevent in the same directory. So this means trace-cmd and perf have file conflicts. In terms of packaging, this means users can only install one of them, not in parallel (at least for Fedora). So I'd like to see if there are existing proposals or suggestions for which one is expected to be used by other utilities? Or is there any official plan to move one of them to the other directory?

I'm copying Tzvetomir and Jiri as I think you're the first people for getting the plugins in this directory for trace-cmd and perf respectively.

Quoted 7 lines
Quoted 4 lines

Sorry, I just saw an email from Steven mentioning there will be a stand alone libtraceevent. However I did not find it in git.kernel.org. So I probably should ask if the stand alone version of libtraceevent is ready now?

No but this gives me incentive to make it so very soon!

Thanks for the info. I'll workaround this in trace-cmd then before it is ready.

Quoted 2 lines

-- Steve

Signature · 3 lines
Zamir SUN
Fedora user
GPG : 1D86 6D4A 49CE 4BBD 72CF FCF5 D856 6E11 F2A0 525E
#4 lore raw
In reply to Zamir SUN

Zamir, Steven,

Quoted 19 lines · Zamir SUN
Quoted 13 lines · Zamir SUN

I'm packaging trace-cmd 2.9 into Fedora.

Back in trace-cmd 2.8, all the plugins are under $(libdir)/trace-cmd/plugins. While as of trace-cmd 2.9, I find the traceevent plugins are installed in $(libdir) by default. This brings up an interesting situation - the perf tool also contains a copy of the traceevent in the same directory. So this means trace-cmd and perf have file conflicts. In terms of packaging, this means users can only install one of them, not in parallel (at least for Fedora). So I'd like to see if there are existing proposals or suggestions for which one is expected to be used by other utilities? Or is there any official plan to move one of them to the other directory?

Quoted 4 lines

I'm copying Tzvetomir and Jiri as I think you're the first people for getting the plugins in this directory for trace-cmd and perf respectively.

Quoted 4 lines

Sorry, I just saw an email from Steven mentioning there will be a stand alone libtraceevent. However I did not find it in git.kernel.org. So I probably should ask if the stand alone version of libtraceevent is ready now?

In anticipation of this change I temporary packaged (for ALT) traceevent into %_libdir while keeping traceevent form perf in %_libexecdir (for a backward compatibility).

Thanks,

Quoted 10 lines

Thanks.

Quoted 2 lines

Thanks in advance.

Signature · 3 lines
Zamir SUN
Fedora user
GPG : 1D86 6D4A 49CE 4BBD 72CF FCF5 D856 6E11 F2A0 525E
author
#5 lore raw
Quoted 22 lines · Vitaly Chikunov

Zamir, Steven,

Quoted 19 lines · Zamir SUN
Quoted 17 lines · Zamir SUN

I'm packaging trace-cmd 2.9 into Fedora.

Back in trace-cmd 2.8, all the plugins are under $(libdir)/trace-cmd/plugins. While as of trace-cmd 2.9, I find the traceevent plugins are installed in $(libdir) by default. This brings up an interesting situation - the perf tool also contains a copy of the traceevent in the same directory. So this means trace-cmd and perf have file conflicts. In terms of packaging, this means users can only install one of them, not in parallel (at least for Fedora). So I'd like to see if there are existing proposals or suggestions for which one is expected to be used by other utilities? Or is there any official plan to move one of them to the other directory?

I'm copying Tzvetomir and Jiri as I think you're the first people for getting the plugins in this directory for trace-cmd and perf respectively.

Quoted 9 lines
Quoted 4 lines

Sorry, I just saw an email from Steven mentioning there will be a stand alone libtraceevent. However I did not find it in git.kernel.org. So I probably should ask if the stand alone version of libtraceevent is ready now?

In anticipation of this change I temporary packaged (for ALT) traceevent into %_libdir while keeping traceevent form perf in %_libexecdir (for a backward compatibility).

Hi Vitaly,

Thanks for the details. I will consider applying something similar to what you did for trace-cmd before the new library is being used by both in Fedora.

Quoted 12 lines

Thanks,

Quoted 10 lines

Thanks.

Quoted 2 lines

Thanks in advance.

Signature · 3 lines
Zamir SUN
Fedora user
GPG : 1D86 6D4A 49CE 4BBD 72CF FCF5 D856 6E11 F2A0 525E
Signature · 3 lines
Zamir SUN
Fedora user
GPG : 1D86 6D4A 49CE 4BBD 72CF FCF5 D856 6E11 F2A0 525E