Skip to contentSkip to conversation

Error compiling with CONFIG_PROFILING (xenoprof)

DISCUSSION Michael Paesold 2 participants 6 messages Apr 10, 2006

lore
Share & tools
lore
#0 lore raw

A xen-unstable changeset between 9515:d0d3fef37685 and 9576:050ad9813cdb broke compiling the kernel with CONFIG_PROFILING=y here. (I have not yet tested a later cs.)

There were some changesets regarding xenoprof.
http://xenbits.xensource.com/xen-unstable.hg?cmd=changelog&rev=xenoprof#

Perhaps some of those broke my build. I have disabled CONFIG_PROFILING for now because I don't need it currently, but I thought I'd let you know.

Here is the build error:
arch/i386/oprofile/xenoprof.c:315: error: unknown field `set_active' specified in initializer arch/i386/oprofile/xenoprof.c:315: warning: initialization from incompatible pointer type make[1]: *** [arch/i386/oprofile/xenoprof.o] Error 1
make: *** [arch/i386/oprofile] Error 2

That is from linux 2.6.16.1 with xen patched into the kernel from "make mkpatches". I can supply the kernel config as well as my kernel source RPM to recreate the problem, if that helps.

Best Regards,
Michael Paesold

#1 lore raw
Quoted 9 lines · Michael Paesold

Here is the build error:
arch/i386/oprofile/xenoprof.c:315: error: unknown field `set_active' specified in initializer arch/i386/oprofile/xenoprof.c:315: warning: initialization from incompatible pointer type make[1]: *** [arch/i386/oprofile/xenoprof.o] Error 1
make: *** [arch/i386/oprofile] Error 2

That is from linux 2.6.16.1 with xen patched into the kernel from "make mkpatches". I can supply the kernel config as well as my kernel source RPM to recreate the problem, if that helps.

You're missing the extra patch in file patches/linux-2.6.16/xenoprof-generic.patch.

'make mkpatches' should be incorporating the extra patches from patches/linux-2.6.16 -- if it isn't then it needs fixing to do so.

-- Keir

#2 lore raw
Quoted 9 lines · Keir Fraser
Quoted 8 lines · Michael Paesold

Here is the build error:
arch/i386/oprofile/xenoprof.c:315: error: unknown field `set_active' specified in initializer arch/i386/oprofile/xenoprof.c:315: warning: initialization from incompatible pointer type make[1]: *** [arch/i386/oprofile/xenoprof.o] Error 1
make: *** [arch/i386/oprofile] Error 2

Quoted 3 lines
Quoted 1 line

That is from linux 2.6.16.1 with xen patched into the kernel from "make mkpatches". I can supply the kernel config as well as my kernel source RPM to recreate the problem, if that helps.

You're missing the extra patch in file patches/linux-2.6.16/xenoprof-generic.patch.

Thanks! I had missed that patch when updating to that changeset.

Quoted 1 line

'make mkpatches' should be incorporating the extra patches from patches/linux-2.6.16 -- if it isn't then it needs fixing to do so.

I think "make mkpatches" is correct, but I missed the additional patch. To use the patch from mkpatches and apply them to a vanilla kernel, one also needs to apply all patches from patches/linux-2.6.16. "make mkpatches" creates diffs between vanilla+patches/linux-2.6.16 and xenified+patches/linux-2.6.16).

Best Regards,
Michael Paesold

#3 lore raw
Quoted 1 line · Michael Paesold

"make mkpatches" creates diffs between vanilla+patches/linux-2.6.16 and xenified+patches/linux-2.6.16).

I would have thought it would make more sense for it to diff against vanilla/linux-2.6.16 (i.e., the pristine tree rather than the ref tree). Most people are going to want an all-in-one patch to apply to a vanilla kernel tree.

-- Keir

#4 lore raw

mkpatches: against ref-linux or pristine? (Was: Error compiling with CONFIG_PROFILING (xenoprof))

Quoted 5 lines · Keir Fraser
Quoted 1 line · Michael Paesold

"make mkpatches" creates diffs between vanilla+patches/linux-2.6.16 and xenified+patches/linux-2.6.16).

I would have thought it would make more sense for it to diff against vanilla/linux-2.6.16 (i.e., the pristine tree rather than the ref tree). Most people are going to want an all-in-one patch to apply to a vanilla kernel tree.

You are right, I also see no real value in having one xen patch + several extra patches to apply. It rather makes the process of patching more complicated. Although rpm helps me with the patching, I still have to manually review changes in patches/ everytime I rebase our own RPMs... resulting in this very thread. :-)

Does anyone see a use-case for not creating an all-in-one patch? On a second thought, a separate "make mkpatch" (or a more explicit target name) could provide an all-in-one patch without introducing transitioning problems for users of mkpatches.

Should I create a patch to implement that? (Seems rather trivial and suitable for my limited Makefile fu.)

Best Regards,
Michael Paesold

#5 lore raw

Re: mkpatches: against ref-linux or pristine? (Was: Error compiling with CONFIG_PROFILING (xenoprof))

Quoted 5 lines · Michael Paesold

You are right, I also see no real value in having one xen patch + several extra patches to apply. It rather makes the process of patching more complicated. Although rpm helps me with the patching, I still have to manually review changes in patches/ everytime I rebase our own RPMs... resulting in this very thread. :-)

Does anyone see a use-case for not creating an all-in-one patch? On a second thought, a separate "make mkpatch" (or a more explicit target name) could provide an all-in-one patch without introducing transitioning problems for users of mkpatches.

Should I create a patch to implement that? (Seems rather trivial and suitable for my limited Makefile fu.)

Actually I just fixed it already. :-) I think there will be no complaints and, if that's the case, we can also backport to 3.0.2 series.

-- Keir