=== tvoss is now known as tvoss|test === tvoss|test is now known as tvoss === tvoss is now known as tvoss|test === tvoss|test is now known as tvoss === lool- is now known as lool [09:40] alan_g: regarding the include "../lttng/*_report.h" - i could move the code from logging/default_configuration.cpp to src/server/default_server_configuration.cpp [09:41] anpok: it would still be a cross-component include [09:42] I've not had a serious think about what the dependencies should be - but I'm tempted by the idea of putting all the reporting options together (that needs a few renames) [09:44] as in putting lttng and logging together? [09:44] or moving them into a report/lttng report/logging structure? [09:45] the only reason we need that is that because whe have to provide a the_..._report() method [09:45] if we could split that one up, we would never have to care about it [09:46] I thought about reigstering the different types somewhere [09:46] anpok: True - there could be lttng and log report factories [09:46] or we could use something generic like: http://code.google.com/p/hypodermic [09:48] alf_: opinion? ^^ [09:48] that would dissolve most of default_configuration [09:49] we could wire the program_options with that one - or something like that - havent looked on what it needs and how it is done [09:49] I'm not sure we need anything that generic [09:50] alan_g: looking [09:51] Just "return LttngReportBuilder(...).foo_report();" [09:54] it would be the_foo_report() { return container.create() } and inside lttng/default_configuration.cpp ::register_types() { if (get_option("foo-report" == "lttng") { container.register() } [09:54] +Report two times [09:56] alan_g: anpok: (I am not sure if this is what Alan meant) how about the_foo_report() { if (lttng) the_lttng_builder().foo_report(); else the_logging_builder().foo_report(); } [09:57] alf_: I meant the_foo_report() { if (lttng) LttngBuilder().foo_report(); else LoggingBuilder(the_log()).foo_report(); } [09:58] alan_g: anpok: that being said, lttng and logging are kind of reports so I would be ok with a report/lttng,report/logging structure [09:58] Agreed [10:02] the generic approach above could also make our live simpler in other cases... i.e. image adding a constructor parameter somewhere, because we factor out functionality. with types registered like above, and compile time information on constructor signature, the change might not have cause further changes in test cases.. [10:09] I've used IOC containers in other languages and understand the attraction (and the problems). And I do realize that that we're on that road with DefaultServerConfiguration. I just don't think it is quite that simple to drop it in. [10:10] yes. [10:11] Hmm. Why can't I find "google::protobuf::GoogleOnceInitImpl(int*, google::protobuf::Closure*)" on the N10 today? [10:11] .. so what would be a good intermediate solution. [10:11] reshuffling into another container - would that also add a namespace? [10:11] s/container/folder [10:14] What I suggested above? a public class lttng::ReportFactory { shared_ptr foo_report() const; } in the lttng namespace that can be used by any component. [10:17] ok then agreed [10:23] alf_: ? [10:24] alan_g: anpok: Why not hide that behind and interface and expose it through the_lttng_report_factory? [10:27] It doesn't introduce another factory function into DefaultServerConfiguration - just gets used in the implementation. [10:28] * alan_g powers up N4 to see if that works any better [10:29] alan_g: anpok: But it does introduce a potential "hidden" dependency between lttng and other components [10:30] alan_g: anpok: I think that for our current purposes the report/lttng,report/logging structure would be more straightforward [10:32] alf_: isn't that orthogonal? [10:33] I mean something needs to provide assess to private report implementations in report/lttng and report/logging [10:34] *access [10:36] alan_g: anpok: If it's available only for internal (subcomponent) access, I am OK, but we could just use the internal subcomponent classes directly. However, I got the feeling that lttng::ReportFactory was going to be public for *all* components to use. [10:37] (not that they would have much reason too) [10:37] s/too/to [10:38] alf_: we only have "public" and "component private" so yes, it was going to be public === yofel_ is now known as yofel [10:45] alf_: @"but we could just use the internal subcomponent classes directly." that isn't how I've understood our rules [10:47] Otherwise default_server_configuration.cpp could just access everyone's privates [10:48] alan_g: then perhaps subcomponent is not the right word. In my mind the lttng and logging are implementation details of report in this case, placed in separate internal directories. [10:49] whereas I would give the classes prefixes and put them all in report [10:50] alan_g: That's an implementation detail ;) [10:51] anpok: have you decided we're mad yet? [12:02] alf_: did you get stuff working on android? Today I find that I've got an unresolved protobuf symbol when I try to run things [12:02] alan_g: haven't tried today, but it was working yesterday [12:03] alf_: thanks [12:13] \o/ zapping everything in sight and starting over worked [12:22] alan_g, so mirclient doesn't install include/client/mir/*, just include/client/mir_toolkit/*. Because if that a libmirclient user cannot #include which is needed for the "custom RPC over mir socket" story [12:23] s/if that/of that [12:25] dandrader: I understand the problem. Not sure of the best solution - thinking... [12:39] dandrader: yes. Adding that directory to include/mirclient seems to be the best answer. Want to log a bug for me to fix? [12:39] alan_g, sure [12:42] alan_g, https://bugs.launchpad.net/mir/+bug/1276565 [12:42] Launchpad bug 1276565 in Mir "libmirclient user cannot "#include "" [Undecided,New] [12:43] dandrader: thanks. Am on it [12:48] alan_g: was preparing lunch [12:48] alan_g: let me check on madness [12:49] ..processing.. [12:50] i think yes [12:55] dandrader: https://code.launchpad.net/~alan-griffiths/mir/fix-1276565/+merge/204899 [13:08] sil2100: i see "problems with unit test" on mir landing...what's up ? [13:09] kgunn: where? [13:09] kgunn: are you sure you're looking at the right landing? [13:09] sil2100: ooo i better look again [13:09] sorry :) sil2100 [13:10] * kgunn should really wait for coffee before trying to read stuff [13:10] kgunn: no problem ;) We need to wait until we are unblocked from the location-service bug before proceeding thouhj [13:10] *though [13:11] and xorg-server testing was broken anyway due to protobuf abi break :P === alan_g is now known as alan_g|lunch [13:16] alan_g|lunch, solve the problem! I would approve it but launchpad seems to be down at the moment. [13:16] solves === mardy_ is now known as mardy === alan_g|lunch is now known as alan_g [13:58] kgunn: alf_: bug 1276621 needs to be fixed as well to enable the android backend by default [13:58] bug 1276621 in Mir "Android backend unit-tests FTBS on amd64" [Undecided,New] https://launchpad.net/bugs/1276621 [13:58] atm I'm just trying to push a custom mir package that defaults to the android backend === dandrader is now known as dandrader|afk === dandrader|afk is now known as dandrader [15:27] alf_: alan_g whats the idea behind the separation of ServerConfiguration and DefaultServerConfiguration? [15:27] i.e. the_logger is introduced at DSC [15:27] anpok: ServerConfiguration is the interface used by DisplayServer [15:27] ServerConfiguration is what DisplayServer needs. DefaultServerConfiguration is a default implementation === alan_g is now known as alan_g|tea === alan_g|tea is now known as alan_g [16:18] alan_g, protobuf question: do I have to keep my service stub alive until I get a reply from the service? [16:19] dandrader: yes [16:25] alan_g, hmm, looks like they're just thin wrappers around the given rpc_channel.... [16:25] eg: http://paste.ubuntu.com/6879913/ [16:27] yeah, they are mostly a level of indirection [16:28] the thing is that by default they delete the channel when you delete the stub [16:29] do we have to ping someone about that protobuf mismatch problem with CI? [16:30] kdub: no it sorted itself out. [16:30] alan_g, okay, cool [16:31] Depending what's in your partial chroot and the image you use you may see the same thing (I did). [16:31] But the latest versions are OK [16:33] dandrader: they certainly don't separate concerns in a way that feels natural to me. [16:43] whats the legacy of legacy input report? [16:46] IIRC that's the intercept of the original logging in the android input code [16:48] ok so it is not legacy in itself [16:50] Well the idea was (is?) that we'd replace it with something better integrated into our reporting [16:51] hm I first thought it was legacy and hence did not do anything about it [16:51] i would first incorporate it into my current rework to not violate component boundaries [16:52] and then in a further step I would turn the log() interface into something more report-like? [16:53] anpok: I'm not sure that's the best use of time [16:55] further .. as in .. further down the road === dandrader is now known as dandrader|lunch [16:56] ... not this week [16:56] just stumbled across it since I was able to remove input_report from the public interface entirely [17:01] :) [17:06] hey folks, I really need a reliable way of getting the PID of a Session [17:10] alan_g: i meant not with this mp [17:14] greyback: I don't think it is kept after passing to connection_is_allowed() - I guess that's a feature request. [17:16] alan_g: I've logged it anyway, how could I push for it https://bugs.launchpad.net/mir/+bug/1276704 [17:16] Launchpad bug 1276704 in Mir "Need way of getting PID of Session" [Undecided,New] [17:19] kgunn: could I push for that feature request? The workaround in unity-mir fails in some scenarios and I can't see any way to make it solid without that feature request [17:19] greyback: that's the way. ;) [17:19] :D [17:20] alan_g: are you volunteering by speaking :) [17:21] * alan_g shats up [17:21] *shuts [17:21] lol [17:21] well..you could shat too...but well [17:22] kgunn: I won't get to it today. But if you want I can look tomorrow. [17:23] alan_g: thanks...was just looking to see if we had captured that on a bp as well...is it a specific of "cleanly abstract out application logic from the session mediator" [17:26] greyback: is this for the sidestage flicker ? or some other ? [17:26] kgunn: other problem: rapid launching of apps confuses unity-mir - ppl do that to test mzanetti's work [17:29] greyback: is it actually the PID you want? Or would it be better to allow you to attach an object to the session when it is authorised? (I'm thinking shared_ptr) [17:31] alan_g: well PID would be easiest. With the latter suggestion, I would create object with PID and probably app_id to attach. It's much of a muchness to me [17:32] (I need PID to verify with upstart the process' app_id) [17:33] greyback: PID is fine for us - but as I didn't know what you wanted it for I thought you might want something more generic [17:35] alan_g: gotcha. For now, PID is plenty enough. It is so that when a Session starts, I can take the PID and using upstart, match the app_id. === dandrader|lunch is now known as dandrader === alan_g is now known as alan_g|EOD === jono is now known as Guest56083