Skip to main content

2016 | OriginalPaper | Buchkapitel

Unanticipated Context Awareness for Software Configuration Access Using the getenv API

verfasst von : Markus Raab

Erschienen in: Computer and Information Science

Verlag: Springer International Publishing

Aktivieren Sie unsere intelligente Suche, um passende Fachinhalte oder Patente zu finden.

search-config
loading …

Abstract

Configuration files, command-line arguments and environment variables are the dominant tools for local configuration management today. When accessing such program execution environments, however, most applications do not take context, e.g. the system they run on, into account. The aim of this paper is to integrate unmodified applications into a coherent and context-aware system by instrumenting the getenv API. We propose a global database stored in configuration files that includes specifications for contextual interpretations and a novel matching algorithm. In a case study we analyze a complete Debian operating system where every getenv API call is intercepted. We evaluate usage patterns of 16 real-world applications and systems and report on limitations of unforeseen context changes. The results show that getenv is used extensively for variability. The tool has acceptable overhead and improves context-awareness of many applications.

Sie haben noch keine Lizenz? Dann Informieren Sie sich jetzt über unsere Produkte:

Springer Professional "Wirtschaft+Technik"

Online-Abonnement

Mit Springer Professional "Wirtschaft+Technik" erhalten Sie Zugriff auf:

  • über 102.000 Bücher
  • über 537 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Maschinenbau + Werkstoffe
  • Versicherung + Risiko

Jetzt Wissensvorsprung sichern!

Springer Professional "Technik"

Online-Abonnement

Mit Springer Professional "Technik" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 390 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Maschinenbau + Werkstoffe




 

Jetzt Wissensvorsprung sichern!

Springer Professional "Wirtschaft"

Online-Abonnement

Mit Springer Professional "Wirtschaft" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 340 Zeitschriften

aus folgenden Fachgebieten:

  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Versicherung + Risiko




Jetzt Wissensvorsprung sichern!

Literatur
1.
Zurück zum Zitat Baldauf, M., Dustdar, S., Rosenberg, F.: A survey on context-aware systems. Int. J. Ad Hoc Ubiquit. Comput. 2(4), 263–277 (2007)CrossRef Baldauf, M., Dustdar, S., Rosenberg, F.: A survey on context-aware systems. Int. J. Ad Hoc Ubiquit. Comput. 2(4), 263–277 (2007)CrossRef
2.
Zurück zum Zitat Berger, T., Lettner, D., Rubin, J., Grünbacher, P., Silva, A., Becker, M., Chechik, M., Czarnecki, K.: What is a feature?: a qualitative study of features in industrial software product lines. In: Proceedings of the 19th International Conference on Software Product Line, pp. 16–25. ACM (2015) Berger, T., Lettner, D., Rubin, J., Grünbacher, P., Silva, A., Becker, M., Chechik, M., Czarnecki, K.: What is a feature?: a qualitative study of features in industrial software product lines. In: Proceedings of the 19th International Conference on Software Product Line, pp. 16–25. ACM (2015)
3.
Zurück zum Zitat Bockisch, C., Kanthak, S., Haupt, M., Arnold, M., Mezini, M.: Efficient control flow quantification. In: ACM SIGPLAN Notices, vol. 41, pp. 125–138. ACM (2006) Bockisch, C., Kanthak, S., Haupt, M., Arnold, M., Mezini, M.: Efficient control flow quantification. In: ACM SIGPLAN Notices, vol. 41, pp. 125–138. ACM (2006)
4.
Zurück zum Zitat Costanza, P., Hirschfeld, R., De Meuter, W.: Efficient layer activation for switching context-dependent behavior. In: Lightfoot, D., Szyperski, C. (eds.) Modular Programming Languages, Lecture Notes in Computer Science, vol. 4228, pp. 84–103. Springer (2006). http://dx.doi.org/10.1007/11860990_7 Costanza, P., Hirschfeld, R., De Meuter, W.: Efficient layer activation for switching context-dependent behavior. In: Lightfoot, D., Szyperski, C. (eds.) Modular Programming Languages, Lecture Notes in Computer Science, vol. 4228, pp. 84–103. Springer (2006). http://​dx.​doi.​org/​10.​1007/​11860990_​7
7.
Zurück zum Zitat Eisenhardt, K.M., Graebner, M.E.: Theory building from cases: opportunities and challenges. Acad. Manag. J. 50(1), 25–32 (2007)CrossRef Eisenhardt, K.M., Graebner, M.E.: Theory building from cases: opportunities and challenges. Acad. Manag. J. 50(1), 25–32 (2007)CrossRef
8.
Zurück zum Zitat Geihs, K., Barone, P., Eliassen, F., Floch, J., Fricke, R., Gjorven, E., Hallsteinsen, S., Horn, G., Khan, M.U., Mamelli, A., Papadopoulos, G.A., Paspallis, N., Reichle, R., Stav, E.: A comprehensive solution for application-level adaptation. Softw. Pract. Exp. 39(4), 385–422 (2009). http://dx.doi.org/10.1002/spe.900 Geihs, K., Barone, P., Eliassen, F., Floch, J., Fricke, R., Gjorven, E., Hallsteinsen, S., Horn, G., Khan, M.U., Mamelli, A., Papadopoulos, G.A., Paspallis, N., Reichle, R., Stav, E.: A comprehensive solution for application-level adaptation. Softw. Pract. Exp. 39(4), 385–422 (2009). http://​dx.​doi.​org/​10.​1002/​spe.​900
9.
Zurück zum Zitat Gu, T., Pung, H.K., Zhang, D.Q.: A middleware for building context-aware mobile services. In: Vehicular Technology Conference, 2004. VTC 2004-Spring. 2004 IEEE 59th, vol. 5, pp. 2656–2660. IEEE (2004) Gu, T., Pung, H.K., Zhang, D.Q.: A middleware for building context-aware mobile services. In: Vehicular Technology Conference, 2004. VTC 2004-Spring. 2004 IEEE 59th, vol. 5, pp. 2656–2660. IEEE (2004)
10.
Zurück zum Zitat Günther, S., Cleenewerck, T., Jonckers, V.: Software variability: the design space of configuration languages. In: Proceedings of the 6th Workshop on Variability Modeling of Software-Intensive Systems, pp. 157–164. ACM (2012) Günther, S., Cleenewerck, T., Jonckers, V.: Software variability: the design space of configuration languages. In: Proceedings of the 6th Workshop on Variability Modeling of Software-Intensive Systems, pp. 157–164. ACM (2012)
11.
Zurück zum Zitat Hewson, J.A., Anderson, P., Gordon, A.D.: A declarative approach to automated configuration. LISA 12, 51–66 (2012) Hewson, J.A., Anderson, P., Gordon, A.D.: A declarative approach to automated configuration. LISA 12, 51–66 (2012)
13.
Zurück zum Zitat Kamina, T., Aotani, T., Masuhara, H., Tamai, T.: Context-oriented software engineering: a modularity vision. In: Proceedings of the 13th International Conference on Modularity. MODULARITY ’14, pp. 85–98. ACM, New York, NY, USA (2014) Kamina, T., Aotani, T., Masuhara, H., Tamai, T.: Context-oriented software engineering: a modularity vision. In: Proceedings of the 13th International Conference on Modularity. MODULARITY ’14, pp. 85–98. ACM, New York, NY, USA (2014)
14.
Zurück zum Zitat Magableh, B., Barrett, S.: Primitive component architecture description language. In: 2010 The 7th International Conference on Informatics and Systems (INFOS), pp. 1–7 (2010) Magableh, B., Barrett, S.: Primitive component architecture description language. In: 2010 The 7th International Conference on Informatics and Systems (INFOS), pp. 1–7 (2010)
15.
Zurück zum Zitat Nadi, S., Berger, T., Kästner, C., Czarnecki, K.: Mining configuration constraints: Static analyses and empirical results. In: Proceedings of the 36th International Conference on Software Engineering, ICSE 2014, pp. 140–151. ACM, New York, NY, USA (2014). doi:10.1145/2568225.2568283 Nadi, S., Berger, T., Kästner, C., Czarnecki, K.: Mining configuration constraints: Static analyses and empirical results. In: Proceedings of the 36th International Conference on Software Engineering, ICSE 2014, pp. 140–151. ACM, New York, NY, USA (2014). doi:10.​1145/​2568225.​2568283
16.
Zurück zum Zitat Niu, L., Saiki, S., Matsumoto, S., Nakamura, M.: Wif4inl: Web-based integration framework for indoor location. Int. J. Pervasive Comput. Commun. (2016) Niu, L., Saiki, S., Matsumoto, S., Nakamura, M.: Wif4inl: Web-based integration framework for indoor location. Int. J. Pervasive Comput. Commun. (2016)
17.
Zurück zum Zitat Raab, M.: A modular approach to configuration storage. Master’s thesis, Vienna University of Technology (2010) Raab, M.: A modular approach to configuration storage. Master’s thesis, Vienna University of Technology (2010)
18.
Zurück zum Zitat Raab, M.: Global and thread-local activation of contextual program execution environments. In: Proceedings of the IEEE 18th International Symposium on Real-Time Distributed Computing Workshops (ISORCW/SEUS), pp. 34–41 (2015). doi:10.1109/ISORCW.2015.52 Raab, M.: Global and thread-local activation of contextual program execution environments. In: Proceedings of the IEEE 18th International Symposium on Real-Time Distributed Computing Workshops (ISORCW/SEUS), pp. 34–41 (2015). doi:10.​1109/​ISORCW.​2015.​52
19.
Zurück zum Zitat Raab, M.: Sharing software configuration via specified links and transformation rules. In: Technical report from KPS 2015. Vienna University of Technology, Complang Group, vol. 18 (2015) Raab, M.: Sharing software configuration via specified links and transformation rules. In: Technical report from KPS 2015. Vienna University of Technology, Complang Group, vol. 18 (2015)
21.
Zurück zum Zitat Rabkin, A., Katz, R.: Static extraction of program configuration options. In: 2011 33rd International Conference on Software Engineering (ICSE), pp. 131–140. IEEE (2011) Rabkin, A., Katz, R.: Static extraction of program configuration options. In: 2011 33rd International Conference on Software Engineering (ICSE), pp. 131–140. IEEE (2011)
22.
Zurück zum Zitat Riva, O., di Flora, C., Russo, S., Raatikainen, K.: Unearthing design patterns to support context-awareness. In: Fourth Annual IEEE International Conference on Pervasive Computing and Communications Workshops, 2006. PerCom Workshops 2006, pp. 5–387 (2006). http://dx.doi.org/10.1109/PERCOMW.2006.138 Riva, O., di Flora, C., Russo, S., Raatikainen, K.: Unearthing design patterns to support context-awareness. In: Fourth Annual IEEE International Conference on Pervasive Computing and Communications Workshops, 2006. PerCom Workshops 2006, pp. 5–387 (2006). http://​dx.​doi.​org/​10.​1109/​PERCOMW.​2006.​138
24.
Zurück zum Zitat Schaefer, I., Hähnle, R.: Formal methods in software product line engineering. IEEE Comput. 44(2), 82–85 (2011)CrossRef Schaefer, I., Hähnle, R.: Formal methods in software product line engineering. IEEE Comput. 44(2), 82–85 (2011)CrossRef
25.
Zurück zum Zitat Schippers, H., Molderez, T., Janssens, D.: A graph-based operational semantics for context-oriented programming. In: Proceedings of the 2nd International Workshop on Context-Oriented Programming, COP ’10. ACM, NY, USA (2010). doi:10.1145/1930021.1930027 Schippers, H., Molderez, T., Janssens, D.: A graph-based operational semantics for context-oriented programming. In: Proceedings of the 2nd International Workshop on Context-Oriented Programming, COP ’10. ACM, NY, USA (2010). doi:10.​1145/​1930021.​1930027
26.
28.
Zurück zum Zitat Yin, Z., Ma, X., Zheng, J., Zhou, Y., Bairavasundaram, L.N., Pasupathy, S.: An empirical study on configuration errors in commercial and open source systems. In: Proceedings of the Twenty-Third ACM Symposium on Operating Systems Principles, SOSP ’11, pp. 159–172. ACM, New York, NY, USA (2011). doi:10.1145/2043556.2043572 Yin, Z., Ma, X., Zheng, J., Zhou, Y., Bairavasundaram, L.N., Pasupathy, S.: An empirical study on configuration errors in commercial and open source systems. In: Proceedings of the Twenty-Third ACM Symposium on Operating Systems Principles, SOSP ’11, pp. 159–172. ACM, New York, NY, USA (2011). doi:10.​1145/​2043556.​2043572
Metadaten
Titel
Unanticipated Context Awareness for Software Configuration Access Using the getenv API
verfasst von
Markus Raab
Copyright-Jahr
2016
DOI
https://doi.org/10.1007/978-3-319-40171-3_4